#include <application.hpp>
◆ Application()
net::lliurex::lgi::Application::Application |
( |
std::string |
name | ) |
|
◆ ~Application()
virtual net::lliurex::lgi::Application::~Application |
( |
| ) |
|
|
virtual |
◆ AddWindow()
void net::lliurex::lgi::Application::AddWindow |
( |
BaseWindow * |
window | ) |
|
Adds a window to the event loop
- Parameters
-
window | Adds a window to the event loop |
◆ CustomEventsDispatch()
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.
◆ Get()
static Application* net::lliurex::lgi::Application::Get |
( |
| ) |
|
|
static |
Gets the application instance, if exists, else it returns nullptr
◆ OnMessage()
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 |
◆ Quit()
static void net::lliurex::lgi::Application::Quit |
( |
| ) |
|
|
static |
Exits from the event loop, causes Run to stop
◆ Run()
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 |
◆ Set()
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 |
◆ instance
◆ name
std::string net::lliurex::lgi::Application::name |
|
protected |
◆ quit_request
bool net::lliurex::lgi::Application::quit_request |
|
protected |
◆ windows
std::vector<BaseWindow *> net::lliurex::lgi::Application::windows |
|
protected |
The documentation for this class was generated from the following file: