3
@author Generate utility by Albert Semenov
9
#include "MyGUI_Managed_Widget.h"
16
public ref class ImageBox : public Widget
20
typedef MyGUI::ImageBox ThisType;
23
ImageBox() : Widget() { }
26
ImageBox( MyGUI::ImageBox* _native ) : Widget(_native) { }
27
ImageBox( 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 ImageBox(_parent, _style, _skin, _coord, _align, _layer, _name);
44
Convert<const std::string &>::Type _value )
46
MMYGUI_CHECK_NATIVE(mNative);
47
static_cast<ThisType*>(mNative)->setItemName(
48
Convert<const std::string &>::From(_value) );
52
Convert<const std::string &>::Type _value )
54
MMYGUI_CHECK_NATIVE(mNative);
55
static_cast<ThisType*>(mNative)->setItemGroup(
56
Convert<const std::string &>::From(_value) );
59
Convert<bool>::Type SetItemResource(
60
Convert<const std::string &>::Type _name )
62
MMYGUI_CHECK_NATIVE(mNative);
63
return Convert<bool>::To(
64
static_cast<ThisType*>(mNative)->setItemResource(
65
Convert<const std::string &>::From(_name) ) );
68
Convert<float>::Type GetItemFrameRate(
69
Convert<size_t>::Type _index )
71
MMYGUI_CHECK_NATIVE(mNative);
72
return Convert<float>::To(
73
static_cast<ThisType*>(mNative)->getItemFrameRate(
74
Convert<size_t>::From(_index) ) );
77
void SetItemFrameRate(
78
Convert<size_t>::Type _index ,
79
Convert<float>::Type _rate )
81
MMYGUI_CHECK_NATIVE(mNative);
82
static_cast<ThisType*>(mNative)->setItemFrameRate(
83
Convert<size_t>::From(_index) ,
84
Convert<float>::From(_rate) );
87
void DeleteAllItemFrames(
88
Convert<size_t>::Type _index )
90
MMYGUI_CHECK_NATIVE(mNative);
91
static_cast<ThisType*>(mNative)->deleteAllItemFrames(
92
Convert<size_t>::From(_index) );
96
Convert<size_t>::Type _index ,
97
Convert<size_t>::Type _indexFrame )
99
MMYGUI_CHECK_NATIVE(mNative);
100
static_cast<ThisType*>(mNative)->deleteItemFrame(
101
Convert<size_t>::From(_index) ,
102
Convert<size_t>::From(_indexFrame) );
106
Convert<size_t>::Type _index ,
107
Convert<size_t>::Type _indexFrame ,
108
Convert<const MyGUI::types::TCoord < int > &>::Type _item )
110
MMYGUI_CHECK_NATIVE(mNative);
111
static_cast<ThisType*>(mNative)->setItemFrame(
112
Convert<size_t>::From(_index) ,
113
Convert<size_t>::From(_indexFrame) ,
114
Convert<const MyGUI::types::TCoord < int > &>::From(_item) );
117
void InsertItemFrameDublicate(
118
Convert<size_t>::Type _index ,
119
Convert<size_t>::Type _indexFrame ,
120
Convert<size_t>::Type _indexSourceFrame )
122
MMYGUI_CHECK_NATIVE(mNative);
123
static_cast<ThisType*>(mNative)->insertItemFrameDublicate(
124
Convert<size_t>::From(_index) ,
125
Convert<size_t>::From(_indexFrame) ,
126
Convert<size_t>::From(_indexSourceFrame) );
129
void AddItemFrameDublicate(
130
Convert<size_t>::Type _index ,
131
Convert<size_t>::Type _indexSourceFrame )
133
MMYGUI_CHECK_NATIVE(mNative);
134
static_cast<ThisType*>(mNative)->addItemFrameDublicate(
135
Convert<size_t>::From(_index) ,
136
Convert<size_t>::From(_indexSourceFrame) );
139
void InsertItemFrame(
140
Convert<size_t>::Type _index ,
141
Convert<size_t>::Type _indexFrame ,
142
Convert<const MyGUI::types::TCoord < int > &>::Type _item )
144
MMYGUI_CHECK_NATIVE(mNative);
145
static_cast<ThisType*>(mNative)->insertItemFrame(
146
Convert<size_t>::From(_index) ,
147
Convert<size_t>::From(_indexFrame) ,
148
Convert<const MyGUI::types::TCoord < int > &>::From(_item) );
152
Convert<size_t>::Type _index ,
153
Convert<const MyGUI::types::TCoord < int > &>::Type _item )
155
MMYGUI_CHECK_NATIVE(mNative);
156
static_cast<ThisType*>(mNative)->addItemFrame(
157
Convert<size_t>::From(_index) ,
158
Convert<const MyGUI::types::TCoord < int > &>::From(_item) );
161
void DeleteAllItems( )
163
MMYGUI_CHECK_NATIVE(mNative);
164
static_cast<ThisType*>(mNative)->deleteAllItems( );
168
Convert<size_t>::Type _index )
170
MMYGUI_CHECK_NATIVE(mNative);
171
static_cast<ThisType*>(mNative)->deleteItem(
172
Convert<size_t>::From(_index) );
176
Convert<size_t>::Type _index ,
177
Convert<const MyGUI::types::TCoord < int > &>::Type _item )
179
MMYGUI_CHECK_NATIVE(mNative);
180
static_cast<ThisType*>(mNative)->setItem(
181
Convert<size_t>::From(_index) ,
182
Convert<const MyGUI::types::TCoord < int > &>::From(_item) );
186
Convert<const MyGUI::types::TCoord < int > &>::Type _item )
188
MMYGUI_CHECK_NATIVE(mNative);
189
static_cast<ThisType*>(mNative)->addItem(
190
Convert<const MyGUI::types::TCoord < int > &>::From(_item) );
194
Convert<size_t>::Type _index ,
195
Convert<const MyGUI::types::TCoord < int > &>::Type _item )
197
MMYGUI_CHECK_NATIVE(mNative);
198
static_cast<ThisType*>(mNative)->insertItem(
199
Convert<size_t>::From(_index) ,
200
Convert<const MyGUI::types::TCoord < int > &>::From(_item) );
203
void ResetItemSelect( )
205
MMYGUI_CHECK_NATIVE(mNative);
206
static_cast<ThisType*>(mNative)->resetItemSelect( );
210
Convert<const MyGUI::types::TSize < int > &>::Type _value )
212
MMYGUI_CHECK_NATIVE(mNative);
213
static_cast<ThisType*>(mNative)->setImageTile(
214
Convert<const MyGUI::types::TSize < int > &>::From(_value) );
218
Convert<const MyGUI::types::TCoord < int > &>::Type _value )
220
MMYGUI_CHECK_NATIVE(mNative);
221
static_cast<ThisType*>(mNative)->setImageCoord(
222
Convert<const MyGUI::types::TCoord < int > &>::From(_value) );
226
Convert<const MyGUI::types::TRect < int > &>::Type _value )
228
MMYGUI_CHECK_NATIVE(mNative);
229
static_cast<ThisType*>(mNative)->setImageRect(
230
Convert<const MyGUI::types::TRect < int > &>::From(_value) );
233
void SetImageTexture(
234
Convert<const std::string &>::Type _value )
236
MMYGUI_CHECK_NATIVE(mNative);
237
static_cast<ThisType*>(mNative)->setImageTexture(
238
Convert<const std::string &>::From(_value) );
242
Convert<const std::string &>::Type _texture ,
243
Convert<const MyGUI::types::TCoord < int > &>::Type _coord ,
244
Convert<const MyGUI::types::TSize < int > &>::Type _tile )
246
MMYGUI_CHECK_NATIVE(mNative);
247
static_cast<ThisType*>(mNative)->setImageInfo(
248
Convert<const std::string &>::From(_texture) ,
249
Convert<const MyGUI::types::TCoord < int > &>::From(_coord) ,
250
Convert<const MyGUI::types::TSize < int > &>::From(_tile) );
253
property Convert<size_t>::Type ItemSelect
255
Convert<size_t>::Type get( )
257
MMYGUI_CHECK_NATIVE(mNative);
258
return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getItemSelect() );
260
void set(Convert<size_t>::Type _value)
262
MMYGUI_CHECK_NATIVE(mNative);
263
static_cast<ThisType*>(mNative)->setItemSelect( Convert<size_t>::From(_value) );
268
property Convert<size_t>::Type ItemCount
270
Convert<size_t>::Type get( )
272
MMYGUI_CHECK_NATIVE(mNative);
273
return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getItemCount() );
278
property Convert<size_t>::Type ImageIndex
280
Convert<size_t>::Type get( )
282
MMYGUI_CHECK_NATIVE(mNative);
283
return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getImageIndex() );
285
void set(Convert<size_t>::Type _value)
287
MMYGUI_CHECK_NATIVE(mNative);
288
static_cast<ThisType*>(mNative)->setImageIndex( Convert<size_t>::From(_value) );
294
} // namespace Managed