#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 |
|
net::lliurex::lgi::fbWindow::fbWindow |
( |
int |
width, |
|
|
int |
height, |
|
|
const char * |
devname, |
|
|
int |
flags |
|
) |
| |
virtual net::lliurex::lgi::fbWindow::~fbWindow |
( |
| ) |
|
|
virtual |
void net::lliurex::lgi::fbWindow::AddLayer |
( |
Layer * |
layer | ) |
|
|
virtual |
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.
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.
void net::lliurex::lgi::fbWindow::Flip |
( |
| ) |
|
|
virtual |
bool net::lliurex::lgi::fbWindow::GetCollision |
( |
int |
x, |
|
|
int |
y, |
|
|
Widget ** |
widget, |
|
|
Layer ** |
layer |
|
) |
| |
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.
int net::lliurex::lgi::fbWindow::GetHeight |
( |
| ) |
|
|
virtual |
int net::lliurex::lgi::fbWindow::GetTicks |
( |
| ) |
|
int net::lliurex::lgi::fbWindow::GetWidth |
( |
| ) |
|
|
virtual |
void net::lliurex::lgi::fbWindow::HideLayer |
( |
Layer * |
layer | ) |
|
|
virtual |
RawEvent* net::lliurex::lgi::fbWindow::PopEvent |
( |
| ) |
|
|
virtual |
void net::lliurex::lgi::fbWindow::ProcessEvent |
( |
RawEvent * |
raw_event | ) |
|
|
virtual |
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.
void net::lliurex::lgi::fbWindow::RemoveLayer |
( |
Layer * |
layer | ) |
|
|
virtual |
void net::lliurex::lgi::fbWindow::Resize |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
void net::lliurex::lgi::fbWindow::SendMessage |
( |
Layer * |
layer, |
|
|
Widget * |
widget, |
|
|
Message * |
msg |
|
) |
| |
|
virtual |
void net::lliurex::lgi::fbWindow::SetCursor |
( |
int |
type | ) |
|
|
virtual |
void net::lliurex::lgi::fbWindow::SetCursorMode |
( |
int |
mode | ) |
|
|
virtual |
void net::lliurex::lgi::fbWindow::SetCustomCursor |
( |
BaseCursor * |
cursor | ) |
|
|
virtual |
void net::lliurex::lgi::fbWindow::SetDoubleClickTime |
( |
int |
ms | ) |
|
|
virtual |
void net::lliurex::lgi::fbWindow::SetTitle |
( |
const char * |
title | ) |
|
|
virtual |
void net::lliurex::lgi::fbWindow::ShowLayer |
( |
Layer * |
layer | ) |
|
|
virtual |
cairo_t* net::lliurex::lgi::fbWindow::cairo |
cairo_surface_t* net::lliurex::lgi::fbWindow::cairo_surface |
The documentation for this class was generated from the following file: