1 /*! 2 @file 3 @author Generate utility by Albert Semenov 4 @date 01/2009 5 @module 6 */ 7 #pragma once 8 9 #include "MyGUI_Managed_Widget.h" 10 11 namespace MyGUI 12 { 13 namespace Managed 14 { 15 16 public ref class ProgressBar : public Widget 17 { 18 19 private: 20 typedef MyGUI::ProgressBar ThisType; 21 22 public: ProgressBar()23 ProgressBar() : Widget() { } 24 25 internal: ProgressBar(MyGUI::ProgressBar * _native)26 ProgressBar( MyGUI::ProgressBar* _native ) : Widget(_native) { } 27 ProgressBar( BaseWidget^ _parent, MyGUI::WidgetStyle _style, const std::string& _skin, const MyGUI::IntCoord& _coord, MyGUI::Align _align, const std::string& _layer, const std::string& _name ) 28 { 29 CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name); 30 } 31 getClassTypeName()32 virtual const std::string& getClassTypeName() override { return ThisType::getClassTypeName(); } 33 34 static BaseWidget^ WidgetCreator(BaseWidget^ _parent, MyGUI::WidgetStyle _style, const std::string& _skin, const MyGUI::IntCoord& _coord, MyGUI::Align _align, const std::string& _layer, const std::string& _name) 35 { 36 return gcnew ProgressBar(_parent, _style, _skin, _coord, _align, _layer, _name); 37 } 38 39 40 //InsertPoint 41 42 public: SetCoord(Convert<int>::Type _left,Convert<int>::Type _top,Convert<int>::Type _width,Convert<int>::Type _height)43 void SetCoord( 44 Convert<int>::Type _left , 45 Convert<int>::Type _top , 46 Convert<int>::Type _width , 47 Convert<int>::Type _height ) 48 { 49 MMYGUI_CHECK_NATIVE(mNative); 50 static_cast<ThisType*>(mNative)->setCoord( 51 Convert<int>::From(_left) , 52 Convert<int>::From(_top) , 53 Convert<int>::From(_width) , 54 Convert<int>::From(_height) ); 55 } 56 public: SetSize(Convert<int>::Type _width,Convert<int>::Type _height)57 void SetSize( 58 Convert<int>::Type _width , 59 Convert<int>::Type _height ) 60 { 61 MMYGUI_CHECK_NATIVE(mNative); 62 static_cast<ThisType*>(mNative)->setSize( 63 Convert<int>::From(_width) , 64 Convert<int>::From(_height) ); 65 } 66 public: SetPosition(Convert<int>::Type _left,Convert<int>::Type _top)67 void SetPosition( 68 Convert<int>::Type _left , 69 Convert<int>::Type _top ) 70 { 71 MMYGUI_CHECK_NATIVE(mNative); 72 static_cast<ThisType*>(mNative)->setPosition( 73 Convert<int>::From(_left) , 74 Convert<int>::From(_top) ); 75 } 76 public: 77 property Convert<MyGUI::FlowDirection>::Type FlowDirection 78 { get()79 Convert<MyGUI::FlowDirection>::Type get( ) 80 { 81 MMYGUI_CHECK_NATIVE(mNative); 82 return Convert<MyGUI::FlowDirection>::To( static_cast<ThisType*>(mNative)->getFlowDirection() ); 83 } set(Convert<MyGUI::FlowDirection>::Type _value)84 void set(Convert<MyGUI::FlowDirection>::Type _value) 85 { 86 MMYGUI_CHECK_NATIVE(mNative); 87 static_cast<ThisType*>(mNative)->setFlowDirection( Convert<MyGUI::FlowDirection>::From(_value) ); 88 } 89 } 90 91 public: 92 property Convert<bool>::Type ProgressAutoTrack 93 { get()94 Convert<bool>::Type get( ) 95 { 96 MMYGUI_CHECK_NATIVE(mNative); 97 return Convert<bool>::To( static_cast<ThisType*>(mNative)->getProgressAutoTrack() ); 98 } set(Convert<bool>::Type _value)99 void set(Convert<bool>::Type _value) 100 { 101 MMYGUI_CHECK_NATIVE(mNative); 102 static_cast<ThisType*>(mNative)->setProgressAutoTrack( Convert<bool>::From(_value) ); 103 } 104 } 105 106 public: 107 property Convert<size_t>::Type ProgressPosition 108 { get()109 Convert<size_t>::Type get( ) 110 { 111 MMYGUI_CHECK_NATIVE(mNative); 112 return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getProgressPosition() ); 113 } set(Convert<size_t>::Type _value)114 void set(Convert<size_t>::Type _value) 115 { 116 MMYGUI_CHECK_NATIVE(mNative); 117 static_cast<ThisType*>(mNative)->setProgressPosition( Convert<size_t>::From(_value) ); 118 } 119 } 120 121 public: 122 property Convert<size_t>::Type ProgressRange 123 { get()124 Convert<size_t>::Type get( ) 125 { 126 MMYGUI_CHECK_NATIVE(mNative); 127 return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getProgressRange() ); 128 } set(Convert<size_t>::Type _value)129 void set(Convert<size_t>::Type _value) 130 { 131 MMYGUI_CHECK_NATIVE(mNative); 132 static_cast<ThisType*>(mNative)->setProgressRange( Convert<size_t>::From(_value) ); 133 } 134 } 135 136 }; 137 138 } // namespace Managed 139 } // namespace MyGUI 140