Only one instance of this class will exist per application.
(that has to be reviewed has it seems that GTK+ applications can have more then one main cyle)
Use DUI.dui (char[][] args) to create and get an instance of DUI, use DUI.dui() to the the current instance to DUI.
Any second call the DUI.dui(char[][]args) will ignore the arguments passed and just return the current DUI instance.
The valid arguments to GTK+ are:
--gtk-module
--g-fatal-warnings
--gtk-debug
--gtk-no-debug
--gdk-debug
--gdk-no-debug
--display
--sync
--name
--class
Public Member Functions | |
void | autoShow (byte show) |
Set the auto show flag. | |
byte | autoShow () |
get the auto show state | |
int | go () |
Starts the main DUI cycle. | |
void | stop () |
Stop the DUI main cycle. | |
Static Public Member Functions | |
String | gtkCheckVersion () |
Check the require GTK version with the actual GTK library. | |
String | getGTKExpectedVersion () |
Gets the expected GTK version. | |
DUI | dui (char[][] args) |
Get the current DUI or create a new one if it doesn't exist yet. | |
DUI | dui () |
Get the current DUI. | |
void | processPendingEvents () |
Allow DUI to process all pending events. | |
Protected Member Functions | |
this (char[][] args) | |
Creates a new DUI object. | |
Protected Attributes | |
byte | showWidgetOnCreation = 1 |
This is to show or not all widget by default. |
|
get the auto show state
|
|
Set the auto show flag. This is an experimental (good so far) flag to show every widget on creation. Instead of this a showAll is used on normal GTK programming the idea for this is that probably we want ot show most of the widget placed on a container and don't want to wary about it. If a widget is not to show just use widget.hide() method. Some widgets (e.g. Windows and Dialog) are never shown by default |
|
Get the current DUI.
|
|
Get the current DUI or create a new one if it doesn't exist yet. Only one DUI will exist by application.
|
|
Gets the expected GTK version.
|
|
Starts the main DUI cycle. You should call this only after all initialization are completed as the control will not be return to the calling function
|
|
Check the require GTK version with the actual GTK library.
|
|
Allow DUI to process all pending events.
|
|
Stop the DUI main cycle. This should be called to finish the application, all GUI activities will be stoped |
|
Creates a new DUI object. This is suppose to be a singleton but this ctor is left with access protected.
|
|
This is to show or not all widget by default.
|