LGI  1.0
Lliurex Graphic Interface
Public Member Functions | List of all members
net::lliurex::lgi::BaseWindow Class Referenceabstract

#include <window.hpp>

Inheritance diagram for net::lliurex::lgi::BaseWindow:
net::lliurex::lgi::fbWindow net::lliurex::lgi::X11Window

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 RawEventPopEvent ()=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 WidgetGetFocus ()=0
 
virtual void NextFocus (Layer *layer=nullptr)=0
 

Constructor & Destructor Documentation

virtual net::lliurex::lgi::BaseWindow::~BaseWindow ( )
inlinevirtual

Destructor

Member Function Documentation

virtual void net::lliurex::lgi::BaseWindow::AddLayer ( Layer layer)
pure virtual
virtual void net::lliurex::lgi::BaseWindow::Destroy ( )
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.

virtual void net::lliurex::lgi::BaseWindow::DispatchEvents ( int  mode)
pure virtual

Dispatch events from stack

Parameters
modeDispatch method, valid values are LGI_DISPATCH_EVENTS_FULL and LGI_DISPATCH_EVENTS_WAIT

Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.

virtual void net::lliurex::lgi::BaseWindow::Flip ( )
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.

virtual void net::lliurex::lgi::BaseWindow::GetEvent ( )
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.

virtual Widget* net::lliurex::lgi::BaseWindow::GetFocus ( )
pure virtual

Get current focused widget or nullptr if none

Implemented in net::lliurex::lgi::X11Window.

virtual int net::lliurex::lgi::BaseWindow::GetHeight ( )
pure virtual
virtual int net::lliurex::lgi::BaseWindow::GetWidth ( )
pure virtual
virtual void net::lliurex::lgi::BaseWindow::HideLayer ( Layer layer)
pure virtual
virtual void net::lliurex::lgi::BaseWindow::NextFocus ( Layer layer = nullptr)
pure virtual

Cycle focus to the next Widget

Parameters
layerCycle focus at given layer

Implemented in net::lliurex::lgi::X11Window.

virtual RawEvent* net::lliurex::lgi::BaseWindow::PopEvent ( )
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.

virtual void net::lliurex::lgi::BaseWindow::ProcessEvent ( RawEvent raw_event)
pure virtual

Process and event, this means, calling those layers and widgets hooks

Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.

virtual void net::lliurex::lgi::BaseWindow::PushEvent ( RawEvent raw_event)
pure virtual

Push an event into the stack

Parameters
raw_eventSource event, will be freed by DispatchEvents This method is thread safe

Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.

virtual void net::lliurex::lgi::BaseWindow::RemoveLayer ( Layer layer)
pure virtual
virtual void net::lliurex::lgi::BaseWindow::SendMessage ( Layer layer,
Widget widget,
Message msg 
)
pure virtual

Push a message into event stack

Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.

virtual void net::lliurex::lgi::BaseWindow::SetCursor ( int  type)
pure virtual
virtual void net::lliurex::lgi::BaseWindow::SetCursorMode ( int  mode)
pure virtual
virtual void net::lliurex::lgi::BaseWindow::SetCustomCursor ( BaseCursor cursor)
pure virtual
virtual void net::lliurex::lgi::BaseWindow::SetDoubleClickTime ( int  ms)
pure virtual
virtual void net::lliurex::lgi::BaseWindow::SetSize ( int  width,
int  height 
)
pure virtual
virtual void net::lliurex::lgi::BaseWindow::SetTitle ( const char *  title)
pure virtual

Sets windows title

Implemented in net::lliurex::lgi::X11Window, and net::lliurex::lgi::fbWindow.

virtual void net::lliurex::lgi::BaseWindow::ShowLayer ( Layer layer)
pure virtual

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