Home2L - C/C++ API v1.4-2-g83f4c (2025-08-23)
Smart Tools for a Private Home
Loading...
Searching...
No Matches
Macros | Typedefs | Enumerations
apps.H File Reference
#include "config.H"
#include "ui_base.H"
#include "apps_config.H"
Include dependency graph for apps.H:

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...
 

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_LABEL(BTN, ICON_NAME, TEXT, COLOR)    ((CButton *) (BTN))->SetLabel ((COLOR), ICON_NAME "-48", TEXT, fntAppLabel)
 Set launcher appearance (standard color) and hotkey; Typical use: initialization.
 
#define APP_SET_HOTKEY(BTN, HOTKEY)    ((CButton *) (BTN))->SetHotkey (HOTKEY);
 Set launcher appearance; Typical use is to change color or label.
 
TTF_Font * fntAppLabel
 Default font for launch buttons (read-only!).