Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
EnWidgets.c
Go to the documentation of this file.
1
5
8
11
13{
14 static const WidgetType TextWidgetTypeID;
15 static const WidgetType MultilineEditBoxWidgetTypeID;
16 static const WidgetType RichTextWidgetTypeID;
17 static const WidgetType RenderTargetWidgetTypeID;
18 static const WidgetType ImageWidgetTypeID;
19 static const WidgetType ConsoleWidgetTypeID;
20 static const WidgetType VideoWidgetTypeID;
21 static const WidgetType RTTextureWidgetTypeID;
22 static const WidgetType FrameWidgetTypeID;
23 static const WidgetType ButtonWidgetTypeID;
24 static const WidgetType PanelWidgetTypeID;
25 static const WidgetType CheckBoxWidgetTypeID;
26 static const WidgetType WindowWidgetTypeID;
27 static const WidgetType ComboBoxWidgetTypeID;
28 static const WidgetType ProgressBarWidgetTypeID;
29 static const WidgetType SliderWidgetTypeID;
30 static const WidgetType BaseListboxWidgetTypeID;
31 static const WidgetType TextListboxWidgetTypeID;
32 static const WidgetType GenericListboxWidgetTypeID;
33 static const WidgetType EditBoxWidgetTypeID;
34 static const WidgetType WorkspaceWidgetTypeID;
35 static const WidgetType CanvasWidgetOldTypeID;
36 static const WidgetType CanvasWidgetTypeID;
37 static const WidgetType GridLayoutWidgetTypeID;
38 static const WidgetType HorizontalLayoutWidgetTypeID;
39 static const WidgetType VerticalLayoutWidgetTypeID;
40 static const WidgetType OverlayWidgetTypeID;
41 static const WidgetType ScrollLayoutWidgetTypeID;
42 static const WidgetType SizeLayoutWidgetTypeID;
43 static const WidgetType UniformGridLayoutWidgetTypeID;
44 static const WidgetType BlurWidgetTypeID;
45 static const WidgetType ScaleWidgetTypeID;
46}
47
48//-----------------------------------------------------------------------
49enum WidgetNavigationDirection
50{
54 DOWN
55}
56
57enum HorizontalFillOrigin
58{
59 LEFT,
61 RIGHT,
62}
63
64enum VerticalFillOrigin
65{
66 TOP,
67 CENTER,
68 BOTTOM,
69}
70
71//-----------------------------------------------------------------------
72// Canvas widget commands
73//-----------------------------------------------------------------------
74class CanvasWidgetCommand : Managed
75{
76}
77
78class TextDrawCommand : CanvasWidgetCommand
79{
80 int m_iColor = 0xff000000;
82 string m_sText;
84 float m_fSize = 24;
87}
88
89class LineDrawCommand : CanvasWidgetCommand
90{
91 int m_iColor = 0xff000000;
92 ref array<float> m_Vertices;
93 float m_fWidth;
94 float m_fOutlineWidth;
95 int m_iOutlineColor;
96 ref SharedItemRef m_pTexture;
97 vector m_UVScale;
98 bool m_bShouldEnclose;
99}
100
101class PolygonDrawCommand : CanvasWidgetCommand
102{
103 int m_iColor = 0xff000000;
104 ref array<float> m_Vertices;
107}
108
109class TriMeshDrawCommand : CanvasWidgetCommand
110{
111 int m_iColor = 0xff000000;
112 ref array<float> m_Vertices;
113 ref array<int> m_Indices;
114 float m_fUVScale;
115 ref SharedItemRef m_pTexture;
116}
117
118class ImageDrawCommand : CanvasWidgetCommand
119{
120 int m_iColor = 0xffffffff;
121 float m_fRotation;
122 float m_fUV[4] = {0, 0, 1, 1};
123 vector m_Pivot;
124 ref SharedItemRef m_pTexture;
125 vector m_Position;
128}
129
131class CompositeDrawCommand : CanvasWidgetCommand
132{
133 ref array<ref CanvasWidgetCommand> m_Commands;
134}
135
Draws all commands from internal array in order.
Definition EnWidgets.c:132
Script representation for C++ RTTI types.
Definition Types.c:151
@ CENTER
Text will be centered.
@ LEFT
navigation
@ RIGHT
WidgetFlags
Widget flags. See enf::Widget::SetFlags().
Definition WidgetFlags.c:14
@ DOWN
call listener when button/key is pressed
Definition ControlID.c:22
@ UP
call listener when button/key is released
Definition ControlID.c:21
float m_fRotation
Definition EnWidgets.c:86
int m_iFontPropertiesId
Definition EnWidgets.c:83
float m_fUV[4]
TopLeft.U, TopLeft.V, BottomRight.U, BottomRight.V.
Definition EnWidgets.c:122
vector m_Size
Only in XY, Z is ignored.
Definition EnWidgets.c:126
class WidgetType BOTTOM
float m_fUVScale
Definition EnWidgets.c:105
TypeID EventType
Definition EnWidgets.c:7
vector m_Position
Only in XY, Z is ignored.
Definition EnWidgets.c:81
ref SharedItemRef m_pTexture
If null, only filled polygon is drawn.
Definition EnWidgets.c:106
vector m_Pivot
Only in XY, Z is ignored.
Definition EnWidgets.c:85
ref array< float > m_Vertices
2D vertices such as [x0, y0, x1, y1, ... xn, yn]
Definition EnWidgets.c:104
class WidgetType TOP
class WidgetType m_iColor
WidgetFlags m_iFlags
0, STRETCH, NOWRAP
Definition EnWidgets.c:127
string m_sText
Definition EnWidgets.c:82
func WidgetEventCallback
Definition EnWidgets.c:9
float m_fSize
Definition EnWidgets.c:84