Logo Search packages:      
Sourcecode: fbpager version File versions  Download package

FbTk::App Class Reference

#include <App.hh>

List of all members.


Detailed Description

Main class for applications, every application must create an instance of this class.

Usage:
App app;
...
init some other stuff;
...
main loop starts here:
app.eventLoop();

To end main loop you call App::instance()->end()

Definition at line 41 of file App.hh.


Public Member Functions

 App (const char *displayname=0)
 creates a display connection
Display * display () const
 display connection
bool done () const
void end ()
 forces an end to event loop
virtual void eventLoop ()
 starts event loop
void sync (bool discard)

Static Public Member Functions

static Appinstance ()

Private Attributes

Display * m_display
bool m_done

Static Private Attributes

static Apps_app = 0

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index