#include <omgui/app.h>
Public Types | |
typedef std::vector< string > | cmd_line |
Public Member Functions | |
void | close_toplevel_windows () |
const cmd_line & | get_cmd_line () |
omgui::EventLoop * | get_event_loop () |
virtual bool | init ()=0 |
void | quit () |
void | run () |
void | set_cmd_line (const cmd_line &cmd) |
virtual | ~App () |
Static Public Member Functions | |
static void | add_top_level (TopLevel *t) |
static const TopLevelList & | get_top_level_widgets () |
static void | remove_top_level (TopLevel *t) |
Protected Member Functions | |
App () | |
Private Member Functions | |
void | _quit () |
void | gui_init () |
Private Attributes | |
cmd_line | m_cmd |
std::auto_ptr< omgui::EventLoop > | m_event_loop |
The event loop. |
typedef std::vector<string> omgui::App::cmd_line |
Command line storage as a vector of strings
omgui::App::~App | ( | ) | [virtual] |
omgui::App::App | ( | ) | [protected] |
void omgui::App::_quit | ( | ) | [private] |
Called by quit(). Must be implemented by an implementation. Its purpose is to notify an implementation that the application must terminate. It is called after all TopLevel widgets have been closed.
The purpose of this function is to notify the implementation that it should allow omgui::App::run() to return, terminating the application.
void omgui::App::add_top_level | ( | TopLevel * | t | ) | [static] |
Adds a TopLevel widget to the toplevel widget list
void omgui::App::close_toplevel_windows | ( | ) |
const App::cmd_line & omgui::App::get_cmd_line | ( | ) |
omgui::EventLoop* omgui::App::get_event_loop | ( | ) |
const TopLevelList & omgui::App::get_top_level_widgets | ( | ) | [static] |
void omgui::App::gui_init | ( | ) | [private] |
Called by the constructor, and implemented by an implementation for port specific initialization.
If gui initialization fails for what ever reason (no X server for a *nix port), an exception will be thrown.
virtual bool omgui::App::init | ( | ) | [pure virtual] |
void omgui::App::quit | ( | ) |
void omgui::App::remove_top_level | ( | TopLevel * | t | ) | [static] |
void omgui::App::run | ( | ) |
Runs the main event loop.
void omgui::App::set_cmd_line | ( | const cmd_line & | cmd | ) |
cmd_line omgui::App::m_cmd [private] |
std::auto_ptr<omgui::EventLoop> omgui::App::m_event_loop [private] |
The event loop.