1 /*!
2 	@file
3 	@author		Albert Semenov
4 	@date		01/2009
5 	@module
6 */
7 #pragma once
8 
9 #include <MyGUI.h>
10 #include "Config.h"
11 #include "Marshaling.h"
12 
13 namespace MyGUI
14 {
15 	namespace Managed
16 	{
17 
18 		//#ifndef MMYGUI_USING_EXTERNAL_TYPE
19 
20 		public value struct DDWidgetState
21 		{
22 			System::UInt32 index;
23 			bool update;
24 			bool accept;
25 			bool refuse;
26 		};
27 
28 		//#endif // MMYGUI_USING_EXTERNAL_TYPE
29 
30 		template <> struct Convert<const MyGUI::DDWidgetState&>
31 		{
32 			typedef DDWidgetState Type;
33 			inline static const DDWidgetState& To(const MyGUI::DDWidgetState& _value)
34 			{
35 				return reinterpret_cast<const DDWidgetState&>(_value);
36 			}
37 			inline static MyGUI::DDWidgetState& From(DDWidgetState& _value)
38 			{
39 				return reinterpret_cast<MyGUI::DDWidgetState&>(_value);
40 			}
41 		};
42 
43 	} // namespace Managed
44 } // namespace MyGUI
45