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

« back to all changes in this revision

Viewing changes to Wrappers/MyGUI_Managed/Generate/MyGUI_Managed_ImageBox.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
#pragma once
 
8
 
 
9
#include "MyGUI_Managed_Widget.h"
 
10
 
 
11
namespace MyGUI
 
12
{
 
13
        namespace Managed
 
14
        {
 
15
 
 
16
                public ref class ImageBox : public Widget
 
17
                {
 
18
 
 
19
                private:
 
20
                        typedef MyGUI::ImageBox ThisType;
 
21
 
 
22
                public:
 
23
                        ImageBox() : Widget() { }
 
24
 
 
25
                internal:
 
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 )
 
28
                        {
 
29
                                CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name);
 
30
                        }
 
31
 
 
32
                        virtual const std::string& getClassTypeName() override { return ThisType::getClassTypeName(); }
 
33
 
 
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)
 
35
                        {
 
36
                                return gcnew ImageBox(_parent, _style, _skin, _coord, _align, _layer, _name);
 
37
                        }
 
38
 
 
39
 
 
40
                        //InsertPoint
 
41
 
 
42
        public:
 
43
                void SetItemName(
 
44
                        Convert<const std::string &>::Type _value )
 
45
                {
 
46
                        MMYGUI_CHECK_NATIVE(mNative);
 
47
                        static_cast<ThisType*>(mNative)->setItemName(
 
48
                                Convert<const std::string &>::From(_value) );
 
49
                }
 
50
        public:
 
51
                void SetItemGroup(
 
52
                        Convert<const std::string &>::Type _value )
 
53
                {
 
54
                        MMYGUI_CHECK_NATIVE(mNative);
 
55
                        static_cast<ThisType*>(mNative)->setItemGroup(
 
56
                                Convert<const std::string &>::From(_value) );
 
57
                }
 
58
        public:
 
59
                Convert<bool>::Type SetItemResource(
 
60
                        Convert<const std::string &>::Type _name )
 
61
                {
 
62
                        MMYGUI_CHECK_NATIVE(mNative);
 
63
                        return Convert<bool>::To(
 
64
                                static_cast<ThisType*>(mNative)->setItemResource(
 
65
                                        Convert<const std::string &>::From(_name) ) );
 
66
                }
 
67
        public:
 
68
                Convert<float>::Type GetItemFrameRate(
 
69
                        Convert<size_t>::Type _index )
 
70
                {
 
71
                        MMYGUI_CHECK_NATIVE(mNative);
 
72
                        return Convert<float>::To(
 
73
                                static_cast<ThisType*>(mNative)->getItemFrameRate(
 
74
                                        Convert<size_t>::From(_index) ) );
 
75
                }
 
76
        public:
 
77
                void SetItemFrameRate(
 
78
                        Convert<size_t>::Type _index ,
 
79
                        Convert<float>::Type _rate )
 
80
                {
 
81
                        MMYGUI_CHECK_NATIVE(mNative);
 
82
                        static_cast<ThisType*>(mNative)->setItemFrameRate(
 
83
                                Convert<size_t>::From(_index) ,
 
84
                                Convert<float>::From(_rate) );
 
85
                }
 
86
        public:
 
87
                void DeleteAllItemFrames(
 
88
                        Convert<size_t>::Type _index )
 
89
                {
 
90
                        MMYGUI_CHECK_NATIVE(mNative);
 
91
                        static_cast<ThisType*>(mNative)->deleteAllItemFrames(
 
92
                                Convert<size_t>::From(_index) );
 
93
                }
 
94
        public:
 
95
                void DeleteItemFrame(
 
96
                        Convert<size_t>::Type _index ,
 
97
                        Convert<size_t>::Type _indexFrame )
 
98
                {
 
99
                        MMYGUI_CHECK_NATIVE(mNative);
 
100
                        static_cast<ThisType*>(mNative)->deleteItemFrame(
 
101
                                Convert<size_t>::From(_index) ,
 
102
                                Convert<size_t>::From(_indexFrame) );
 
103
                }
 
104
        public:
 
105
                void SetItemFrame(
 
106
                        Convert<size_t>::Type _index ,
 
107
                        Convert<size_t>::Type _indexFrame ,
 
108
                        Convert<const MyGUI::types::TCoord < int > &>::Type _item )
 
109
                {
 
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) );
 
115
                }
 
116
        public:
 
117
                void InsertItemFrameDublicate(
 
118
                        Convert<size_t>::Type _index ,
 
119
                        Convert<size_t>::Type _indexFrame ,
 
120
                        Convert<size_t>::Type _indexSourceFrame )
 
121
                {
 
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) );
 
127
                }
 
128
        public:
 
129
                void AddItemFrameDublicate(
 
130
                        Convert<size_t>::Type _index ,
 
131
                        Convert<size_t>::Type _indexSourceFrame )
 
132
                {
 
133
                        MMYGUI_CHECK_NATIVE(mNative);
 
134
                        static_cast<ThisType*>(mNative)->addItemFrameDublicate(
 
135
                                Convert<size_t>::From(_index) ,
 
136
                                Convert<size_t>::From(_indexSourceFrame) );
 
137
                }
 
138
        public:
 
139
                void InsertItemFrame(
 
140
                        Convert<size_t>::Type _index ,
 
141
                        Convert<size_t>::Type _indexFrame ,
 
142
                        Convert<const MyGUI::types::TCoord < int > &>::Type _item )
 
143
                {
 
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) );
 
149
                }
 
150
        public:
 
151
                void AddItemFrame(
 
152
                        Convert<size_t>::Type _index ,
 
153
                        Convert<const MyGUI::types::TCoord < int > &>::Type _item )
 
154
                {
 
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) );
 
159
                }
 
160
        public:
 
161
                void DeleteAllItems( )
 
162
                {
 
163
                        MMYGUI_CHECK_NATIVE(mNative);
 
164
                        static_cast<ThisType*>(mNative)->deleteAllItems( );
 
165
                }
 
166
        public:
 
167
                void DeleteItem(
 
168
                        Convert<size_t>::Type _index )
 
169
                {
 
170
                        MMYGUI_CHECK_NATIVE(mNative);
 
171
                        static_cast<ThisType*>(mNative)->deleteItem(
 
172
                                Convert<size_t>::From(_index) );
 
173
                }
 
174
        public:
 
175
                void SetItem(
 
176
                        Convert<size_t>::Type _index ,
 
177
                        Convert<const MyGUI::types::TCoord < int > &>::Type _item )
 
178
                {
 
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) );
 
183
                }
 
184
        public:
 
185
                void AddItem(
 
186
                        Convert<const MyGUI::types::TCoord < int > &>::Type _item )
 
187
                {
 
188
                        MMYGUI_CHECK_NATIVE(mNative);
 
189
                        static_cast<ThisType*>(mNative)->addItem(
 
190
                                Convert<const MyGUI::types::TCoord < int > &>::From(_item) );
 
191
                }
 
192
        public:
 
193
                void InsertItem(
 
194
                        Convert<size_t>::Type _index ,
 
195
                        Convert<const MyGUI::types::TCoord < int > &>::Type _item )
 
196
                {
 
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) );
 
201
                }
 
202
        public:
 
203
                void ResetItemSelect( )
 
204
                {
 
205
                        MMYGUI_CHECK_NATIVE(mNative);
 
206
                        static_cast<ThisType*>(mNative)->resetItemSelect( );
 
207
                }
 
208
        public:
 
209
                void SetImageTile(
 
210
                        Convert<const MyGUI::types::TSize < int > &>::Type _value )
 
211
                {
 
212
                        MMYGUI_CHECK_NATIVE(mNative);
 
213
                        static_cast<ThisType*>(mNative)->setImageTile(
 
214
                                Convert<const MyGUI::types::TSize < int > &>::From(_value) );
 
215
                }
 
216
        public:
 
217
                void SetImageCoord(
 
218
                        Convert<const MyGUI::types::TCoord < int > &>::Type _value )
 
219
                {
 
220
                        MMYGUI_CHECK_NATIVE(mNative);
 
221
                        static_cast<ThisType*>(mNative)->setImageCoord(
 
222
                                Convert<const MyGUI::types::TCoord < int > &>::From(_value) );
 
223
                }
 
224
        public:
 
225
                void SetImageRect(
 
226
                        Convert<const MyGUI::types::TRect < int > &>::Type _value )
 
227
                {
 
228
                        MMYGUI_CHECK_NATIVE(mNative);
 
229
                        static_cast<ThisType*>(mNative)->setImageRect(
 
230
                                Convert<const MyGUI::types::TRect < int > &>::From(_value) );
 
231
                }
 
232
        public:
 
233
                void SetImageTexture(
 
234
                        Convert<const std::string &>::Type _value )
 
235
                {
 
236
                        MMYGUI_CHECK_NATIVE(mNative);
 
237
                        static_cast<ThisType*>(mNative)->setImageTexture(
 
238
                                Convert<const std::string &>::From(_value) );
 
239
                }
 
240
        public:
 
241
                void SetImageInfo(
 
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 )
 
245
                {
 
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) );
 
251
                }
 
252
        public:
 
253
                property Convert<size_t>::Type ItemSelect
 
254
                {
 
255
                        Convert<size_t>::Type get( )
 
256
                        {
 
257
                                MMYGUI_CHECK_NATIVE(mNative);
 
258
                                return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getItemSelect() );
 
259
                        }
 
260
                        void set(Convert<size_t>::Type _value)
 
261
                        {
 
262
                                MMYGUI_CHECK_NATIVE(mNative);
 
263
                                static_cast<ThisType*>(mNative)->setItemSelect( Convert<size_t>::From(_value) );
 
264
                        }
 
265
                }
 
266
        
 
267
        public:
 
268
                property Convert<size_t>::Type ItemCount
 
269
                {
 
270
                        Convert<size_t>::Type get( )
 
271
                        {
 
272
                                MMYGUI_CHECK_NATIVE(mNative);
 
273
                                return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getItemCount() );
 
274
                        }
 
275
                }
 
276
        
 
277
        public:
 
278
                property Convert<size_t>::Type ImageIndex
 
279
                {
 
280
                        Convert<size_t>::Type get( )
 
281
                        {
 
282
                                MMYGUI_CHECK_NATIVE(mNative);
 
283
                                return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getImageIndex() );
 
284
                        }
 
285
                        void set(Convert<size_t>::Type _value)
 
286
                        {
 
287
                                MMYGUI_CHECK_NATIVE(mNative);
 
288
                                static_cast<ThisType*>(mNative)->setImageIndex( Convert<size_t>::From(_value) );
 
289
                        }
 
290
                }
 
291
        
 
292
                };
 
293
 
 
294
        } // namespace Managed
 
295
} // namespace MyGUI