latest version v1.9 - last update 10 Apr 2010 |
Server to administrate gtk GUI. More...
#include <ltiGtkServer.h>
Classes | |
class | guiThread |
An instance of this class will be the GUI server object, called gtkServer. More... | |
Public Member Functions | |
gtkServer () | |
virtual | ~gtkServer () |
bool | start () |
Static Public Member Functions | |
static bool | shutdown () |
static bool | isAlive () |
Static Protected Member Functions | |
static void | toolkitAbort () |
Static Protected Attributes | |
static guiThread | theThread |
static bool | alreadyStarted |
static mutex | lock |
Server to administrate gtk GUI.
lti::gtkServer::gtkServer | ( | ) |
default constructor
virtual lti::gtkServer::~gtkServer | ( | ) | [virtual] |
destructor
static bool lti::gtkServer::isAlive | ( | ) | [static] |
return true if the gtk-server is active (alive) or false otherwise
static bool lti::gtkServer::shutdown | ( | ) | [static] |
stop the server.
It will not be possible to restart the server after this. You can stop the server before the end of the application, to close all GTK widgets and its main loop.
bool lti::gtkServer::start | ( | ) |
start the server.
static void lti::gtkServer::toolkitAbort | ( | ) | [static, protected] |
static method called at the end of the application, to ensure the proper finalization of the GTK main loop.
bool lti::gtkServer::alreadyStarted [static, protected] |
flag to indicate if server thread is already on
mutex lti::gtkServer::lock [static, protected] |
mutex to protect flag alreadyStarted
guiThread lti::gtkServer::theThread [static, protected] |
the gui server (just one for all gui elements.
..)