#include <fbwindow.hpp>
|
| fbWindow (int width, int height, const char *devname, int flags) |
|
virtual | ~fbWindow () |
|
void | Resize (int w, int h) |
|
void | Destroy () |
|
void | SetTitle (const char *title) |
|
void | GetEvent () |
|
void | DispatchEvents (int mode) |
|
void | PushEvent (RawEvent *raw_event) |
|
RawEvent * | PopEvent () |
|
void | ProcessEvent (RawEvent *raw_event) |
|
void | Flip () |
|
int | GetWidth () |
|
int | GetHeight () |
|
void | AddLayer (Layer *layer) |
|
void | RemoveLayer (Layer *layer) |
|
void | ShowLayer (Layer *layer) |
|
void | HideLayer (Layer *layer) |
|
void | SetCursor (int type) |
|
void | SetCursorMode (int mode) |
|
void | SetCustomCursor (BaseCursor *cursor) |
|
void | SetDoubleClickTime (int ms) |
|
void | SendMessage (Layer *layer, Widget *widget, Message *msg) |
|
int | GetTicks () |
|
bool | GetCollision (int x, int y, Widget **widget, Layer **layer) |
|
virtual | ~BaseWindow () |
|
virtual void | SetSize (int width, int height)=0 |
|
virtual Widget * | GetFocus ()=0 |
|
virtual void | NextFocus (Layer *layer=nullptr)=0 |
|
◆ fbWindow()
net::lliurex::lgi::fbWindow::fbWindow |
( |
int |
width, |
|
|
int |
height, |
|
|
const char * |
devname, |
|
|
int |
flags |
|
) |
| |
◆ ~fbWindow()
virtual net::lliurex::lgi::fbWindow::~fbWindow |
( |
| ) |
|
|
virtual |
◆ AddLayer()
void net::lliurex::lgi::fbWindow::AddLayer |
( |
Layer * |
layer | ) |
|
|
virtual |
◆ Destroy()
void net::lliurex::lgi::fbWindow::Destroy |
( |
| ) |
|
|
virtual |
Destroys the window Trying to draw or process events before destroying the window may crash the application.
Implements net::lliurex::lgi::BaseWindow.
◆ DispatchEvents()
void net::lliurex::lgi::fbWindow::DispatchEvents |
( |
int |
mode | ) |
|
|
virtual |
Dispatch events from stack
- Parameters
-
mode | Dispatch method, valid values are LGI_DISPATCH_EVENTS_FULL and LGI_DISPATCH_EVENTS_WAIT |
Implements net::lliurex::lgi::BaseWindow.
◆ Flip()
void net::lliurex::lgi::fbWindow::Flip |
( |
| ) |
|
|
virtual |
◆ GetCollision()
bool net::lliurex::lgi::fbWindow::GetCollision |
( |
int |
x, |
|
|
int |
y, |
|
|
Widget ** |
widget, |
|
|
Layer ** |
layer |
|
) |
| |
◆ GetEvent()
void net::lliurex::lgi::fbWindow::GetEvent |
( |
| ) |
|
|
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
Implements net::lliurex::lgi::BaseWindow.
◆ GetHeight()
int net::lliurex::lgi::fbWindow::GetHeight |
( |
| ) |
|
|
virtual |
◆ GetTicks()
int net::lliurex::lgi::fbWindow::GetTicks |
( |
| ) |
|
◆ GetWidth()
int net::lliurex::lgi::fbWindow::GetWidth |
( |
| ) |
|
|
virtual |
◆ HideLayer()
void net::lliurex::lgi::fbWindow::HideLayer |
( |
Layer * |
layer | ) |
|
|
virtual |
◆ PopEvent()
RawEvent* net::lliurex::lgi::fbWindow::PopEvent |
( |
| ) |
|
|
virtual |
◆ ProcessEvent()
void net::lliurex::lgi::fbWindow::ProcessEvent |
( |
RawEvent * |
raw_event | ) |
|
|
virtual |
◆ PushEvent()
void net::lliurex::lgi::fbWindow::PushEvent |
( |
RawEvent * |
raw_event | ) |
|
|
virtual |
Push an event into the stack
- Parameters
-
raw_event | Source event, will be freed by DispatchEvents This method is thread safe |
Implements net::lliurex::lgi::BaseWindow.
◆ RemoveLayer()
void net::lliurex::lgi::fbWindow::RemoveLayer |
( |
Layer * |
layer | ) |
|
|
virtual |
◆ Resize()
void net::lliurex::lgi::fbWindow::Resize |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
◆ SendMessage()
void net::lliurex::lgi::fbWindow::SendMessage |
( |
Layer * |
layer, |
|
|
Widget * |
widget, |
|
|
Message * |
msg |
|
) |
| |
|
virtual |
◆ SetCursor()
void net::lliurex::lgi::fbWindow::SetCursor |
( |
int |
type | ) |
|
|
virtual |
◆ SetCursorMode()
void net::lliurex::lgi::fbWindow::SetCursorMode |
( |
int |
mode | ) |
|
|
virtual |
◆ SetCustomCursor()
void net::lliurex::lgi::fbWindow::SetCustomCursor |
( |
BaseCursor * |
cursor | ) |
|
|
virtual |
◆ SetDoubleClickTime()
void net::lliurex::lgi::fbWindow::SetDoubleClickTime |
( |
int |
ms | ) |
|
|
virtual |
◆ SetTitle()
void net::lliurex::lgi::fbWindow::SetTitle |
( |
const char * |
title | ) |
|
|
virtual |
◆ ShowLayer()
void net::lliurex::lgi::fbWindow::ShowLayer |
( |
Layer * |
layer | ) |
|
|
virtual |
◆ cairo
cairo_t* net::lliurex::lgi::fbWindow::cairo |
◆ cairo_surface
cairo_surface_t* net::lliurex::lgi::fbWindow::cairo_surface |
The documentation for this class was generated from the following file: