libuid ~master (2017-09-14T07:49:13Z)
Dub
Repo
Impl.Impl
ui
Core
EventListenerMixin
Impl
Undocumented in source.
enum
Impl
;
enum
Impl
;
template
Impl
()
static if
(!(
is(TargetT == NoneTypeTag)
))
enum
Impl
=
q{
private
void
delegate
(%
2
$
s
v
)[] %
1
$
sListeners
;
private
extern
(
C
)
static
%
3
$
s
%
1
$
sCallback
(
ui
%
2
$
s
*,
void
*
data
) {
auto
v
=
cast
(%
2
$
s
)
data
;
foreach
(
dlg
;
v
.%
1
$
sListeners
) {
dlg
(
v
); } %
4
$
s
}
public
%
2
$
s
add
%
1
$
s
(
void
delegate
(%
2
$
s
v
)
f
) { %
1
$
sListeners
~=
f
;
return
this
; }
}
.
format
(
Event
,
TargetT.stringof
,
ReturnT.stringof
,
RET
)
;
Meta
Source
See Source File
ui
Core
EventListenerMixin
Impl
manifest constants
Impl
RET