Project

General

Profile

Callback » History » Revision 8

Revision 7 (iri, 02/22/2011 12:35 PM) → Revision 8/9 (iri, 02/22/2011 12:44 PM)

h1. Callback 

 * _gtkButtonCB 

 Define a Scol callback to any button. One function to define differents callbacks. So, set the flag correctly ;-) 
 You can call it several times to a same object. 

 h3. Prototype : 

 > fun [ObjGtkWidget u1 u0 I] ObjGtkWidget 

 >> * Button : ObjGtkWidget : any button already created 

 >> * Reflex : u1 : the prototype of your Scol callback (see flag below) 

 >> * UserParameter : u0 : any parameter at your convenience 

 >> * flag : I : a flag : 

 >>> * SCOL_GTK_BUTTON_CB_CLICKED : the button has been clicked 

 >>> The type of the callback should be fun [ObjGtkWidget u0] u1 

 >>> * SCOL_GTK_BUTTON_CB_TOGGLED : the state of the button has changed 

 >>> The type of the callback should be fun [ObjGtkWidget u0 I] u1 

 >>> The supplemental parameter is the current state : 1 : active / checked, 0 : inactive / unchecked 

 >>> * SCOL_GTK_BUTTON_CB_LINKED : the button with a link has been activated 

 >>> The type of the callback should be fun [ObjGtkWidget u0 S] u1 

 >>> The supplemental parameter is the url. 

 >>>>> *WARNING* : you should respect these prototypes to yours functions ! 

 >> * +*Return*+ : ObjGtkWidget : the same object 


 Return [[Buttons]]