3
@author Generate utility by Albert Semenov
9
#include "MyGUI.Managed_Widget.h"
16
public ref class ScrollBar : public Widget
20
typedef MyGUI::ScrollBar ThisType;
23
ScrollBar() : Widget() { }
26
ScrollBar( MyGUI::ScrollBar* _native ) : Widget(_native) { }
27
ScrollBar( 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 ScrollBar(_parent, _style, _skin, _coord, _align, _layer, _name);
43
delegate void HandleScrollChangePosition(
44
Convert<MyGUI::ScrollBar *>::Type _sender ,
45
Convert<size_t>::Type _position );
46
event HandleScrollChangePosition^ EventScrollChangePosition
48
void add(HandleScrollChangePosition^ _value)
50
bool empty = mDelegateScrollChangePosition == nullptr;
52
mDelegateScrollChangePosition += _value;
53
MMYGUI_CHECK_NATIVE(mNative);
56
static_cast<ThisType*>(mNative)->eventScrollChangePosition +=
57
static_cast< MyGUI::delegates::IDelegate2<
60
new Delegate2< HandleScrollChangePosition^ ,
62
size_t >(mDelegateScrollChangePosition) );
64
void remove(HandleScrollChangePosition^ _value)
66
mDelegateScrollChangePosition -= _value;
67
MMYGUI_CHECK_NATIVE(mNative);
69
bool empty = mDelegateScrollChangePosition == nullptr;
72
static_cast<ThisType*>(mNative)->eventScrollChangePosition -=
73
static_cast< MyGUI::delegates::IDelegate2<
76
new Delegate2< HandleScrollChangePosition^ ,
78
size_t >(mDelegateScrollChangePosition) );
82
HandleScrollChangePosition^ mDelegateScrollChangePosition;
105
property Convert<bool>::Type MoveToClick
107
Convert<bool>::Type get( )
109
MMYGUI_CHECK_NATIVE(mNative);
110
return Convert<bool>::To( static_cast<ThisType*>(mNative)->getMoveToClick() );
112
void set(Convert<bool>::Type _value)
114
MMYGUI_CHECK_NATIVE(mNative);
115
static_cast<ThisType*>(mNative)->setMoveToClick( Convert<bool>::From(_value) );
122
property Convert<int>::Type MinTrackSize
124
Convert<int>::Type get( )
126
MMYGUI_CHECK_NATIVE(mNative);
127
return Convert<int>::To( static_cast<ThisType*>(mNative)->getMinTrackSize() );
129
void set(Convert<int>::Type _value)
131
MMYGUI_CHECK_NATIVE(mNative);
132
static_cast<ThisType*>(mNative)->setMinTrackSize( Convert<int>::From(_value) );
139
property Convert<int>::Type TrackSize
141
Convert<int>::Type get( )
143
MMYGUI_CHECK_NATIVE(mNative);
144
return Convert<int>::To( static_cast<ThisType*>(mNative)->getTrackSize() );
146
void set(Convert<int>::Type _value)
148
MMYGUI_CHECK_NATIVE(mNative);
149
static_cast<ThisType*>(mNative)->setTrackSize( Convert<int>::From(_value) );
156
Convert<int>::Type GetLineSize( )
158
MMYGUI_CHECK_NATIVE(mNative);
159
return Convert<int>::To(
160
static_cast<ThisType*>(mNative)->getLineSize( ) );
166
property Convert<size_t>::Type ScrollViewPage
168
Convert<size_t>::Type get( )
170
MMYGUI_CHECK_NATIVE(mNative);
171
return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getScrollViewPage() );
173
void set(Convert<size_t>::Type _value)
175
MMYGUI_CHECK_NATIVE(mNative);
176
static_cast<ThisType*>(mNative)->setScrollViewPage( Convert<size_t>::From(_value) );
183
property Convert<size_t>::Type ScrollPage
185
Convert<size_t>::Type get( )
187
MMYGUI_CHECK_NATIVE(mNative);
188
return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getScrollPage() );
190
void set(Convert<size_t>::Type _value)
192
MMYGUI_CHECK_NATIVE(mNative);
193
static_cast<ThisType*>(mNative)->setScrollPage( Convert<size_t>::From(_value) );
200
property Convert<size_t>::Type ScrollPosition
202
Convert<size_t>::Type get( )
204
MMYGUI_CHECK_NATIVE(mNative);
205
return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getScrollPosition() );
207
void set(Convert<size_t>::Type _value)
209
MMYGUI_CHECK_NATIVE(mNative);
210
static_cast<ThisType*>(mNative)->setScrollPosition( Convert<size_t>::From(_value) );
217
property Convert<size_t>::Type ScrollRange
219
Convert<size_t>::Type get( )
221
MMYGUI_CHECK_NATIVE(mNative);
222
return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getScrollRange() );
224
void set(Convert<size_t>::Type _value)
226
MMYGUI_CHECK_NATIVE(mNative);
227
static_cast<ThisType*>(mNative)->setScrollRange( Convert<size_t>::From(_value) );
234
property Convert<bool>::Type VerticalAlignment
236
Convert<bool>::Type get( )
238
MMYGUI_CHECK_NATIVE(mNative);
239
return Convert<bool>::To( static_cast<ThisType*>(mNative)->getVerticalAlignment() );
241
void set(Convert<bool>::Type _value)
243
MMYGUI_CHECK_NATIVE(mNative);
244
static_cast<ThisType*>(mNative)->setVerticalAlignment( Convert<bool>::From(_value) );
261
} // namespace Managed