File: MyGUI_Export_WidgetCropped.cpp

package info (click to toggle)
mygui 3.2.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 36,224 kB
  • sloc: cpp: 118,031; ansic: 30,202; xml: 15,544; cs: 12,602; tcl: 776; python: 417; makefile: 34
file content (128 lines) | stat: -rw-r--r-- 4,551 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/*!
	@file
	@author		Generate utility by Albert Semenov
	@date		01/2009
	@module
*/

#include "../ExportDefine.h"
#include "../ExportMarshaling.h"
#include "MyGUI_Export_MarshalingWidget.h"
#include "../ExportMarshalingType.h"
#include <MyGUI.h>

namespace Export
{
	//InsertPoint

	namespace ScopeWidgetProperty_Height
	{
		MYGUIEXPORT Convert<int>::Type MYGUICALL ExportWidget_GetHeight(MyGUI::Widget* _native)
		{
			return Convert<int>::To(static_cast<MyGUI::Widget*>(_native)->getHeight());
		}
	}
	namespace ScopeWidgetProperty_Width
	{
		MYGUIEXPORT Convert<int>::Type MYGUICALL ExportWidget_GetWidth(MyGUI::Widget* _native)
		{
			return Convert<int>::To(static_cast<MyGUI::Widget*>(_native)->getWidth());
		}
	}
	namespace ScopeWidgetProperty_Bottom
	{
		MYGUIEXPORT Convert<int>::Type MYGUICALL ExportWidget_GetBottom(MyGUI::Widget* _native)
		{
			return Convert<int>::To(static_cast<MyGUI::Widget*>(_native)->getBottom());
		}
	}
	namespace ScopeWidgetProperty_Top
	{
		MYGUIEXPORT Convert<int>::Type MYGUICALL ExportWidget_GetTop(MyGUI::Widget* _native)
		{
			return Convert<int>::To(static_cast<MyGUI::Widget*>(_native)->getTop());
		}
	}
	namespace ScopeWidgetProperty_Right
	{
		MYGUIEXPORT Convert<int>::Type MYGUICALL ExportWidget_GetRight(MyGUI::Widget* _native)
		{
			return Convert<int>::To(static_cast<MyGUI::Widget*>(_native)->getRight());
		}
	}
	namespace ScopeWidgetProperty_Left
	{
		MYGUIEXPORT Convert<int>::Type MYGUICALL ExportWidget_GetLeft(MyGUI::Widget* _native)
		{
			return Convert<int>::To(static_cast<MyGUI::Widget*>(_native)->getLeft());
		}
	}
	namespace ScopeWidgetProperty_AbsoluteTop
	{
		MYGUIEXPORT Convert<int>::Type MYGUICALL ExportWidget_GetAbsoluteTop(MyGUI::Widget* _native)
		{
			return Convert<int>::To(static_cast<MyGUI::Widget*>(_native)->getAbsoluteTop());
		}
	}
	namespace ScopeWidgetProperty_AbsoluteLeft
	{
		MYGUIEXPORT Convert<int>::Type MYGUICALL ExportWidget_GetAbsoluteLeft(MyGUI::Widget* _native)
		{
			return Convert<int>::To(static_cast<MyGUI::Widget*>(_native)->getAbsoluteLeft());
		}
	}
	namespace ScopeWidgetProperty_AbsoluteCoord
	{
		MYGUIEXPORT Convert<MyGUI::types::TCoord < int >>::Type MYGUICALL ExportWidget_GetAbsoluteCoord(MyGUI::Widget* _native)
		{
			return Convert<MyGUI::types::TCoord < int >>::To(static_cast<MyGUI::Widget*>(_native)->getAbsoluteCoord());
		}
	}
	namespace ScopeWidgetProperty_AbsoluteRect
	{
		MYGUIEXPORT Convert<MyGUI::types::TRect < int >>::Type MYGUICALL ExportWidget_GetAbsoluteRect(MyGUI::Widget* _native)
		{
			return Convert<MyGUI::types::TRect < int >>::To(static_cast<MyGUI::Widget*>(_native)->getAbsoluteRect());
		}
	}
	namespace ScopeWidgetProperty_AbsolutePosition
	{
		MYGUIEXPORT Convert<const MyGUI::types::TPoint < int > &>::Type MYGUICALL ExportWidget_GetAbsolutePosition(MyGUI::Widget* _native)
		{
			return Convert<const MyGUI::types::TPoint < int > &>::To(static_cast<MyGUI::Widget*>(_native)->getAbsolutePosition());
		}
	}
	namespace ScopeWidgetProperty_Coord
	{
		MYGUIEXPORT Convert<const MyGUI::types::TCoord < int > &>::Type MYGUICALL ExportWidget_GetCoord(MyGUI::Widget* _native)
		{
			return Convert<const MyGUI::types::TCoord < int > &>::To(static_cast<MyGUI::Widget*>(_native)->getCoord());
		}
		MYGUIEXPORT void MYGUICALL ExportWidget_SetCoord(MyGUI::Widget* _native, Convert<const MyGUI::types::TCoord < int > &>::Type _value)
		{
			static_cast<MyGUI::Widget*>(_native)->setCoord(Convert<const MyGUI::types::TCoord < int > &>::From(_value));
		}
	}
	namespace ScopeWidgetProperty_Size
	{
		MYGUIEXPORT Convert<MyGUI::types::TSize < int >>::Type MYGUICALL ExportWidget_GetSize(MyGUI::Widget* _native)
		{
			return Convert<MyGUI::types::TSize < int >>::To(static_cast<MyGUI::Widget*>(_native)->getSize());
		}
		MYGUIEXPORT void MYGUICALL ExportWidget_SetSize(MyGUI::Widget* _native, Convert<const MyGUI::types::TSize < int > &>::Type _value)
		{
			static_cast<MyGUI::Widget*>(_native)->setSize(Convert<const MyGUI::types::TSize < int > &>::From(_value));
		}
	}
	namespace ScopeWidgetProperty_Position
	{
		MYGUIEXPORT Convert<MyGUI::types::TPoint < int >>::Type MYGUICALL ExportWidget_GetPosition(MyGUI::Widget* _native)
		{
			return Convert<MyGUI::types::TPoint < int >>::To(static_cast<MyGUI::Widget*>(_native)->getPosition());
		}
		MYGUIEXPORT void MYGUICALL ExportWidget_SetPosition(MyGUI::Widget* _native, Convert<const MyGUI::types::TPoint < int > &>::Type _value)
		{
			static_cast<MyGUI::Widget*>(_native)->setPosition(Convert<const MyGUI::types::TPoint < int > &>::From(_value));
		}
	}
}