Callback » History » Version 2
  iri, 02/22/2011 12:58 AM 
  
| 1 | 1 | iri | h1. Callback | 
|---|---|---|---|
| 2 | |||
| 3 | * _gtkButtonCB | ||
| 4 | |||
| 5 | Define a Scol callback to any button. | ||
| 6 | |||
| 7 | h3. Prototype : | ||
| 8 | |||
| 9 | > fun [ObjGtkWidget u1 u0 I] ObjGtkWidget | ||
| 10 | 2 | iri | |
| 11 | >> * Button : ObjGtkWidget : any button already created | ||
| 12 | |||
| 13 | >> * Reflex : u1 : the prototype of your Scol callback (see flag below) | ||
| 14 | |||
| 15 | >> * UserParameter : u0 : any parameter at your convenience | ||
| 16 | |||
| 17 | >> * flag : I : a flag : | ||
| 18 | |||
| 19 | >>> * SCOL_GTK_BUTTON_CB_CLICKED : the button has been clicked | ||
| 20 | |||
| 21 | >>> The type of the callback should be fun [ObjGtkWidget u0] u1 | ||
| 22 | |||
| 23 | >>> * SCOL_GTK_BUTTON_CB_TOGGLED : the state of the button has changed | ||
| 24 | |||
| 25 | >>> The type of the callback should be fun [ObjGtkWidget u0 I] u1 | ||
| 26 | |||
| 27 | >>> The supplemental parameter is the current state : 1 : active / checked, 0 : inactive / unchecked | ||
| 28 | |||
| 29 | >>> * SCOL_GTK_BUTTON_CB_LINKED : the button with a link has been activated | ||
| 30 | |||
| 31 | >>> The type of the callback should be fun [ObjGtkWidget u0 S] u1 | ||
| 32 | |||
| 33 | >>> The supplemental parameter is the url. | ||
| 34 | |||
| 35 | >>> WARNING : you should respect these prototype in yours functions ! | ||
| 36 | |||
| 37 | >> * +Return+ : ObjGtkWidget : the same object | ||
| 38 | |||
| 39 | |||
| 40 | Return [[Buttons]] |