Project

General

Profile

Window » History » Version 9

arkeon, 05/18/2021 04:08 PM

1 1 iri
h1. Window
2
3 7 iri
!>http://library.gnome.org/devel/gtk/unstable/window.png!
4 8 iri
5 7 iri
{{toc}}
6 5 iri
7 1 iri
h2. _gtkWindowNew
8
9 5 iri
Create a new window
10 1 iri
11 5 iri
Prototype :
12
*fun [Chn ObjGtkWidget S [I I] [I I]] ObjGtkWidget*
13 1 iri
14 5 iri
* Channel : Chn :any channel
15
* Parent : ObjGtkWidget : a parent, can be nil
16
* Title : S : a title
17
* Position : [I I] : x and y
18
* Size : [I I] : width and height
19
* *Return* : ObjGtkWidget : the new window or nil if error
20 1 iri
21
22
h2. _gtkWindowAddChild
23
24 5 iri
Add a child to a window
25 1 iri
26 5 iri
Prototype :
27
*fun [ObjGtkWidget ObjGtkWidget] ObjGtkWidget*
28 3 iri
29 5 iri
* window : ObjGtkWidget : the parent
30
* child : ObjGtkWidget : a child (typically a container but can be a single widget like a button)
31
* *Return* : the same window
32 1 iri
33
34 5 iri
h2. _gtkWindowCBdestroyed
35 1 iri
36 5 iri
Callback called when the window is destroyed
37 1 iri
38 5 iri
Prototype :
39
*fun [ObjGtkWidget fun [ObjGtkWidget u0] u1 u0] ObjGtkWidget*
40 1 iri
41 9 arkeon
Note : you can define it too via "_gtkWidgetCB":http://redmine.openspace3d.com/projects/lib2dgtk/wiki/Widget_callbacks#SCOL_GTK_WIDGET_DESTROY with the flag SCOL_GTK_WIDGET_DESTROY.
42 6 iri
43 5 iri
h2. _gtkWindowDeleteEvent
44 1 iri
45 5 iri
Define if the delete-event (e.g. a user press the close button) destroys the window or hide the window
46
If the window is hidden, it can be shown later without rebuild it.
47 1 iri
48 5 iri
Prototype :
49
*fun [ObjGtkWidget I] ObjGtkWidget*
50
* window : ObjGtkWidget : any window
51
* flag : I : 1 to hide, otherwise the window will be destroyed
52 1 iri
53
54
55
Return [[API]]