3
@author Generate utility by Albert Semenov
8
#ifndef __EXPORT_WIDGET_Widget_H__
9
#define __EXPORT_WIDGET_Widget_H__
11
#include "../ExportDefine.h"
12
#include "../ExportMarshaling.h"
13
#include "MyGUI.Export_MarshalingWidget.h"
14
#include "../ExportMarshalingType.h"
22
namespace ScopeWidgetEvent_ChangeProperty
24
typedef void (MYGUICALLBACK *ExportHandle)(
25
Convert<MyGUI::Widget *>::Type ,
26
Convert<const std::string &>::Type ,
27
Convert<const std::string &>::Type );
28
ExportHandle mExportHandle = nullptr;
31
MyGUI::Widget * _sender ,
32
const std::string & _key ,
33
const std::string & _value )
36
Convert<MyGUI::Widget *>::To( _sender ) ,
37
Convert<const std::string &>::To( _key ) ,
38
Convert<const std::string &>::To( _value ) );
41
MYGUIEXPORT void MYGUICALL ExportWidgetEvent_DelegateChangeProperty( ExportHandle _delegate )
43
mExportHandle = _delegate;
45
MYGUIEXPORT void MYGUICALL ExportWidgetEvent_AdviseChangeProperty( MyGUI::Widget* _widget, bool _advise )
48
static_cast< MyGUI::Widget* >(_widget)->eventChangeProperty += MyGUI::newDelegate(OnEvent);
50
static_cast< MyGUI::Widget* >(_widget)->eventChangeProperty -= MyGUI::newDelegate(OnEvent);
56
namespace ScopeWidgetMethod_SetProperty
58
MYGUIEXPORT void MYGUICALL ExportWidget_SetProperty_key_value( MyGUI::Widget* _native,
59
Convert<const std::string &>::Type _key ,
60
Convert<const std::string &>::Type _value )
62
static_cast< MyGUI::Widget * >(_native)->setProperty(
63
Convert<const std::string &>::From( _key ) ,
64
Convert<const std::string &>::From( _value ) );
70
namespace ScopeWidgetMethod_GetWidgetStyle
72
MYGUIEXPORT Convert<MyGUI::WidgetStyle>::Type MYGUICALL ExportWidget_GetWidgetStyle( MyGUI::Widget* _native )
74
return Convert<MyGUI::WidgetStyle>::To( static_cast< MyGUI::Widget * >(_native)->getWidgetStyle( ) );
80
namespace ScopeWidgetMethod_SetWidgetStyle
82
MYGUIEXPORT void MYGUICALL ExportWidget_SetWidgetStyle_style_layer( MyGUI::Widget* _native,
83
Convert<MyGUI::WidgetStyle>::Type _style ,
84
Convert<const std::string &>::Type _layer )
86
static_cast< MyGUI::Widget * >(_native)->setWidgetStyle(
87
Convert<MyGUI::WidgetStyle>::From( _style ) ,
88
Convert<const std::string &>::From( _layer ) );
94
namespace ScopeWidgetMethod_ChangeWidgetSkin
96
MYGUIEXPORT void MYGUICALL ExportWidget_ChangeWidgetSkin_skinName( MyGUI::Widget* _native,
97
Convert<const std::string &>::Type _skinName )
99
static_cast< MyGUI::Widget * >(_native)->changeWidgetSkin(
100
Convert<const std::string &>::From( _skinName ) );
106
namespace ScopeWidgetMethod_AttachToWidget
108
MYGUIEXPORT void MYGUICALL ExportWidget_AttachToWidget_parent_style_layer( MyGUI::Widget* _native,
109
Convert<MyGUI::Widget *>::Type _parent ,
110
Convert<MyGUI::WidgetStyle>::Type _style ,
111
Convert<const std::string &>::Type _layer )
113
static_cast< MyGUI::Widget * >(_native)->attachToWidget(
114
Convert<MyGUI::Widget *>::From( _parent ) ,
115
Convert<MyGUI::WidgetStyle>::From( _style ) ,
116
Convert<const std::string &>::From( _layer ) );
122
namespace ScopeWidgetMethod_DetachFromWidget
124
MYGUIEXPORT void MYGUICALL ExportWidget_DetachFromWidget_layer( MyGUI::Widget* _native,
125
Convert<const std::string &>::Type _layer )
127
static_cast< MyGUI::Widget * >(_native)->detachFromWidget(
128
Convert<const std::string &>::From( _layer ) );
134
namespace ScopeWidgetMethod_GetClientWidget
136
MYGUIEXPORT Convert<MyGUI::Widget *>::Type MYGUICALL ExportWidget_GetClientWidget( MyGUI::Widget* _native )
138
return Convert<MyGUI::Widget *>::To( static_cast< MyGUI::Widget * >(_native)->getClientWidget( ) );
144
namespace ScopeWidgetMethod_GetClientCoord
146
MYGUIEXPORT Convert<MyGUI::types::TCoord< int >>::Type MYGUICALL ExportWidget_GetClientCoord( MyGUI::Widget* _native )
148
return Convert<MyGUI::types::TCoord< int >>::To( static_cast< MyGUI::Widget * >(_native)->getClientCoord( ) );
154
namespace ScopeWidgetMethod_GetInheritedEnabled
156
MYGUIEXPORT Convert<bool>::Type MYGUICALL ExportWidget_GetInheritedEnabled( MyGUI::Widget* _native )
158
return Convert<bool>::To( static_cast< MyGUI::Widget * >(_native)->getInheritedEnabled( ) );
164
namespace ScopeWidgetMethod_SetEnabledSilent
166
MYGUIEXPORT void MYGUICALL ExportWidget_SetEnabledSilent_value( MyGUI::Widget* _native,
167
Convert<bool>::Type _value )
169
static_cast< MyGUI::Widget * >(_native)->setEnabledSilent(
170
Convert<bool>::From( _value ) );
176
namespace ScopeWidgetProperty_Enabled
178
MYGUIEXPORT Convert<bool>::Type MYGUICALL ExportWidget_GetEnabled( MyGUI::Widget* _native )
180
return Convert<bool>::To( static_cast< MyGUI::Widget * >(_native)->getEnabled( ) );
182
MYGUIEXPORT void MYGUICALL ExportWidget_SetEnabled( MyGUI::Widget* _native , Convert<bool>::Type _value )
184
static_cast< MyGUI::Widget * >(_native)->setEnabled( Convert<bool>::From( _value ) );
193
namespace ScopeWidgetMethod_FindWidget
195
MYGUIEXPORT Convert<MyGUI::Widget *>::Type MYGUICALL ExportWidget_FindWidget_name( MyGUI::Widget* _native,
196
Convert<const std::string &>::Type _name )
198
return Convert<MyGUI::Widget *>::To( static_cast< MyGUI::Widget * >(_native)->findWidget(
199
Convert<const std::string &>::From( _name ) ));
205
namespace ScopeWidgetMethod_GetChildAt
207
MYGUIEXPORT Convert<MyGUI::Widget *>::Type MYGUICALL ExportWidget_GetChildAt_index( MyGUI::Widget* _native,
208
Convert<size_t>::Type _index )
210
return Convert<MyGUI::Widget *>::To( static_cast< MyGUI::Widget * >(_native)->getChildAt(
211
Convert<size_t>::From( _index ) ));
217
namespace ScopeWidgetMethod_GetChildCount
219
MYGUIEXPORT Convert<size_t>::Type MYGUICALL ExportWidget_GetChildCount( MyGUI::Widget* _native )
221
return Convert<size_t>::To( static_cast< MyGUI::Widget * >(_native)->getChildCount( ) );
230
namespace ScopeWidgetMethod_GetParentSize
232
MYGUIEXPORT Convert<MyGUI::types::TSize< int >>::Type MYGUICALL ExportWidget_GetParentSize( MyGUI::Widget* _native )
234
return Convert<MyGUI::types::TSize< int >>::To( static_cast< MyGUI::Widget * >(_native)->getParentSize( ) );
240
namespace ScopeWidgetMethod_GetParent
242
MYGUIEXPORT Convert<MyGUI::Widget *>::Type MYGUICALL ExportWidget_GetParent( MyGUI::Widget* _native )
244
return Convert<MyGUI::Widget *>::To( static_cast< MyGUI::Widget * >(_native)->getParent( ) );
250
namespace ScopeWidgetMethod_IsRootWidget
252
MYGUIEXPORT Convert<bool>::Type MYGUICALL ExportWidget_IsRootWidget( MyGUI::Widget* _native )
254
return Convert<bool>::To( static_cast< MyGUI::Widget * >(_native)->isRootWidget( ) );
260
namespace ScopeWidgetMethod_SetColour
262
MYGUIEXPORT void MYGUICALL ExportWidget_SetColour_value( MyGUI::Widget* _native,
263
Convert<const MyGUI::Colour &>::Type _value )
265
static_cast< MyGUI::Widget * >(_native)->setColour(
266
Convert<const MyGUI::Colour &>::From( _value ) );
272
namespace ScopeWidgetProperty_InheritsAlpha
274
MYGUIEXPORT Convert<bool>::Type MYGUICALL ExportWidget_GetInheritsAlpha( MyGUI::Widget* _native )
276
return Convert<bool>::To( static_cast< MyGUI::Widget * >(_native)->getInheritsAlpha( ) );
278
MYGUIEXPORT void MYGUICALL ExportWidget_SetInheritsAlpha( MyGUI::Widget* _native , Convert<bool>::Type _value )
280
static_cast< MyGUI::Widget * >(_native)->setInheritsAlpha( Convert<bool>::From( _value ) );
286
namespace ScopeWidgetProperty_Alpha
288
MYGUIEXPORT Convert<float>::Type MYGUICALL ExportWidget_GetAlpha( MyGUI::Widget* _native )
290
return Convert<float>::To( static_cast< MyGUI::Widget * >(_native)->getAlpha( ) );
292
MYGUIEXPORT void MYGUICALL ExportWidget_SetAlpha( MyGUI::Widget* _native , Convert<float>::Type _value )
294
static_cast< MyGUI::Widget * >(_native)->setAlpha( Convert<float>::From( _value ) );
300
namespace ScopeWidgetProperty_Align
302
MYGUIEXPORT Convert<MyGUI::Align>::Type MYGUICALL ExportWidget_GetAlign( MyGUI::Widget* _native )
304
return Convert<MyGUI::Align>::To( static_cast< MyGUI::Widget * >(_native)->getAlign( ) );
306
MYGUIEXPORT void MYGUICALL ExportWidget_SetAlign( MyGUI::Widget* _native , Convert<MyGUI::Align>::Type _value )
308
static_cast< MyGUI::Widget * >(_native)->setAlign( Convert<MyGUI::Align>::From( _value ) );
314
namespace ScopeWidgetMethod_GetInheritedVisible
316
MYGUIEXPORT Convert<bool>::Type MYGUICALL ExportWidget_GetInheritedVisible( MyGUI::Widget* _native )
318
return Convert<bool>::To( static_cast< MyGUI::Widget * >(_native)->getInheritedVisible( ) );
324
namespace ScopeWidgetProperty_Visible
326
MYGUIEXPORT Convert<bool>::Type MYGUICALL ExportWidget_GetVisible( MyGUI::Widget* _native )
328
return Convert<bool>::To( static_cast< MyGUI::Widget * >(_native)->getVisible( ) );
330
MYGUIEXPORT void MYGUICALL ExportWidget_SetVisible( MyGUI::Widget* _native , Convert<bool>::Type _value )
332
static_cast< MyGUI::Widget * >(_native)->setVisible( Convert<bool>::From( _value ) );
338
namespace ScopeWidgetMethod_GetName
340
MYGUIEXPORT Convert<const std::string &>::Type MYGUICALL ExportWidget_GetName( MyGUI::Widget* _native )
342
return Convert<const std::string &>::To( static_cast< MyGUI::Widget * >(_native)->getName( ) );
348
namespace ScopeWidgetMethod_SetRealCoord
350
MYGUIEXPORT void MYGUICALL ExportWidget_SetRealCoord_left_top_width_height( MyGUI::Widget* _native,
351
Convert<float>::Type _left ,
352
Convert<float>::Type _top ,
353
Convert<float>::Type _width ,
354
Convert<float>::Type _height )
356
static_cast< MyGUI::Widget * >(_native)->setRealCoord(
357
Convert<float>::From( _left ) ,
358
Convert<float>::From( _top ) ,
359
Convert<float>::From( _width ) ,
360
Convert<float>::From( _height ) );
366
namespace ScopeWidgetMethod_SetRealSize
368
MYGUIEXPORT void MYGUICALL ExportWidget_SetRealSize_width_height( MyGUI::Widget* _native,
369
Convert<float>::Type _width ,
370
Convert<float>::Type _height )
372
static_cast< MyGUI::Widget * >(_native)->setRealSize(
373
Convert<float>::From( _width ) ,
374
Convert<float>::From( _height ) );
380
namespace ScopeWidgetMethod_SetRealPosition
382
MYGUIEXPORT void MYGUICALL ExportWidget_SetRealPosition_left_top( MyGUI::Widget* _native,
383
Convert<float>::Type _left ,
384
Convert<float>::Type _top )
386
static_cast< MyGUI::Widget * >(_native)->setRealPosition(
387
Convert<float>::From( _left ) ,
388
Convert<float>::From( _top ) );
394
namespace ScopeWidgetMethod_SetRealCoord
396
MYGUIEXPORT void MYGUICALL ExportWidget_SetRealCoord_value( MyGUI::Widget* _native,
397
Convert<const MyGUI::types::TCoord< float > &>::Type _value )
399
static_cast< MyGUI::Widget * >(_native)->setRealCoord(
400
Convert<const MyGUI::types::TCoord< float > &>::From( _value ) );
406
namespace ScopeWidgetMethod_SetRealSize
408
MYGUIEXPORT void MYGUICALL ExportWidget_SetRealSize_value( MyGUI::Widget* _native,
409
Convert<const MyGUI::types::TSize< float > &>::Type _value )
411
static_cast< MyGUI::Widget * >(_native)->setRealSize(
412
Convert<const MyGUI::types::TSize< float > &>::From( _value ) );
418
namespace ScopeWidgetMethod_SetRealPosition
420
MYGUIEXPORT void MYGUICALL ExportWidget_SetRealPosition_value( MyGUI::Widget* _native,
421
Convert<const MyGUI::types::TPoint< float > &>::Type _value )
423
static_cast< MyGUI::Widget * >(_native)->setRealPosition(
424
Convert<const MyGUI::types::TPoint< float > &>::From( _value ) );
430
namespace ScopeWidgetMethod_SetCoord
432
MYGUIEXPORT void MYGUICALL ExportWidget_SetCoord_left_top_width_height( MyGUI::Widget* _native,
433
Convert<int>::Type _left ,
434
Convert<int>::Type _top ,
435
Convert<int>::Type _width ,
436
Convert<int>::Type _height )
438
static_cast< MyGUI::Widget * >(_native)->setCoord(
439
Convert<int>::From( _left ) ,
440
Convert<int>::From( _top ) ,
441
Convert<int>::From( _width ) ,
442
Convert<int>::From( _height ) );
448
namespace ScopeWidgetMethod_SetSize
450
MYGUIEXPORT void MYGUICALL ExportWidget_SetSize_width_height( MyGUI::Widget* _native,
451
Convert<int>::Type _width ,
452
Convert<int>::Type _height )
454
static_cast< MyGUI::Widget * >(_native)->setSize(
455
Convert<int>::From( _width ) ,
456
Convert<int>::From( _height ) );
462
namespace ScopeWidgetMethod_SetPosition
464
MYGUIEXPORT void MYGUICALL ExportWidget_SetPosition_left_top( MyGUI::Widget* _native,
465
Convert<int>::Type _left ,
466
Convert<int>::Type _top )
468
static_cast< MyGUI::Widget * >(_native)->setPosition(
469
Convert<int>::From( _left ) ,
470
Convert<int>::From( _top ) );
476
namespace ScopeWidgetMethod_SetCoord
478
MYGUIEXPORT void MYGUICALL ExportWidget_SetCoord_value( MyGUI::Widget* _native,
479
Convert<const MyGUI::types::TCoord< int > &>::Type _value )
481
static_cast< MyGUI::Widget * >(_native)->setCoord(
482
Convert<const MyGUI::types::TCoord< int > &>::From( _value ) );
488
namespace ScopeWidgetMethod_SetSize
490
MYGUIEXPORT void MYGUICALL ExportWidget_SetSize_value( MyGUI::Widget* _native,
491
Convert<const MyGUI::types::TSize< int > &>::Type _value )
493
static_cast< MyGUI::Widget * >(_native)->setSize(
494
Convert<const MyGUI::types::TSize< int > &>::From( _value ) );
500
namespace ScopeWidgetMethod_SetPosition
502
MYGUIEXPORT void MYGUICALL ExportWidget_SetPosition_value( MyGUI::Widget* _native,
503
Convert<const MyGUI::types::TPoint< int > &>::Type _value )
505
static_cast< MyGUI::Widget * >(_native)->setPosition(
506
Convert<const MyGUI::types::TPoint< int > &>::From( _value ) );
553
#endif // __EXPORT_WIDGET_Widget_H__