1 /*!
2 	@file
3 	@author		Generate utility by Albert Semenov
4 	@date		01/2009
5 	@module
6 */
7 #pragma once
8 
9 #include "../BaseWidget.h"
10 
11 namespace MyGUI
12 {
13 	namespace Managed
14 	{
15 
16 		public ref class WidgetCropped abstract : public BaseWidget
17 		{
18 
19 		private:
20 			typedef MyGUI::Widget ThisType;
21 
22 		public:
WidgetCropped()23 			WidgetCropped() : BaseWidget() { }
24 
25 		internal:
WidgetCropped(MyGUI::Widget * _native)26 			WidgetCropped( MyGUI::Widget* _native ) : BaseWidget(_native) { }
27 
28 			//InsertPoint
29 
30 	public:
31 		property Convert<int>::Type Height
32 		{
get()33 			Convert<int>::Type get( )
34 			{
35 				MMYGUI_CHECK_NATIVE(mNative);
36 				return Convert<int>::To( static_cast<ThisType*>(mNative)->getHeight() );
37 			}
38 		}
39 
40 	public:
41 		property Convert<int>::Type Width
42 		{
get()43 			Convert<int>::Type get( )
44 			{
45 				MMYGUI_CHECK_NATIVE(mNative);
46 				return Convert<int>::To( static_cast<ThisType*>(mNative)->getWidth() );
47 			}
48 		}
49 
50 	public:
51 		property Convert<int>::Type Bottom
52 		{
get()53 			Convert<int>::Type get( )
54 			{
55 				MMYGUI_CHECK_NATIVE(mNative);
56 				return Convert<int>::To( static_cast<ThisType*>(mNative)->getBottom() );
57 			}
58 		}
59 
60 	public:
61 		property Convert<int>::Type Top
62 		{
get()63 			Convert<int>::Type get( )
64 			{
65 				MMYGUI_CHECK_NATIVE(mNative);
66 				return Convert<int>::To( static_cast<ThisType*>(mNative)->getTop() );
67 			}
68 		}
69 
70 	public:
71 		property Convert<int>::Type Right
72 		{
get()73 			Convert<int>::Type get( )
74 			{
75 				MMYGUI_CHECK_NATIVE(mNative);
76 				return Convert<int>::To( static_cast<ThisType*>(mNative)->getRight() );
77 			}
78 		}
79 
80 	public:
81 		property Convert<int>::Type Left
82 		{
get()83 			Convert<int>::Type get( )
84 			{
85 				MMYGUI_CHECK_NATIVE(mNative);
86 				return Convert<int>::To( static_cast<ThisType*>(mNative)->getLeft() );
87 			}
88 		}
89 
90 	public:
91 		property Convert<int>::Type AbsoluteTop
92 		{
get()93 			Convert<int>::Type get( )
94 			{
95 				MMYGUI_CHECK_NATIVE(mNative);
96 				return Convert<int>::To( static_cast<ThisType*>(mNative)->getAbsoluteTop() );
97 			}
98 		}
99 
100 	public:
101 		property Convert<int>::Type AbsoluteLeft
102 		{
get()103 			Convert<int>::Type get( )
104 			{
105 				MMYGUI_CHECK_NATIVE(mNative);
106 				return Convert<int>::To( static_cast<ThisType*>(mNative)->getAbsoluteLeft() );
107 			}
108 		}
109 
110 	public:
111 		property Convert<MyGUI::types::TCoord < int >>::Type AbsoluteCoord
112 		{
get()113 			Convert<MyGUI::types::TCoord < int >>::Type get( )
114 			{
115 				MMYGUI_CHECK_NATIVE(mNative);
116 				return Convert<MyGUI::types::TCoord < int >>::To( static_cast<ThisType*>(mNative)->getAbsoluteCoord() );
117 			}
118 		}
119 
120 	public:
121 		property Convert<MyGUI::types::TRect < int >>::Type AbsoluteRect
122 		{
get()123 			Convert<MyGUI::types::TRect < int >>::Type get( )
124 			{
125 				MMYGUI_CHECK_NATIVE(mNative);
126 				return Convert<MyGUI::types::TRect < int >>::To( static_cast<ThisType*>(mNative)->getAbsoluteRect() );
127 			}
128 		}
129 
130 	public:
131 		property Convert<const MyGUI::types::TPoint < int > &>::Type AbsolutePosition
132 		{
get()133 			Convert<const MyGUI::types::TPoint < int > &>::Type get( )
134 			{
135 				MMYGUI_CHECK_NATIVE(mNative);
136 				return Convert<const MyGUI::types::TPoint < int > &>::To( static_cast<ThisType*>(mNative)->getAbsolutePosition() );
137 			}
138 		}
139 
140 	public:
141 		property Convert<const MyGUI::types::TCoord < int > &>::Type Coord
142 		{
get()143 			Convert<const MyGUI::types::TCoord < int > &>::Type get( )
144 			{
145 				MMYGUI_CHECK_NATIVE(mNative);
146 				return Convert<const MyGUI::types::TCoord < int > &>::To( static_cast<ThisType*>(mNative)->getCoord() );
147 			}
set(Convert<const MyGUI::types::TCoord<int> &>::Type _value)148 			void set(Convert<const MyGUI::types::TCoord < int > &>::Type _value)
149 			{
150 				MMYGUI_CHECK_NATIVE(mNative);
151 				static_cast<ThisType*>(mNative)->setCoord( Convert<const MyGUI::types::TCoord < int > &>::From(_value) );
152 			}
153 		}
154 
155 	public:
156 		property Convert<MyGUI::types::TSize < int >>::Type Size
157 		{
get()158 			Convert<MyGUI::types::TSize < int >>::Type get( )
159 			{
160 				MMYGUI_CHECK_NATIVE(mNative);
161 				return Convert<MyGUI::types::TSize < int >>::To( static_cast<ThisType*>(mNative)->getSize() );
162 			}
set(Convert<const MyGUI::types::TSize<int> &>::Type _value)163 			void set(Convert<const MyGUI::types::TSize < int > &>::Type _value)
164 			{
165 				MMYGUI_CHECK_NATIVE(mNative);
166 				static_cast<ThisType*>(mNative)->setSize( Convert<const MyGUI::types::TSize < int > &>::From(_value) );
167 			}
168 		}
169 
170 	public:
171 		property Convert<MyGUI::types::TPoint < int >>::Type Position
172 		{
get()173 			Convert<MyGUI::types::TPoint < int >>::Type get( )
174 			{
175 				MMYGUI_CHECK_NATIVE(mNative);
176 				return Convert<MyGUI::types::TPoint < int >>::To( static_cast<ThisType*>(mNative)->getPosition() );
177 			}
set(Convert<const MyGUI::types::TPoint<int> &>::Type _value)178 			void set(Convert<const MyGUI::types::TPoint < int > &>::Type _value)
179 			{
180 				MMYGUI_CHECK_NATIVE(mNative);
181 				static_cast<ThisType*>(mNative)->setPosition( Convert<const MyGUI::types::TPoint < int > &>::From(_value) );
182 			}
183 		}
184 
185 		};
186 
187 	} // namespace Managed
188 } // namespace MyGUI
189