Window » History » Revision 7
Revision 6 (iri, 02/28/2011 09:35 PM) → Revision 7/9 (iri, 03/31/2011 03:13 PM)
h1. Window !>http://library.gnome.org/devel/gtk/unstable/window.png! {{toc}} {{>toc}} h2. _gtkWindowNew Create a new window Prototype : *fun [Chn ObjGtkWidget S [I I] [I I]] ObjGtkWidget* * Channel : Chn :any channel * Parent : ObjGtkWidget : a parent, can be nil * Title : S : a title * Position : [I I] : x and y * Size : [I I] : width and height * *Return* : ObjGtkWidget : the new window or nil if error h2. _gtkWindowAddChild Add a child to a window Prototype : *fun [ObjGtkWidget ObjGtkWidget] ObjGtkWidget* * window : ObjGtkWidget : the parent * child : ObjGtkWidget : a child (typically a container but can be a single widget like a button) * *Return* : the same window h2. _gtkWindowCBdestroyed Callback called when the window is destroyed Prototype : *fun [ObjGtkWidget fun [ObjGtkWidget u0] u1 u0] ObjGtkWidget* Note : you can define it too via "_gtkWidgetCB":http://trac.scolring.org/projects/lib2dgtk/wiki/Widget_callbacks#SCOL_GTK_WIDGET_DESTROY with the flag SCOL_GTK_WIDGET_DESTROY. h2. _gtkWindowDeleteEvent Define if the delete-event (e.g. a user press the close button) destroys the window or hide the window If the window is hidden, it can be shown later without rebuild it. Prototype : *fun [ObjGtkWidget I] ObjGtkWidget* * window : ObjGtkWidget : any window * flag : I : 1 to hide, otherwise the window will be destroyed Return [[API]]