~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to Wrappers/MyGUI.Export/Generate/MyGUI.Export_DDContainer.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*!
2
 
        @file
3
 
        @author         Generate utility by Albert Semenov
4
 
        @date           01/2009
5
 
        @module
6
 
*/
7
 
 
8
 
#ifndef __EXPORT_WIDGET_DDContainer_H__
9
 
#define __EXPORT_WIDGET_DDContainer_H__
10
 
 
11
 
#include "../ExportDefine.h"
12
 
#include "../ExportMarshaling.h"
13
 
#include "MyGUI.Export_MarshalingWidget.h"
14
 
#include "../ExportMarshalingType.h"
15
 
#include <MyGUI.h>
16
 
 
17
 
namespace Export
18
 
{
19
 
 
20
 
        //InsertPoint
21
 
 
22
 
 
23
 
 
24
 
 
25
 
 
26
 
        namespace ScopeDDContainerEvent_DragWidgetInfo
27
 
        {
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;
33
 
                
34
 
                void OnEvent(
35
 
                        MyGUI::DDContainer * _sender ,
36
 
                        MyGUI::Widget * & _item ,
37
 
                        MyGUI::types::TCoord< int > & _dimension )
38
 
                {
39
 
                        mExportHandle(
40
 
                                Convert<MyGUI::DDContainer *>::To( _sender ) ,
41
 
                                Convert<MyGUI::Widget * &>::To( _item ) ,
42
 
                                Convert<MyGUI::types::TCoord< int > &>::To( _dimension ) );
43
 
                }
44
 
                
45
 
                MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_DelegateDragWidgetInfo( ExportHandle _delegate )
46
 
                {
47
 
                        mExportHandle = _delegate;
48
 
                }
49
 
                MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_AdviseDragWidgetInfo( MyGUI::Widget* _widget, bool _advise )
50
 
                {
51
 
                        static_cast< MyGUI::DDContainer* >(_widget)->requestDragWidgetInfo = _advise ? MyGUI::newDelegate(OnEvent) : nullptr;
52
 
                }
53
 
        }
54
 
 
55
 
 
56
 
 
57
 
        namespace ScopeDDContainerEvent_ChangeDDState
58
 
        {
59
 
                typedef void (MYGUICALLBACK *ExportHandle)(
60
 
                        Convert<MyGUI::DDContainer *>::Type ,
61
 
                        Convert<MyGUI::DDItemState>::Type );
62
 
                ExportHandle mExportHandle = nullptr;
63
 
                
64
 
                void OnEvent(
65
 
                        MyGUI::DDContainer * _sender ,
66
 
                        MyGUI::DDItemState _state )
67
 
                {
68
 
                        mExportHandle(
69
 
                                Convert<MyGUI::DDContainer *>::To( _sender ) ,
70
 
                                Convert<MyGUI::DDItemState>::To( _state ) );
71
 
                }
72
 
                
73
 
                MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_DelegateChangeDDState( ExportHandle _delegate )
74
 
                {
75
 
                        mExportHandle = _delegate;
76
 
                }
77
 
                MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_AdviseChangeDDState( MyGUI::Widget* _widget, bool _advise )
78
 
                {
79
 
                        if (_advise)
80
 
                                static_cast< MyGUI::DDContainer* >(_widget)->eventChangeDDState += MyGUI::newDelegate(OnEvent);
81
 
                        else
82
 
                                static_cast< MyGUI::DDContainer* >(_widget)->eventChangeDDState -= MyGUI::newDelegate(OnEvent);
83
 
                }
84
 
        }
85
 
 
86
 
 
87
 
 
88
 
        namespace ScopeDDContainerEvent_DropResult
89
 
        {
90
 
                typedef void (MYGUICALLBACK *ExportHandle)(
91
 
                        Convert<MyGUI::DDContainer *>::Type ,
92
 
                        Convert<const MyGUI::DDItemInfo &>::Type ,
93
 
                        Convert<bool>::Type );
94
 
                ExportHandle mExportHandle = nullptr;
95
 
                
96
 
                void OnEvent(
97
 
                        MyGUI::DDContainer * _sender ,
98
 
                        const MyGUI::DDItemInfo & _info ,
99
 
                        bool _result )
100
 
                {
101
 
                        mExportHandle(
102
 
                                Convert<MyGUI::DDContainer *>::To( _sender ) ,
103
 
                                Convert<const MyGUI::DDItemInfo &>::To( _info ) ,
104
 
                                Convert<bool>::To( _result ) );
105
 
                }
106
 
                
107
 
                MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_DelegateDropResult( ExportHandle _delegate )
108
 
                {
109
 
                        mExportHandle = _delegate;
110
 
                }
111
 
                MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_AdviseDropResult( MyGUI::Widget* _widget, bool _advise )
112
 
                {
113
 
                        if (_advise)
114
 
                                static_cast< MyGUI::DDContainer* >(_widget)->eventDropResult += MyGUI::newDelegate(OnEvent);
115
 
                        else
116
 
                                static_cast< MyGUI::DDContainer* >(_widget)->eventDropResult -= MyGUI::newDelegate(OnEvent);
117
 
                }
118
 
        }
119
 
 
120
 
 
121
 
 
122
 
        namespace ScopeDDContainerEvent_RequestDrop
123
 
        {
124
 
                typedef void (MYGUICALLBACK *ExportHandle)(
125
 
                        Convert<MyGUI::DDContainer *>::Type ,
126
 
                        Convert<const MyGUI::DDItemInfo &>::Type ,
127
 
                        Convert<bool &>::Type );
128
 
                ExportHandle mExportHandle = nullptr;
129
 
                
130
 
                void OnEvent(
131
 
                        MyGUI::DDContainer * _sender ,
132
 
                        const MyGUI::DDItemInfo & _info ,
133
 
                        bool & _result )
134
 
                {
135
 
                        mExportHandle(
136
 
                                Convert<MyGUI::DDContainer *>::To( _sender ) ,
137
 
                                Convert<const MyGUI::DDItemInfo &>::To( _info ) ,
138
 
                                Convert<bool &>::To( _result ) );
139
 
                }
140
 
                
141
 
                MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_DelegateRequestDrop( ExportHandle _delegate )
142
 
                {
143
 
                        mExportHandle = _delegate;
144
 
                }
145
 
                MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_AdviseRequestDrop( MyGUI::Widget* _widget, bool _advise )
146
 
                {
147
 
                        if (_advise)
148
 
                                static_cast< MyGUI::DDContainer* >(_widget)->eventRequestDrop += MyGUI::newDelegate(OnEvent);
149
 
                        else
150
 
                                static_cast< MyGUI::DDContainer* >(_widget)->eventRequestDrop -= MyGUI::newDelegate(OnEvent);
151
 
                }
152
 
        }
153
 
 
154
 
 
155
 
 
156
 
        namespace ScopeDDContainerEvent_StartDrag
157
 
        {
158
 
                typedef void (MYGUICALLBACK *ExportHandle)(
159
 
                        Convert<MyGUI::DDContainer *>::Type ,
160
 
                        Convert<const MyGUI::DDItemInfo &>::Type ,
161
 
                        Convert<bool &>::Type );
162
 
                ExportHandle mExportHandle = nullptr;
163
 
                
164
 
                void OnEvent(
165
 
                        MyGUI::DDContainer * _sender ,
166
 
                        const MyGUI::DDItemInfo & _info ,
167
 
                        bool & _result )
168
 
                {
169
 
                        mExportHandle(
170
 
                                Convert<MyGUI::DDContainer *>::To( _sender ) ,
171
 
                                Convert<const MyGUI::DDItemInfo &>::To( _info ) ,
172
 
                                Convert<bool &>::To( _result ) );
173
 
                }
174
 
                
175
 
                MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_DelegateStartDrag( ExportHandle _delegate )
176
 
                {
177
 
                        mExportHandle = _delegate;
178
 
                }
179
 
                MYGUIEXPORT void MYGUICALL ExportDDContainerEvent_AdviseStartDrag( MyGUI::Widget* _widget, bool _advise )
180
 
                {
181
 
                        if (_advise)
182
 
                                static_cast< MyGUI::DDContainer* >(_widget)->eventStartDrag += MyGUI::newDelegate(OnEvent);
183
 
                        else
184
 
                                static_cast< MyGUI::DDContainer* >(_widget)->eventStartDrag -= MyGUI::newDelegate(OnEvent);
185
 
                }
186
 
        }
187
 
 
188
 
 
189
 
 
190
 
        namespace ScopeDDContainerMethod_ResetDrag
191
 
        {
192
 
                MYGUIEXPORT void MYGUICALL ExportDDContainer_ResetDrag( MyGUI::Widget* _native )
193
 
                {
194
 
                        static_cast< MyGUI::DDContainer * >(_native)->resetDrag( );
195
 
                }
196
 
        }
197
 
 
198
 
 
199
 
 
200
 
        namespace ScopeDDContainerProperty_NeedDragDrop
201
 
        {
202
 
                MYGUIEXPORT Convert<bool>::Type MYGUICALL ExportDDContainer_GetNeedDragDrop( MyGUI::Widget* _native )
203
 
                {
204
 
                        return Convert<bool>::To( static_cast< MyGUI::DDContainer * >(_native)->getNeedDragDrop( ) );
205
 
                }
206
 
                MYGUIEXPORT void MYGUICALL ExportDDContainer_SetNeedDragDrop( MyGUI::Widget* _native , Convert<bool>::Type _value )
207
 
                {
208
 
                        static_cast< MyGUI::DDContainer * >(_native)->setNeedDragDrop( Convert<bool>::From( _value ) );
209
 
                }
210
 
        }
211
 
 
212
 
 
213
 
 
214
 
   
215
 
 
216
 
 
217
 
   
218
 
 
219
 
 
220
 
   
221
 
 
222
 
 
223
 
}
224
 
 
225
 
#endif // __EXPORT_WIDGET_DDContainer_H__