License:
Author:
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | class Button { Signal!(Button) press; } void wasPressed( Button b ) { printf( "Button was pressed.\n" ); } Button b = new Button; b.press.attach( &wasPressed ); b.press( b ); |
Parameters:
args | The signal arguments. |
Parameters:
dg | The delegate to attach. |
Parameters:
fn | The function to attach. |
Parameters:
dg | The delegate to detach. |
Parameters:
fn | The function to detach. |