Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.DUI

Class DUI

Implemented interfaces:


public class

DUI



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


Constructor Summary
protected (char args)
          Creates a new DUI object.

Methods Summary
static String gtkCheckVersion()
          Check the require GTK version with the actual GTK library.
static String getGTKExpectedVersion()
          Gets the expected GTK version
public void autoShow(byte show)
          Set the auto show flag.
public byte autoShow()
          get the auto show state
public static DUI dui(char args)
          Get the current DUI or create a new one if it doesn't exist yet.
public static DUI dui()
          Get the current DUI.
public int go()
          Starts the main DUI cycle.
public static void threadsEnter()
          
public static void threadsLeave()
          
public static void flush()
          
public void stop()
          Stop the DUI main cycle.
public static void processPendingEvents()
          Allow DUI to process all pending events.
static int getCurrentEventTime()
          


gtkCheckVersion

static String gtkCheckVersion()
Check the require GTK version with the actual GTK library.

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

getGTKExpectedVersion

static String getGTKExpectedVersion()
Gets the expected GTK version

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



protected ctor(DUI)(char args)
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

autoShow

public void 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

autoShow

public byte autoShow()
get the auto show state
@see autoShow(byte)

dui

public static DUI dui(char args)
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.

dui

public static DUI dui()
Get the current DUI.

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

go

public int 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

threadsEnter

public static void threadsEnter()

threadsLeave

public static void threadsLeave()

flush

public static void flush()

stop

public void stop()
Stop the DUI main cycle.
This should be called to finish the application, all GUI activities will be stoped

processPendingEvents

public static void processPendingEvents()
Allow DUI to process all pending events.

getCurrentEventTime

static int getCurrentEventTime()