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 ScrollView : public Widget
17 		{
18 
19 		private:
20 			typedef MyGUI::ScrollView ThisType;
21 
22 		public:
ScrollView()23 			ScrollView() : Widget() { }
24 
25 		internal:
ScrollView(MyGUI::ScrollView * _native)26 			ScrollView( MyGUI::ScrollView* _native ) : Widget(_native) { }
27 			ScrollView( 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 
getClassTypeName()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 ScrollView(_parent, _style, _skin, _coord, _align, _layer, _name);
37 			}
38 
39 
40 			//InsertPoint
41 
42 	public:
SetCanvasSize(Convert<int>::Type _width,Convert<int>::Type _height)43 		void SetCanvasSize(
44 			Convert<int>::Type _width ,
45 			Convert<int>::Type _height )
46 		{
47 			MMYGUI_CHECK_NATIVE(mNative);
48 			static_cast<ThisType*>(mNative)->setCanvasSize(
49 				Convert<int>::From(_width) ,
50 				Convert<int>::From(_height) );
51 		}
52 	public:
SetCoord(Convert<int>::Type _left,Convert<int>::Type _top,Convert<int>::Type _width,Convert<int>::Type _height)53 		void SetCoord(
54 			Convert<int>::Type _left ,
55 			Convert<int>::Type _top ,
56 			Convert<int>::Type _width ,
57 			Convert<int>::Type _height )
58 		{
59 			MMYGUI_CHECK_NATIVE(mNative);
60 			static_cast<ThisType*>(mNative)->setCoord(
61 				Convert<int>::From(_left) ,
62 				Convert<int>::From(_top) ,
63 				Convert<int>::From(_width) ,
64 				Convert<int>::From(_height) );
65 		}
66 	public:
SetSize(Convert<int>::Type _width,Convert<int>::Type _height)67 		void SetSize(
68 			Convert<int>::Type _width ,
69 			Convert<int>::Type _height )
70 		{
71 			MMYGUI_CHECK_NATIVE(mNative);
72 			static_cast<ThisType*>(mNative)->setSize(
73 				Convert<int>::From(_width) ,
74 				Convert<int>::From(_height) );
75 		}
76 	public:
SetPosition(Convert<int>::Type _left,Convert<int>::Type _top)77 		void SetPosition(
78 			Convert<int>::Type _left ,
79 			Convert<int>::Type _top )
80 		{
81 			MMYGUI_CHECK_NATIVE(mNative);
82 			static_cast<ThisType*>(mNative)->setPosition(
83 				Convert<int>::From(_left) ,
84 				Convert<int>::From(_top) );
85 		}
86 	public:
87 		property Convert<MyGUI::types::TPoint < int >>::Type ViewOffset
88 		{
get()89 			Convert<MyGUI::types::TPoint < int >>::Type get( )
90 			{
91 				MMYGUI_CHECK_NATIVE(mNative);
92 				return Convert<MyGUI::types::TPoint < int >>::To( static_cast<ThisType*>(mNative)->getViewOffset() );
93 			}
set(Convert<const MyGUI::types::TPoint<int> &>::Type _value)94 			void set(Convert<const MyGUI::types::TPoint < int > &>::Type _value)
95 			{
96 				MMYGUI_CHECK_NATIVE(mNative);
97 				static_cast<ThisType*>(mNative)->setViewOffset( Convert<const MyGUI::types::TPoint < int > &>::From(_value) );
98 			}
99 		}
100 
101 	public:
102 		property Convert<MyGUI::types::TCoord < int >>::Type ViewCoord
103 		{
get()104 			Convert<MyGUI::types::TCoord < int >>::Type get( )
105 			{
106 				MMYGUI_CHECK_NATIVE(mNative);
107 				return Convert<MyGUI::types::TCoord < int >>::To( static_cast<ThisType*>(mNative)->getViewCoord() );
108 			}
109 		}
110 
111 	public:
112 		property Convert<MyGUI::types::TSize < int >>::Type CanvasSize
113 		{
get()114 			Convert<MyGUI::types::TSize < int >>::Type get( )
115 			{
116 				MMYGUI_CHECK_NATIVE(mNative);
117 				return Convert<MyGUI::types::TSize < int >>::To( static_cast<ThisType*>(mNative)->getCanvasSize() );
118 			}
set(Convert<const MyGUI::types::TSize<int> &>::Type _value)119 			void set(Convert<const MyGUI::types::TSize < int > &>::Type _value)
120 			{
121 				MMYGUI_CHECK_NATIVE(mNative);
122 				static_cast<ThisType*>(mNative)->setCanvasSize( Convert<const MyGUI::types::TSize < int > &>::From(_value) );
123 			}
124 		}
125 
126 	public:
127 		property Convert<MyGUI::Align>::Type CanvasAlign
128 		{
get()129 			Convert<MyGUI::Align>::Type get( )
130 			{
131 				MMYGUI_CHECK_NATIVE(mNative);
132 				return Convert<MyGUI::Align>::To( static_cast<ThisType*>(mNative)->getCanvasAlign() );
133 			}
set(Convert<MyGUI::Align>::Type _value)134 			void set(Convert<MyGUI::Align>::Type _value)
135 			{
136 				MMYGUI_CHECK_NATIVE(mNative);
137 				static_cast<ThisType*>(mNative)->setCanvasAlign( Convert<MyGUI::Align>::From(_value) );
138 			}
139 		}
140 
141 	public:
142 		property Convert<bool>::Type IsVisibleHScroll
143 		{
get()144 			Convert<bool>::Type get( )
145 			{
146 				MMYGUI_CHECK_NATIVE(mNative);
147 				return Convert<bool>::To( static_cast<ThisType*>(mNative)->isVisibleHScroll() );
148 			}
set(Convert<bool>::Type _value)149 			void set(Convert<bool>::Type _value)
150 			{
151 				MMYGUI_CHECK_NATIVE(mNative);
152 				static_cast<ThisType*>(mNative)->setVisibleHScroll( Convert<bool>::From(_value) );
153 			}
154 		}
155 
156 	public:
157 		property Convert<bool>::Type IsVisibleVScroll
158 		{
get()159 			Convert<bool>::Type get( )
160 			{
161 				MMYGUI_CHECK_NATIVE(mNative);
162 				return Convert<bool>::To( static_cast<ThisType*>(mNative)->isVisibleVScroll() );
163 			}
set(Convert<bool>::Type _value)164 			void set(Convert<bool>::Type _value)
165 			{
166 				MMYGUI_CHECK_NATIVE(mNative);
167 				static_cast<ThisType*>(mNative)->setVisibleVScroll( Convert<bool>::From(_value) );
168 			}
169 		}
170 
171 		};
172 
173 	} // namespace Managed
174 } // namespace MyGUI
175