Home2L - C/C++ API v1.4-0-g38cc (2024-05-25)
Smart Tools for a Private Home
|
Go to the source code of this file.
Macros | |
#define | APP_INIT_OK ((void *) 1) |
Return value for 'appOpInit': Initialization was successful. | |
#define | APP_INIT_FAIL NULL |
Return value for 'appOpInit': Initialization failed. | |
Typedefs | |
typedef void * | FAppFunc(int appOp, void *data) |
Prototype for applet entry functions. Example: void *AppPhoneFunc (int appOp, void *data) | |
Enumerations | |
enum | EAppOperation { appOpInit = 0 , appOpDone , appOpLabel , appOpActivate , appOpLongPush , appOpUser = 0x80 } |
Applet operations. More... | |
Functions | |
General ... | |
void | AppsInit () |
void | AppsDone () |
static int | Apps () |
Sending intents to applets ... | |
void * | AppCall (EAppId appId, int appOp, void *data=NULL) |
static void | AppActivate (EAppId appId) |
static void | AppEscape () |
bool | AppEnabled (EAppId appId) |
Convenience callbacks for push buttons ... | |
void | CbAppActivate (class CButton *, bool, void *appId) |
void | CbAppEscape (class CButton *, bool, void *) |
Helpers for launch buttons ... | |
#define | COL_APP_LABEL ToColor (0x60, 0x60, 0x60) |
Normal launcher labels. | |
#define | COL_APP_LABEL_LIVE WHITE |
App is active, and the user must be aware of that. | |
#define | COL_APP_LABEL_BUSY LIGHT_RED |
App is busy with something. | |
#define | COL_APP_LABEL_ALARM ToColor (0xff, 0x40, 0x40) |
Something very urgant/important is with the app. | |
#define | APP_SET_LAUNCHER(BTN, ICON_NAME, TEXT, HOTKEY) |
Set launcher appearance (standard color) and hotkey; Typical use: initialization. More... | |
#define | APP_SET_LABEL(BTN, ICON_NAME, TEXT, COLOR) ((CButton *) (BTN))->SetLabel ((COLOR), ICON_NAME "-48", TEXT, fntAppLabel) |
Set launcher appearance; Typical use is to change color or label. More... | |
#define | APP_SET_HOTKEY(BTN, HOTKEY) ((CButton *) (BTN))->SetHotkey (HOTKEY); |
Set the hotkey. | |
TTF_Font * | fntAppLabel |
Default font for launch buttons (read-only!). | |