EventArgs
From Web Computing Documentation
(Difference between revisions)
Line 10: | Line 10: | ||
<div class="class_function_definition"> |
<div class="class_function_definition"> |
||
− | '''subscribe''' (func : T->Void) |
+ | '''new''' (?data : T, ?sender : Dynamic) |
</div> |
</div> |
||
:{| |
:{| |
||
− | |'''func''' |
+ | |'''data''' ''optional'' |
− | |Callback function. |
+ | | |
+ | |- |
||
+ | |'''sender''' ''optional'' |
||
+ | | |
||
|} |
|} |
||
− | |||
− | Subscribe the given callback function expecting the PublicEvent template object as a parameter, returning void. |
||
− | |||
− | <div class="class_function_definition"> |
||
− | '''subscribe''' (func : T->Void) |
||
− | </div> |
||
− | :{| |
||
− | |'''func''' |
||
− | |Callback function. |
||
− | |} |
||
− | |||
− | Unsubscribe the given callback function |
Latest revision as of 13:26, 16 August 2011
class EventArgs <T>
- henkolib
- henkolib.events
- henkolib.events.EventArgs
- henkolib.events
[edit] Public functions
new (?data : T, ?sender : Dynamic)
data optional sender optional