DayZ
1.24
Loading...
Searching...
No Matches
WidgetEventHandler.c
Go to the documentation of this file.
1
class
WidgetEventHandler
:
ScriptedWidgetEventHandler
2
{
3
private
ref
static
WidgetEventHandler
s_instance
;
4
5
protected
ref
map<Widget, ref Param>
m_OnMouseButtonDownRegister
;
6
protected
ref
map<Widget, ref Param>
m_OnMouseButtonUpRegister
;
7
protected
ref
map<Widget, ref Param>
m_OnMouseWheel
;
8
protected
ref
map<Widget, ref Param>
m_OnDropReceived
;
9
protected
ref
map<Widget, ref Param>
m_OnDrag
;
10
protected
ref
map<Widget, ref Param>
m_OnDrop
;
11
protected
ref
map<Widget, ref Param>
m_OnDraggingOver
;
12
protected
ref
map<Widget, ref Param>
m_OnMouseEnter
;
13
protected
ref
map<Widget, ref Param>
m_OnMouseButtonLeave
;
14
protected
ref
map<Widget, ref Param>
m_OnClick
;
15
protected
ref
map<Widget, ref Param>
m_OnDoubleClick
;
16
protected
ref
map<Widget, ref Param>
m_OnFocus
;
17
protected
ref
map<Widget, ref Param>
m_OnFocusLost
;
18
protected
ref
map<Widget, ref Param>
m_OnController
;
19
protected
ref
map<Widget, ref Param>
m_OnChildAdd
;
20
protected
ref
map<Widget, ref Param>
m_OnChildRemove
;
21
22
static
WidgetEventHandler
GetInstance
()
23
{
24
return
s_instance
;
25
}
26
27
void
WidgetEventHandler
()
28
{
29
s_instance
=
this
;
30
m_OnMouseButtonDownRegister
=
new
map<Widget, ref Param>
;
31
m_OnMouseButtonUpRegister
=
new
map<Widget, ref Param>
;
32
m_OnMouseWheel
=
new
map<Widget, ref Param>
;
33
m_OnDropReceived
=
new
map<Widget, ref Param>
;
34
m_OnDrag
=
new
map<Widget, ref Param>
;
35
m_OnDrop
=
new
map<Widget, ref Param>
;
36
m_OnDraggingOver
=
new
map<Widget, ref Param>
;
37
m_OnMouseEnter
=
new
map<Widget, ref Param>
;
38
m_OnMouseButtonLeave
=
new
map<Widget, ref Param>
;
39
m_OnClick
=
new
map<Widget, ref Param>
;
40
m_OnDoubleClick
=
new
map<Widget, ref Param>
;
41
m_OnFocus
=
new
map<Widget, ref Param>
;
42
m_OnFocusLost
=
new
map<Widget, ref Param>
;
43
m_OnController
=
new
map<Widget, ref Param>
;
44
m_OnChildAdd
=
new
map<Widget, ref Param>
;
45
m_OnChildRemove
=
new
map<Widget, ref Param>
;
46
}
47
48
void
UnregisterWidget
(
Widget
w
)
49
{
50
m_OnMouseButtonDownRegister
.Remove(
w
);
51
m_OnMouseButtonUpRegister
.Remove(
w
);
52
m_OnMouseWheel
.Remove(
w
);
53
m_OnDropReceived
.Remove(
w
);
54
m_OnDrag
.Remove(
w
);
55
m_OnDrop
.Remove(
w
);
56
m_OnDraggingOver
.Remove(
w
);
57
m_OnMouseEnter
.Remove(
w
);
58
m_OnMouseButtonLeave
.Remove(
w
);
59
m_OnClick
.Remove(
w
);
60
m_OnDoubleClick
.Remove(
w
);
61
m_OnDoubleClick
.Remove(
w
);
62
m_OnFocus
.Remove(
w
);
63
m_OnFocusLost
.Remove(
w
);
64
m_OnController
.Remove(
w
);
65
m_OnChildAdd
.Remove(
w
);
66
m_OnChildRemove
.Remove(
w
);
67
w
.SetHandler(
NULL
);
68
}
69
70
void
RegisterOnMouseButtonDown
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
71
{
72
w
.SetHandler(
this
);
73
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
74
m_OnMouseButtonDownRegister
.Insert(
w
,
param
);
75
}
76
77
void
RegisterOnMouseButtonUp
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
78
{
79
w
.SetHandler(
this
);
80
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
81
m_OnMouseButtonUpRegister
.Insert(
w
,
param
);
82
}
83
84
void
RegisterOnMouseWheel
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
85
{
86
w
.SetHandler(
this
);
87
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
88
m_OnMouseWheel
.Insert(
w
,
param
);
89
}
90
91
void
RegisterOnDropReceived
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
92
{
93
w
.SetHandler(
this
);
94
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
95
m_OnDropReceived
.Insert(
w
,
param
);
96
}
97
98
void
RegisterOnDrag
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
99
{
100
w
.SetHandler(
this
);
101
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
102
m_OnDrag
.Insert(
w
,
param
);
103
}
104
105
void
RegisterOnDrop
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
106
{
107
w
.SetHandler(
this
);
108
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
109
m_OnDrop
.Insert(
w
,
param
);
110
}
111
112
void
RegisterOnDraggingOver
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
113
{
114
w
.SetHandler(
this
);
115
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
116
m_OnDraggingOver
.Insert(
w
,
param
);
117
}
118
119
void
RegisterOnMouseEnter
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
120
{
121
w
.SetHandler(
this
);
122
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
123
m_OnMouseEnter
.Insert(
w
,
param
);
124
}
125
126
void
RegisterOnMouseLeave
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
127
{
128
w
.SetHandler(
this
);
129
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
130
m_OnMouseButtonLeave
.Insert(
w
,
param
);
131
}
132
133
void
RegisterOnClick
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
134
{
135
w
.SetHandler(
this
);
136
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
137
m_OnClick
.Insert(
w
,
param
);
138
}
139
140
void
RegisterOnDoubleClick
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
141
{
142
w
.SetHandler(
this
);
143
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
144
m_OnDoubleClick
.Insert(
w
,
param
);
145
}
146
147
void
RegisterOnFocus
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
148
{
149
w
.SetHandler(
this
);
150
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
151
m_OnFocus
.Insert(
w
,
param
);
152
}
153
void
RegisterOnFocusLost
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
154
{
155
w
.SetHandler(
this
);
156
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
157
m_OnFocusLost
.Insert(
w
,
param
);
158
}
159
160
void
RegisterOnChildAdd
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
161
{
162
w
.SetHandler(
this
);
163
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
164
m_OnChildAdd
.Insert(
w
,
param
);
165
}
166
167
void
RegisterOnChildRemove
(
Widget
w
,
Managed
eventHandler
,
string
functionName
)
168
{
169
w
.SetHandler(
this
);
170
Param
param
=
new
Param2<Managed, string>
(
eventHandler
,
functionName
);
171
m_OnChildRemove
.Insert(
w
,
param
);
172
}
173
174
override
bool
OnClick
(
Widget
w
,
int
x
,
int
y
,
int
button
)
175
{
176
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
m_OnClick
.Get(
w
));
177
if
(
param
==
NULL
)
178
return
false
;
179
180
if
(!
param
.param1)
181
m_OnClick
.Remove(
w
);
182
183
Param
param2 =
new
Param4<Widget, int, int, int>
(
w
,
x
,
y
,
button
);
184
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
185
186
return
true
;
187
}
188
189
override
bool
OnDoubleClick
(
Widget
w
,
int
x
,
int
y
,
int
button
)
190
{
191
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
m_OnDoubleClick
.Get(
w
));
192
if
(
param
==
NULL
)
193
return
false
;
194
195
if
(!
param
.param1)
196
m_OnDoubleClick
.Remove(
w
);
197
198
Param
param2 =
new
Param4<Widget, int, int, int>
(
w
,
x
,
y
,
button
);
199
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
200
201
return
true
;
202
}
203
204
override
bool
OnMouseLeave
(
Widget
w
,
Widget
enterW
,
int
x
,
int
y
)
205
{
206
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
m_OnMouseButtonLeave
.Get(
w
));
207
if
(
param
==
NULL
)
208
return
false
;
209
210
if
(!
param
.param1)
211
m_OnMouseButtonLeave
.Remove(
w
);
212
213
Param
param2 =
new
Param4<Widget, Widget, int, int>
(
w
,
enterW
,
x
,
y
);
214
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
215
216
return
true
;
217
}
218
219
override
bool
OnMouseEnter
(
Widget
w
,
int
x
,
int
y
)
220
{
221
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
m_OnMouseEnter
.Get(
w
));
222
if
(
param
==
NULL
)
223
return
false
;
224
225
if
(!
param
.param1)
226
m_OnMouseEnter
.Remove(
w
);
227
228
Param
param2 =
new
Param3<Widget, int, int>
(
w
,
x
,
y
);
229
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
230
231
return
true
;
232
}
233
234
override
bool
OnMouseButtonDown
(
Widget
w
,
int
x
,
int
y
,
int
button
)
235
{
236
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
m_OnMouseButtonDownRegister
.Get(
w
));
237
if
(
param
==
NULL
)
238
return
false
;
239
240
if
(!
param
.param1)
241
m_OnMouseButtonDownRegister
.Remove(
w
);
242
243
Param
param2 =
new
Param4<Widget, int, int, int>
(
w
,
x
,
y
,
button
);
244
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
245
246
return
true
;
247
}
248
249
override
bool
OnMouseButtonUp
(
Widget
w
,
int
x
,
int
y
,
int
button
)
250
{
251
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
m_OnMouseButtonUpRegister
.Get(
w
));
252
if
(
param
==
NULL
)
253
return
false
;
254
255
if
(!
param
.param1)
256
m_OnMouseButtonUpRegister
.Remove(
w
);
257
258
Param
param2 =
new
Param4<Widget, int, int, int>
(
w
,
x
,
y
,
button
);
259
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
260
261
return
true
;
262
}
263
264
override
bool
OnDrag
(
Widget
w
,
int
x
,
int
y
)
265
{
266
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
m_OnDrag
.Get(
w
));
267
if
(
param
==
NULL
)
268
return
false
;
269
270
if
(!
param
.param1)
271
m_OnDrag
.Remove(
w
);
272
273
Param
param2 =
new
Param3<Widget, int, int>
(
w
,
x
,
y
);
274
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
275
276
return
true
;
277
}
278
279
override
bool
OnDrop
(
Widget
w
,
int
x
,
int
y
,
Widget
reciever
)
280
{
281
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
m_OnDrop
.Get(
w
));
282
if
(
param
==
NULL
)
283
return
false
;
284
285
if
(!
param
.param1)
286
m_OnDrop
.Remove(
w
);
287
288
Param
param2 =
new
Param3<Widget, int, int>
(
w
,
x
,
y
);
289
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
290
291
return
true
;
292
}
293
294
override
bool
OnDraggingOver
(
Widget
w
,
int
x
,
int
y
,
Widget
reciever
)
295
{
296
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
m_OnDraggingOver
.Get(
reciever
));
297
if
(
param
==
NULL
)
298
return
false
;
299
300
if
(!
param
.param1)
301
m_OnDraggingOver
.Remove(
w
);
302
303
Param
param2 =
new
Param4<Widget, int, int, Widget>
(
w
,
x
,
y
,
reciever
);
304
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
305
306
return
true
;
307
}
308
309
override
bool
OnDropReceived
(
Widget
w
,
int
x
,
int
y
,
Widget
reciever
)
310
{
311
if
(
w
.GetName() ==
"GridItem"
)
312
return
false
;
313
Param
p
=
m_OnDropReceived
.Get(
reciever
);
314
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
p
);
315
if
(
param
==
NULL
)
316
return
false
;
317
318
if
(!
param
.param1)
319
m_OnDropReceived
.Remove(
w
);
320
321
Param
param2 =
new
Param4<Widget, int, int, Widget>
(
w
,
x
,
y
,
reciever
);
322
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
323
324
return
true
;
325
}
326
327
override
bool
OnFocus
(
Widget
w
,
int
x
,
int
y
)
328
{
329
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
m_OnFocus
.Get(
w
));
330
if
(
param
==
NULL
)
331
return
false
;
332
333
if
(!
param
.param1)
334
m_OnFocus
.Remove(
w
);
335
336
Param
param2 =
new
Param3<Widget, int, int>
(
w
,
x
,
y
);
337
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
338
339
return
true
;
340
}
341
342
override
bool
OnFocusLost
(
Widget
w
,
int
x
,
int
y
)
343
{
344
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
m_OnFocusLost
.Get(
w
));
345
if
(
param
==
NULL
)
346
return
false
;
347
348
if
(!
param
.param1)
349
m_OnFocusLost
.Remove(
w
);
350
351
Param
param2 =
new
Param3<Widget, int, int>
(
w
,
x
,
y
);
352
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
353
354
return
true
;
355
}
356
357
override
bool
OnMouseWheel
(
Widget
w
,
int
x
,
int
y
,
int
wheel
)
358
{
359
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
m_OnMouseWheel
.Get(
w
));
360
if
(
param
==
NULL
)
361
return
false
;
362
363
if
(!
param
.param1)
364
m_OnMouseWheel
.Remove(
w
);
365
366
Param
param2 =
new
Param4<Widget, int, int, int>
(
w
,
x
,
y
,
wheel
);
367
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
368
369
return
true
;
370
}
371
372
override
bool
OnChildAdd
(
Widget
w
,
Widget
child
)
373
{
374
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
m_OnChildAdd
.Get(
w
));
375
if
(
param
==
NULL
)
376
return
false
;
377
378
if
(!
param
.param1)
379
m_OnChildAdd
.Remove(
w
);
380
381
Param
param2 =
new
Param2<Widget, Widget>
(
w
,
child
);
382
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
383
384
return
true
;
385
}
386
387
override
bool
OnChildRemove
(
Widget
w
,
Widget
child
)
388
{
389
Param2<Managed, string>
param
=
Param2<Managed, string>
.Cast(
m_OnChildRemove
.Get(
w
));
390
if
(
param
==
NULL
)
391
return
false
;
392
393
if
(!
param
.param1)
394
m_OnChildRemove
.Remove(
w
);
395
396
Param
param2 =
new
Param2<Widget, Widget>
(
w
,
child
);
397
GetGame
().GameScript.CallFunctionParams(
param
.param1,
param
.param2,
NULL
, param2);
398
399
return
true
;
400
}
401
}
x
Icon x
y
Icon y
Managed
TODO doc.
Definition
EnScript.c:118
Param3
Definition
EntityAI.c:95
Param
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition
param.c:12
ScriptedWidgetEventHandler
map: item x vector(index, width, height)
Definition
EnWidgets.c:651
WidgetEventHandler
Definition
WidgetEventHandler.c:2
WidgetEventHandler::m_OnFocusLost
ref map< Widget, ref Param > m_OnFocusLost
Definition
WidgetEventHandler.c:17
WidgetEventHandler::WidgetEventHandler
void WidgetEventHandler()
Definition
WidgetEventHandler.c:27
WidgetEventHandler::s_instance
static ref WidgetEventHandler s_instance
Definition
WidgetEventHandler.c:3
WidgetEventHandler::OnMouseEnter
override bool OnMouseEnter(Widget w, int x, int y)
Definition
WidgetEventHandler.c:219
WidgetEventHandler::OnDrop
override bool OnDrop(Widget w, int x, int y, Widget reciever)
Definition
WidgetEventHandler.c:279
WidgetEventHandler::OnFocus
override bool OnFocus(Widget w, int x, int y)
Definition
WidgetEventHandler.c:327
WidgetEventHandler::OnDropReceived
override bool OnDropReceived(Widget w, int x, int y, Widget reciever)
Definition
WidgetEventHandler.c:309
WidgetEventHandler::RegisterOnDropReceived
void RegisterOnDropReceived(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:91
WidgetEventHandler::RegisterOnClick
void RegisterOnClick(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:133
WidgetEventHandler::RegisterOnMouseLeave
void RegisterOnMouseLeave(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:126
WidgetEventHandler::RegisterOnMouseWheel
void RegisterOnMouseWheel(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:84
WidgetEventHandler::m_OnDoubleClick
ref map< Widget, ref Param > m_OnDoubleClick
Definition
WidgetEventHandler.c:15
WidgetEventHandler::RegisterOnDraggingOver
void RegisterOnDraggingOver(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:112
WidgetEventHandler::m_OnClick
ref map< Widget, ref Param > m_OnClick
Definition
WidgetEventHandler.c:14
WidgetEventHandler::m_OnDraggingOver
ref map< Widget, ref Param > m_OnDraggingOver
Definition
WidgetEventHandler.c:11
WidgetEventHandler::OnMouseButtonDown
override bool OnMouseButtonDown(Widget w, int x, int y, int button)
Definition
WidgetEventHandler.c:234
WidgetEventHandler::OnDraggingOver
override bool OnDraggingOver(Widget w, int x, int y, Widget reciever)
Definition
WidgetEventHandler.c:294
WidgetEventHandler::RegisterOnFocus
void RegisterOnFocus(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:147
WidgetEventHandler::m_OnChildAdd
ref map< Widget, ref Param > m_OnChildAdd
Definition
WidgetEventHandler.c:19
WidgetEventHandler::RegisterOnDrag
void RegisterOnDrag(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:98
WidgetEventHandler::m_OnFocus
ref map< Widget, ref Param > m_OnFocus
Definition
WidgetEventHandler.c:16
WidgetEventHandler::m_OnDrag
ref map< Widget, ref Param > m_OnDrag
Definition
WidgetEventHandler.c:9
WidgetEventHandler::OnDrag
override bool OnDrag(Widget w, int x, int y)
Definition
WidgetEventHandler.c:264
WidgetEventHandler::OnChildRemove
override bool OnChildRemove(Widget w, Widget child)
Definition
WidgetEventHandler.c:387
WidgetEventHandler::OnChildAdd
override bool OnChildAdd(Widget w, Widget child)
Definition
WidgetEventHandler.c:372
WidgetEventHandler::m_OnDrop
ref map< Widget, ref Param > m_OnDrop
Definition
WidgetEventHandler.c:10
WidgetEventHandler::m_OnMouseButtonLeave
ref map< Widget, ref Param > m_OnMouseButtonLeave
Definition
WidgetEventHandler.c:13
WidgetEventHandler::m_OnMouseEnter
ref map< Widget, ref Param > m_OnMouseEnter
Definition
WidgetEventHandler.c:12
WidgetEventHandler::OnFocusLost
override bool OnFocusLost(Widget w, int x, int y)
Definition
WidgetEventHandler.c:342
WidgetEventHandler::m_OnMouseButtonUpRegister
ref map< Widget, ref Param > m_OnMouseButtonUpRegister
Definition
WidgetEventHandler.c:6
WidgetEventHandler::m_OnMouseWheel
ref map< Widget, ref Param > m_OnMouseWheel
Definition
WidgetEventHandler.c:7
WidgetEventHandler::m_OnChildRemove
ref map< Widget, ref Param > m_OnChildRemove
Definition
WidgetEventHandler.c:20
WidgetEventHandler::OnClick
override bool OnClick(Widget w, int x, int y, int button)
Definition
WidgetEventHandler.c:174
WidgetEventHandler::OnMouseLeave
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
Definition
WidgetEventHandler.c:204
WidgetEventHandler::RegisterOnDrop
void RegisterOnDrop(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:105
WidgetEventHandler::m_OnDropReceived
ref map< Widget, ref Param > m_OnDropReceived
Definition
WidgetEventHandler.c:8
WidgetEventHandler::RegisterOnFocusLost
void RegisterOnFocusLost(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:153
WidgetEventHandler::RegisterOnChildRemove
void RegisterOnChildRemove(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:167
WidgetEventHandler::UnregisterWidget
void UnregisterWidget(Widget w)
Definition
WidgetEventHandler.c:48
WidgetEventHandler::GetInstance
static WidgetEventHandler GetInstance()
Definition
WidgetEventHandler.c:22
WidgetEventHandler::OnMouseButtonUp
override bool OnMouseButtonUp(Widget w, int x, int y, int button)
Definition
WidgetEventHandler.c:249
WidgetEventHandler::RegisterOnMouseEnter
void RegisterOnMouseEnter(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:119
WidgetEventHandler::m_OnController
ref map< Widget, ref Param > m_OnController
Definition
WidgetEventHandler.c:18
WidgetEventHandler::RegisterOnMouseButtonDown
void RegisterOnMouseButtonDown(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:70
WidgetEventHandler::m_OnMouseButtonDownRegister
ref map< Widget, ref Param > m_OnMouseButtonDownRegister
Definition
WidgetEventHandler.c:5
WidgetEventHandler::RegisterOnMouseButtonUp
void RegisterOnMouseButtonUp(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:77
WidgetEventHandler::OnDoubleClick
override bool OnDoubleClick(Widget w, int x, int y, int button)
Definition
WidgetEventHandler.c:189
WidgetEventHandler::OnMouseWheel
override bool OnMouseWheel(Widget w, int x, int y, int wheel)
Definition
WidgetEventHandler.c:357
WidgetEventHandler::RegisterOnChildAdd
void RegisterOnChildAdd(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:160
WidgetEventHandler::RegisterOnDoubleClick
void RegisterOnDoubleClick(Widget w, Managed eventHandler, string functionName)
Definition
WidgetEventHandler.c:140
Widget
Definition
EnWidgets.c:190
GetGame
proto native CGame GetGame()
scripts
5_Mission
GUI
WidgetEventHandler.c
Generated by
1.10.0