Home2L - C/C++ API v1.4-0-g38cc (2024-05-25)
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 () |
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.