#include <application.hpp>
net::lliurex::lgi::Application::Application |
( |
std::string |
name | ) |
|
virtual net::lliurex::lgi::Application::~Application |
( |
| ) |
|
|
virtual |
void net::lliurex::lgi::Application::AddWindow |
( |
BaseWindow * |
window | ) |
|
Adds a window to the event loop
- Parameters
-
window | Adds a window to the event loop |
virtual int net::lliurex::lgi::Application::CustomEventsDispatch |
( |
| ) |
|
|
protectedvirtual |
Dispatch custom events, ex: Gtk This method is call at each loop iteration in order to allow antoher ui toolkits to share the same event loop.
It should return the number of processed events.
static Application* net::lliurex::lgi::Application::Get |
( |
| ) |
|
|
static |
Gets the application instance, if exists, else it returns nullptr
Message event hook
- Parameters
-
window | Target Window |
layer | Target Layer, can be nullptr if the message is broadcasted to all layers |
widget | Target Widget, can be nullptr if the message is either broadcasted to all layers or to all layer widgets |
event | Message event |
static void net::lliurex::lgi::Application::Quit |
( |
| ) |
|
|
static |
Exits from the event loop, causes Run to stop
Run the event loop. This is a blocking method
- Parameters
-
mode | Dispatch method, valid values are LGI_DISPATCH_EVENTS_FULL and LGI_DISPATCH_EVENTS_WAIT |
static void net::lliurex::lgi::Application::Set |
( |
Application * |
app | ) |
|
|
static |
Sets the Application instance. This method should be call before calling Run
- Parameters
-
app | Pointer to an application instance |
std::string net::lliurex::lgi::Application::name |
|
protected |
bool net::lliurex::lgi::Application::quit_request |
|
protected |
std::vector<BaseWindow *> net::lliurex::lgi::Application::windows |
|
protected |
The documentation for this class was generated from the following file: