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

« back to all changes in this revision

Viewing changes to Wrappers/MyGUI.Managed/Generate/MyGUI.Managed_ScrollBar.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 ScrollBar : public Widget
17
 
                {
18
 
 
19
 
                private:
20
 
                        typedef MyGUI::ScrollBar ThisType;
21
 
 
22
 
                public:
23
 
                        ScrollBar() : Widget() { }
24
 
 
25
 
                internal:
26
 
                        ScrollBar( MyGUI::ScrollBar* _native ) : Widget(_native) { }
27
 
                        ScrollBar( 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 ScrollBar(_parent, _style, _skin, _coord, _align, _layer, _name);
37
 
                        }
38
 
 
39
 
 
40
 
                        //InsertPoint
41
 
 
42
 
        public:
43
 
                delegate void HandleScrollChangePosition(
44
 
                        Convert<MyGUI::ScrollBar *>::Type _sender ,
45
 
                        Convert<size_t>::Type _position );
46
 
                event HandleScrollChangePosition^ EventScrollChangePosition
47
 
                {
48
 
                        void add(HandleScrollChangePosition^ _value)
49
 
                        {
50
 
                                bool empty = mDelegateScrollChangePosition == nullptr;
51
 
 
52
 
                                mDelegateScrollChangePosition += _value;
53
 
                                MMYGUI_CHECK_NATIVE(mNative);
54
 
 
55
 
                                if (empty)
56
 
                                        static_cast<ThisType*>(mNative)->eventScrollChangePosition +=
57
 
                                                static_cast< MyGUI::delegates::IDelegate2<
58
 
                                                        MyGUI::ScrollBar * ,
59
 
                                                        size_t > *>(
60
 
                                                                new Delegate2< HandleScrollChangePosition^ ,
61
 
                                                                MyGUI::ScrollBar * ,
62
 
                                                                size_t >(mDelegateScrollChangePosition) );
63
 
                        }
64
 
                        void remove(HandleScrollChangePosition^ _value)
65
 
                        {
66
 
                                mDelegateScrollChangePosition -= _value;
67
 
                                MMYGUI_CHECK_NATIVE(mNative);
68
 
                                
69
 
                                bool empty = mDelegateScrollChangePosition == nullptr;
70
 
 
71
 
                                if (empty)
72
 
                                        static_cast<ThisType*>(mNative)->eventScrollChangePosition -=
73
 
                                                static_cast< MyGUI::delegates::IDelegate2<
74
 
                                                        MyGUI::ScrollBar * ,
75
 
                                                        size_t > *>(
76
 
                                                                new Delegate2< HandleScrollChangePosition^ ,
77
 
                                                                        MyGUI::ScrollBar * ,
78
 
                                                                        size_t >(mDelegateScrollChangePosition) );
79
 
                        }
80
 
                }
81
 
        private:
82
 
                HandleScrollChangePosition^ mDelegateScrollChangePosition;
83
 
 
84
 
 
85
 
 
86
 
   
87
 
 
88
 
 
89
 
   
90
 
 
91
 
 
92
 
   
93
 
 
94
 
 
95
 
   
96
 
 
97
 
 
98
 
   
99
 
 
100
 
 
101
 
   
102
 
 
103
 
 
104
 
        public:
105
 
                property Convert<bool>::Type MoveToClick
106
 
                {
107
 
                        Convert<bool>::Type get( )
108
 
                        {
109
 
                                MMYGUI_CHECK_NATIVE(mNative);
110
 
                                return Convert<bool>::To( static_cast<ThisType*>(mNative)->getMoveToClick() );
111
 
                        }
112
 
                        void set(Convert<bool>::Type _value)
113
 
                        {
114
 
                                MMYGUI_CHECK_NATIVE(mNative);
115
 
                                static_cast<ThisType*>(mNative)->setMoveToClick( Convert<bool>::From(_value) );
116
 
                        }
117
 
                }
118
 
        
119
 
 
120
 
 
121
 
        public:
122
 
                property Convert<int>::Type MinTrackSize
123
 
                {
124
 
                        Convert<int>::Type get( )
125
 
                        {
126
 
                                MMYGUI_CHECK_NATIVE(mNative);
127
 
                                return Convert<int>::To( static_cast<ThisType*>(mNative)->getMinTrackSize() );
128
 
                        }
129
 
                        void set(Convert<int>::Type _value)
130
 
                        {
131
 
                                MMYGUI_CHECK_NATIVE(mNative);
132
 
                                static_cast<ThisType*>(mNative)->setMinTrackSize( Convert<int>::From(_value) );
133
 
                        }
134
 
                }
135
 
        
136
 
 
137
 
 
138
 
        public:
139
 
                property Convert<int>::Type TrackSize
140
 
                {
141
 
                        Convert<int>::Type get( )
142
 
                        {
143
 
                                MMYGUI_CHECK_NATIVE(mNative);
144
 
                                return Convert<int>::To( static_cast<ThisType*>(mNative)->getTrackSize() );
145
 
                        }
146
 
                        void set(Convert<int>::Type _value)
147
 
                        {
148
 
                                MMYGUI_CHECK_NATIVE(mNative);
149
 
                                static_cast<ThisType*>(mNative)->setTrackSize( Convert<int>::From(_value) );
150
 
                        }
151
 
                }
152
 
        
153
 
 
154
 
 
155
 
        public:
156
 
                Convert<int>::Type GetLineSize( )
157
 
                {
158
 
                        MMYGUI_CHECK_NATIVE(mNative);
159
 
                        return Convert<int>::To(
160
 
                                static_cast<ThisType*>(mNative)->getLineSize( ) );
161
 
                }
162
 
 
163
 
 
164
 
 
165
 
        public:
166
 
                property Convert<size_t>::Type ScrollViewPage
167
 
                {
168
 
                        Convert<size_t>::Type get( )
169
 
                        {
170
 
                                MMYGUI_CHECK_NATIVE(mNative);
171
 
                                return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getScrollViewPage() );
172
 
                        }
173
 
                        void set(Convert<size_t>::Type _value)
174
 
                        {
175
 
                                MMYGUI_CHECK_NATIVE(mNative);
176
 
                                static_cast<ThisType*>(mNative)->setScrollViewPage( Convert<size_t>::From(_value) );
177
 
                        }
178
 
                }
179
 
        
180
 
 
181
 
 
182
 
        public:
183
 
                property Convert<size_t>::Type ScrollPage
184
 
                {
185
 
                        Convert<size_t>::Type get( )
186
 
                        {
187
 
                                MMYGUI_CHECK_NATIVE(mNative);
188
 
                                return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getScrollPage() );
189
 
                        }
190
 
                        void set(Convert<size_t>::Type _value)
191
 
                        {
192
 
                                MMYGUI_CHECK_NATIVE(mNative);
193
 
                                static_cast<ThisType*>(mNative)->setScrollPage( Convert<size_t>::From(_value) );
194
 
                        }
195
 
                }
196
 
        
197
 
 
198
 
 
199
 
        public:
200
 
                property Convert<size_t>::Type ScrollPosition
201
 
                {
202
 
                        Convert<size_t>::Type get( )
203
 
                        {
204
 
                                MMYGUI_CHECK_NATIVE(mNative);
205
 
                                return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getScrollPosition() );
206
 
                        }
207
 
                        void set(Convert<size_t>::Type _value)
208
 
                        {
209
 
                                MMYGUI_CHECK_NATIVE(mNative);
210
 
                                static_cast<ThisType*>(mNative)->setScrollPosition( Convert<size_t>::From(_value) );
211
 
                        }
212
 
                }
213
 
        
214
 
 
215
 
 
216
 
        public:
217
 
                property Convert<size_t>::Type ScrollRange
218
 
                {
219
 
                        Convert<size_t>::Type get( )
220
 
                        {
221
 
                                MMYGUI_CHECK_NATIVE(mNative);
222
 
                                return Convert<size_t>::To( static_cast<ThisType*>(mNative)->getScrollRange() );
223
 
                        }
224
 
                        void set(Convert<size_t>::Type _value)
225
 
                        {
226
 
                                MMYGUI_CHECK_NATIVE(mNative);
227
 
                                static_cast<ThisType*>(mNative)->setScrollRange( Convert<size_t>::From(_value) );
228
 
                        }
229
 
                }
230
 
        
231
 
 
232
 
 
233
 
        public:
234
 
                property Convert<bool>::Type VerticalAlignment
235
 
                {
236
 
                        Convert<bool>::Type get( )
237
 
                        {
238
 
                                MMYGUI_CHECK_NATIVE(mNative);
239
 
                                return Convert<bool>::To( static_cast<ThisType*>(mNative)->getVerticalAlignment() );
240
 
                        }
241
 
                        void set(Convert<bool>::Type _value)
242
 
                        {
243
 
                                MMYGUI_CHECK_NATIVE(mNative);
244
 
                                static_cast<ThisType*>(mNative)->setVerticalAlignment( Convert<bool>::From(_value) );
245
 
                        }
246
 
                }
247
 
        
248
 
 
249
 
 
250
 
   
251
 
 
252
 
 
253
 
   
254
 
 
255
 
 
256
 
   
257
 
 
258
 
 
259
 
                };
260
 
 
261
 
        } // namespace Managed
262
 
} // namespace MyGUI