DUI Class Reference

List of all members.

Detailed Description

Provides the main GTK cycle.

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.


Member Function Documentation

byte DUI.autoShow  ) 
 

get the auto show state

See also:
autoShow(byte)

void DUI.autoShow byte  show  ) 
 

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

DUI DUI.dui  )  [static]
 

Get the current DUI.

Returns:
the DUI for this application or null if it doesn't exist yet

DUI DUI.dui char  args[][]  )  [static]
 

Get the current DUI or create a new one if it doesn't exist yet.

Only one DUI will exist by application.

Returns:
the DUI for this application.

String DUI.getGTKExpectedVersion  )  [static]
 

Gets the expected GTK version.

Returns:
a string with major, minor, micro separatd by comas

int DUI.go  ) 
 

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

Returns:
the exit status

String DUI.gtkCheckVersion  )  [static]
 

Check the require GTK version with the actual GTK library.

Returns:
an empty string if versions are compatible or a warning message

void DUI.processPendingEvents  )  [static]
 

Allow DUI to process all pending events.

void DUI.stop  ) 
 

Stop the DUI main cycle.

This should be called to finish the application, all GUI activities will be stoped

DUI.this char  args[][]  )  [protected]
 

Creates a new DUI object.

This is suppose to be a singleton but this ctor is left with access protected.

Todo:
actually parse the parameters


Member Data Documentation

byte DUI.showWidgetOnCreation = 1 [protected]
 

This is to show or not all widget by default.

See also:
autoShow(byte)


SourceForge.net Logo DSource.org Logo digitalmars.com Logo