3
@author Generate utility by Albert Semenov
9
#include "MyGUI.Managed_Widget.h"
16
public ref class ProgressBar : public Widget
20
typedef MyGUI::ProgressBar ThisType;
23
ProgressBar() : Widget() { }
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 )
29
CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name);
32
virtual const std::string& getClassTypeName() override { return ThisType::getClassTypeName(); }
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)
36
return gcnew ProgressBar(_parent, _style, _skin, _coord, _align, _layer, _name);
61
property Convert<MyGUI::FlowDirection>::Type FlowDirection
63
Convert<MyGUI::FlowDirection>::Type get( )
65
MMYGUI_CHECK_NATIVE(mNative);
66
return Convert<MyGUI::FlowDirection>::To( static_cast<ThisType*>(mNative)->getFlowDirection() );
68
void set(Convert<MyGUI::FlowDirection>::Type _value)
70
MMYGUI_CHECK_NATIVE(mNative);
71
static_cast<ThisType*>(mNative)->setFlowDirection( Convert<MyGUI::FlowDirection>::From(_value) );
78
property Convert<bool>::Type ProgressAutoTrack
80
Convert<bool>::Type get( )
82
MMYGUI_CHECK_NATIVE(mNative);
83
return Convert<bool>::To( static_cast<ThisType*>(mNative)->getProgressAutoTrack() );
85
void set(Convert<bool>::Type _value)
87
MMYGUI_CHECK_NATIVE(mNative);
88
static_cast<ThisType*>(mNative)->setProgressAutoTrack( Convert<bool>::From(_value) );
95
property Convert<size_t>::Type ProgressPosition
97
Convert<size_t>::Type get( )
99
MMYGUI_CHECK_NATIVE(mNative);
100
return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getProgressPosition() );
102
void set(Convert<size_t>::Type _value)
104
MMYGUI_CHECK_NATIVE(mNative);
105
static_cast<ThisType*>(mNative)->setProgressPosition( Convert<size_t>::From(_value) );
112
property Convert<size_t>::Type ProgressRange
114
Convert<size_t>::Type get( )
116
MMYGUI_CHECK_NATIVE(mNative);
117
return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getProgressRange() );
119
void set(Convert<size_t>::Type _value)
121
MMYGUI_CHECK_NATIVE(mNative);
122
static_cast<ThisType*>(mNative)->setProgressRange( Convert<size_t>::From(_value) );
139
} // namespace Managed