#include <window.hpp>
Public Member Functions | |
virtual | ~BaseWindow () |
virtual void | Destroy ()=0 |
virtual void | SetTitle (const char *title)=0 |
virtual void | GetEvent ()=0 |
virtual void | DispatchEvents (int mode)=0 |
virtual void | PushEvent (RawEvent *raw_event)=0 |
virtual RawEvent * | PopEvent ()=0 |
virtual void | ProcessEvent (RawEvent *raw_event)=0 |
virtual void | Flip ()=0 |
virtual int | GetWidth ()=0 |
virtual int | GetHeight ()=0 |
virtual void | SetSize (int width, int height)=0 |
virtual void | AddLayer (Layer *layer)=0 |
virtual void | RemoveLayer (Layer *layer)=0 |
virtual void | ShowLayer (Layer *layer)=0 |
virtual void | HideLayer (Layer *layer)=0 |
virtual void | SetCursor (int type)=0 |
virtual void | SetCursorMode (int mode)=0 |
virtual void | SetCustomCursor (BaseCursor *cursor)=0 |
virtual void | SetDoubleClickTime (int ms)=0 |
virtual void | SendMessage (Layer *layer, Widget *widget, Message *msg)=0 |
virtual Widget * | GetFocus ()=0 |
virtual void | NextFocus (Layer *layer=nullptr)=0 |
|
inlinevirtual |
Destructor
|
pure virtual |
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Destroys the window Trying to draw or process events before destroying the window may crash the application.
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Dispatch events from stack
mode | Dispatch method, valid values are LGI_DISPATCH_EVENTS_FULL and LGI_DISPATCH_EVENTS_WAIT |
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Renders current frame and clean the screen Should be call at each iteration
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Pulls an event from underlaying event stack and pushes it into lgi stack. Typically, each call pushes one event, but two, three or none it is also possible
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Get current focused widget or nullptr if none
Implemented in net::lliurex::lgi::X11Window.
|
pure virtual |
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Cycle focus to the next Widget
layer | Cycle focus at given layer |
Implemented in net::lliurex::lgi::X11Window.
|
pure virtual |
Pops and event from the stack This method should be thread safe
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Process and event, this means, calling those layers and widgets hooks
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Push an event into the stack
raw_event | Source event, will be freed by DispatchEvents This method is thread safe |
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Push a message into event stack
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Implemented in net::lliurex::lgi::X11Window.
|
pure virtual |
Sets windows title
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.
|
pure virtual |
Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.