Project

General

Profile

Callback » History » Version 9

iri, 02/22/2011 12:46 PM

1 1 iri
h1. Callback
2
3
* _gtkButtonCB
4
5 7 iri
Define a Scol callback to any button. One function to define differents callbacks. So, set the flag correctly ;-)
6 8 iri
You can call it several times to a same object.
7 1 iri
8
h3. Prototype :
9
10
> fun [ObjGtkWidget u1 u0 I] ObjGtkWidget
11 2 iri
12
>> * Button : ObjGtkWidget : any button already created
13
14
>> * Reflex : u1 : the prototype of your Scol callback (see flag below)
15
16
>> * UserParameter : u0 : any parameter at your convenience
17
18
>> * flag : I : a flag :
19
20
>>> * SCOL_GTK_BUTTON_CB_CLICKED : the button has been clicked
21
22
>>> The type of the callback should be fun [ObjGtkWidget u0] u1
23
24
>>> * SCOL_GTK_BUTTON_CB_TOGGLED : the state of the button has changed
25
26
>>> The type of the callback should be fun [ObjGtkWidget u0 I] u1
27
28
>>> The supplemental parameter is the current state : 1 : active / checked, 0 : inactive / unchecked
29
30 9 iri
>>> * SCOL_GTK_BUTTON_CB_LINKED : the button with a link has been activated. GTK+ 3.0 or + only. Otherwise, it is ignored.
31 2 iri
32
>>> The type of the callback should be fun [ObjGtkWidget u0 S] u1
33
34
>>> The supplemental parameter is the url.
35
36 6 iri
>>>>> *WARNING* : you should respect these prototypes to yours functions !
37 2 iri
38 3 iri
>> * +*Return*+ : ObjGtkWidget : the same object
39 2 iri
40
41
Return [[Buttons]]