Notebooks » History » Version 4
iri, 03/03/2011 11:26 PM
1 | 1 | iri | h1. Notebooks |
---|---|---|---|
2 | |||
3 | 2 | iri | A tabbed notebook container. |
4 | 1 | iri | |
5 | 2 | iri | {{toc}} |
6 | |||
7 | 1 | iri | h2. _gtkNotebookNew |
8 | |||
9 | Create a new Notebook. |
||
10 | |||
11 | Prototype : *fun [Chn] ObjGtkWidget* |
||
12 | Return the new object or nil if error. |
||
13 | 2 | iri | |
14 | h2. _gtkNotebookAddPage |
||
15 | |||
16 | Add/insert a new tab. |
||
17 | |||
18 | Prototype : *fun [ObjGtkWidget ObjGtkWidget S I] [ObjGtkWidget ObjGtkWidget ObjGtkWidget I]* |
||
19 | |||
20 | table. |
||
21 | |*notebook*|ObjGtkWidget|any notebook already created| |
||
22 | |*child*|ObjGtkWidget|any widget to include in the tab. Can be nil.| |
||
23 | |*title*|S|a title for the tab. If nil, the title will be "Page N" (N the number of the pages)| |
||
24 | |*pos*|I|the position where the tab is inserted. If nil, the tab will be added to the end, if negative, it will be inserted from the end, if positive, it is inserted from the begin.| |
||
25 | |||
26 | +Return :+ |
||
27 | |||
28 | table. |
||
29 | |*notebook*|ObjGtkWidget|the same notebook| |
||
30 | |*label*|ObjGtkWidget|the label object (the title of the tab). So it can be modified ...| |
||
31 | |*child*|ObjGtkWidget|the child of the tab. By default, it's a text (GtkTextView)| |
||
32 | 4 | iri | |*index*|I|the index (starting from 0) of the inserted page in the notebook| |
33 | 2 | iri | |
34 | 3 | iri | h2. _gtkNotebookRemovePage |
35 | |||
36 | Remove a page from a notebook |
||
37 | |||
38 | Prototype : *fun [ObjGtkWidget I] ObjGtkWidget* |
||
39 | |||
40 | 1 | iri | The integer is the index of the page. |
41 | 4 | iri | |
42 | h2. _gtkNotebookIndex |
||
43 | |||
44 | Finds the index of the page/tab which contains the given child widget |
||
45 | |||
46 | Prototype : *fun [ObjGtkWidget ObjGtkWidget] I* |
||
47 | |||
48 | # *notebook* : ObjGtkWidget : the notebook |
||
49 | # *child* : ObjGtkWidget : the child |
||
50 | |||
51 | +Return+ : I : the index or nil if error or not found |
||
52 | |||
53 | h2. _gtkNotebookCurrent |
||
54 | |||
55 | Returns the index of the current tab. |
||
56 | |||
57 | Prototype : *fun [ObjGtkWidget] I* |
||
58 | 3 | iri | |
59 | 2 | iri | |
60 | Return [[Api]] |