GtkWindow Constructor

GtkWindow Constructor

GtkWindow ([ GtkWindowType type = GTK_WINDOW_TOPLEVEL ]);

Creates a new GtkWindow which is toplevel by default. Most of the other widgets in PHP-GTK need to have a window constructed and to be added to that window (or a container within that window) before they can be instantiated. There are exceptions, such as GtkDialog and GtkColorSelectionDialog; these are compound widgets which are already based upon their own internal instance of a GtkWindow.

As the GtkWindow is such a fundamental object in the design of windowed applications, there follows a brief code sample to reiterate the essential basic steps in creating any PHP-GTK script:

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.