3
@author Generate utility by Albert Semenov
8
#ifndef __EXPORT_WIDGET_DDContainer_H__
9
#define __EXPORT_WIDGET_DDContainer_H__
11
#include "../ExportDefine.h"
12
#include "../ExportMarshaling.h"
13
#include "MyGUI.Export_MarshalingWidget.h"
14
#include "../ExportMarshalingType.h"
26
namespace ScopeDDContainerEvent_DragWidgetInfo
28
typedef void (MYGUICALLBACK *ExportHandle)(
29
Convert<MyGUI::DDContainer *>::Type ,
30
Convert<MyGUI::Widget * &>::Type ,
31
Convert<MyGUI::types::TCoord< int > &>::Type );
32
ExportHandle mExportHandle = nullptr;
35
MyGUI::DDContainer * _sender ,
36
MyGUI::Widget * & _item ,
37
MyGUI::types::TCoord< int > & _dimension )
40
Convert<MyGUI::DDContainer *>::To( _sender ) ,
41
Convert<MyGUI::Widget * &>::To( _item ) ,
42
Convert<MyGUI::types::TCoord< int > &>::To( _dimension ) );
45
MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_DelegateDragWidgetInfo( ExportHandle _delegate )
47
mExportHandle = _delegate;
49
MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_AdviseDragWidgetInfo( MyGUI::Widget* _widget, bool _advise )
51
static_cast< MyGUI::DDContainer* >(_widget)->requestDragWidgetInfo = _advise ? MyGUI::newDelegate(OnEvent) : nullptr;
57
namespace ScopeDDContainerEvent_ChangeDDState
59
typedef void (MYGUICALLBACK *ExportHandle)(
60
Convert<MyGUI::DDContainer *>::Type ,
61
Convert<MyGUI::DDItemState>::Type );
62
ExportHandle mExportHandle = nullptr;
65
MyGUI::DDContainer * _sender ,
66
MyGUI::DDItemState _state )
69
Convert<MyGUI::DDContainer *>::To( _sender ) ,
70
Convert<MyGUI::DDItemState>::To( _state ) );
73
MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_DelegateChangeDDState( ExportHandle _delegate )
75
mExportHandle = _delegate;
77
MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_AdviseChangeDDState( MyGUI::Widget* _widget, bool _advise )
80
static_cast< MyGUI::DDContainer* >(_widget)->eventChangeDDState += MyGUI::newDelegate(OnEvent);
82
static_cast< MyGUI::DDContainer* >(_widget)->eventChangeDDState -= MyGUI::newDelegate(OnEvent);
88
namespace ScopeDDContainerEvent_DropResult
90
typedef void (MYGUICALLBACK *ExportHandle)(
91
Convert<MyGUI::DDContainer *>::Type ,
92
Convert<const MyGUI::DDItemInfo &>::Type ,
93
Convert<bool>::Type );
94
ExportHandle mExportHandle = nullptr;
97
MyGUI::DDContainer * _sender ,
98
const MyGUI::DDItemInfo & _info ,
102
Convert<MyGUI::DDContainer *>::To( _sender ) ,
103
Convert<const MyGUI::DDItemInfo &>::To( _info ) ,
104
Convert<bool>::To( _result ) );
107
MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_DelegateDropResult( ExportHandle _delegate )
109
mExportHandle = _delegate;
111
MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_AdviseDropResult( MyGUI::Widget* _widget, bool _advise )
114
static_cast< MyGUI::DDContainer* >(_widget)->eventDropResult += MyGUI::newDelegate(OnEvent);
116
static_cast< MyGUI::DDContainer* >(_widget)->eventDropResult -= MyGUI::newDelegate(OnEvent);
122
namespace ScopeDDContainerEvent_RequestDrop
124
typedef void (MYGUICALLBACK *ExportHandle)(
125
Convert<MyGUI::DDContainer *>::Type ,
126
Convert<const MyGUI::DDItemInfo &>::Type ,
127
Convert<bool &>::Type );
128
ExportHandle mExportHandle = nullptr;
131
MyGUI::DDContainer * _sender ,
132
const MyGUI::DDItemInfo & _info ,
136
Convert<MyGUI::DDContainer *>::To( _sender ) ,
137
Convert<const MyGUI::DDItemInfo &>::To( _info ) ,
138
Convert<bool &>::To( _result ) );
141
MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_DelegateRequestDrop( ExportHandle _delegate )
143
mExportHandle = _delegate;
145
MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_AdviseRequestDrop( MyGUI::Widget* _widget, bool _advise )
148
static_cast< MyGUI::DDContainer* >(_widget)->eventRequestDrop += MyGUI::newDelegate(OnEvent);
150
static_cast< MyGUI::DDContainer* >(_widget)->eventRequestDrop -= MyGUI::newDelegate(OnEvent);
156
namespace ScopeDDContainerEvent_StartDrag
158
typedef void (MYGUICALLBACK *ExportHandle)(
159
Convert<MyGUI::DDContainer *>::Type ,
160
Convert<const MyGUI::DDItemInfo &>::Type ,
161
Convert<bool &>::Type );
162
ExportHandle mExportHandle = nullptr;
165
MyGUI::DDContainer * _sender ,
166
const MyGUI::DDItemInfo & _info ,
170
Convert<MyGUI::DDContainer *>::To( _sender ) ,
171
Convert<const MyGUI::DDItemInfo &>::To( _info ) ,
172
Convert<bool &>::To( _result ) );
175
MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_DelegateStartDrag( ExportHandle _delegate )
177
mExportHandle = _delegate;
179
MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_AdviseStartDrag( MyGUI::Widget* _widget, bool _advise )
182
static_cast< MyGUI::DDContainer* >(_widget)->eventStartDrag += MyGUI::newDelegate(OnEvent);
184
static_cast< MyGUI::DDContainer* >(_widget)->eventStartDrag -= MyGUI::newDelegate(OnEvent);
190
namespace ScopeDDContainerMethod_ResetDrag
192
MYGUIEXPORT void MYGUICALL ExportDDContainer_ResetDrag( MyGUI::Widget* _native )
194
static_cast< MyGUI::DDContainer * >(_native)->resetDrag( );
200
namespace ScopeDDContainerProperty_NeedDragDrop
202
MYGUIEXPORT Convert<bool>::Type MYGUICALL ExportDDContainer_GetNeedDragDrop( MyGUI::Widget* _native )
204
return Convert<bool>::To( static_cast< MyGUI::DDContainer * >(_native)->getNeedDragDrop( ) );
206
MYGUIEXPORT void MYGUICALL ExportDDContainer_SetNeedDragDrop( MyGUI::Widget* _native , Convert<bool>::Type _value )
208
static_cast< MyGUI::DDContainer * >(_native)->setNeedDragDrop( Convert<bool>::From( _value ) );
225
#endif // __EXPORT_WIDGET_DDContainer_H__