Home2L - C/C++ API
v1.2-2-ga4fe (2023-04-15)
Smart Tools for a Private Home
|
Screen object.
Definition at line 293 of file ui_screen.H.
#include "ui_screen.H"
Public Member Functions | |
Widget management ... | |
"Add"/"Del" methods do not pass ownership, caller remains owner. Layer 0 is the normal screen layer, layer 1 the layer of modal dialogs. | |
void | AddWidget (CWidget *widget, int layer=0) |
void | DelWidget (CWidget *widget) |
void | DelAllWidgets () |
Screen stacking ... | |
void | Run () |
Activate the screen, iterate until Return() is called and then return to the previously active screen. More... | |
void | Return () |
Let Run() return at next occasion. | |
On-screen keyboard ... | |
void | SetKeyboard (bool on) |
bool | HasKeyboard () |
Static Public Member Functions | |
Class methods ... | |
'Screen[Init|Done]()' are mapped to the following methods. | |
static void | ClassInit () |
static void | ClassDone () |
static void | Refresh () |
Refresh screen (e.g. after the app has been woken up in Android). | |
static void | EmulateOff (bool off) |
Emulate screen off. | |
static void | EmulateStandby (bool standby) |
Emulate screen standby mode. | |
Friends | |
class | CWidget |
void | UiIterate (bool noWait) |
(De-)activation ... | |
bool | IsActive () |
virtual void | Activate (bool on=true) |
void | Deactivate () |
static class CScreen * | ActiveScreen () |
void CScreen::Run | ( | ) |
Activate the screen, iterate until Return() is called and then return to the previously active screen.
It is allowed to call this method from 'HandleEvent', e.g. for modal dialogs. If another screen is activated by 'Activate', this method returns immediately and does not switch back to the previous screen.
|
friend |
Iterate the application's main event loop:
Execution may take a longer period of time if a) no events occur (sleep mode) and 'noWait == false' or b) some event handler calls 'CScreen::Run' for a new screen.