Range » History » Version 3
iri, 03/31/2011 07:58 PM
1 | 1 | iri | h1. Range |
---|---|---|---|
2 | |||
3 | Widgets which visualize an adjustment : scale, scroll bar, ... objects |
||
4 | |||
5 | !>http://library.gnome.org/devel/gtk/unstable/scales.png! |
||
6 | |||
7 | {{toc}} |
||
8 | |||
9 | h2. _gtkRangeSetValues |
||
10 | |||
11 | Sets min et max, step and page size to a range object. |
||
12 | |||
13 | 3 | iri | Prototype : *fun [ObjGtkWidget [F F] [F F]] ObjGtkWidget* |
14 | 1 | iri | |
15 | table. |
||
16 | |*range*|ObjGtkWidget|a valid existing object| |
||
17 | 3 | iri | |*min_max*|[F F]|the min and the max values availables| |
18 | |*step_page*|[F F]|the step and the page sizes values| |
||
19 | 1 | iri | |
20 | +Return+ : ObjGtkWidget : the same object or nil if error |
||
21 | |||
22 | * _step_ is used when the user clicks on the arrow button / cursor or when he moves the cursor with the arrow keys (by example). |
||
23 | * _page_ is used when th user click on the body or he moves the cursor with the page up / page down keys (by example). |
||
24 | |||
25 | 2 | iri | h2. _gtkRangeGet |
26 | |||
27 | Returns the current value or nil if error |
||
28 | |||
29 | Prototype : *fun [ObjGtkWidget] F* |
||
30 | |||
31 | h2. _gtkRangeSet |
||
32 | |||
33 | Sets the current value |
||
34 | |||
35 | 3 | iri | Prototype : *fun [ObjGtkWidget F] ObjGtkWidget* |
36 | 2 | iri | |
37 | table. |
||
38 | |*range*|ObjGtkWidget|a valid existing object| |
||
39 | |*value*|F|the new value. It will be forced to inside the range if it is outside.| |
||
40 | |||
41 | +Return+ : ObjGtkWidget : the same object or nil if error |
||
42 | |||
43 | |||
44 | |||
45 | 1 | iri | |
46 | Return [[Api]] |