HTMLGUI  2.13.5-1
gui.h File Reference
#include <stdarg.h>
#include <pthread.h>
#include "jsobject.h"
#include "timestamp.h"
#include "gui_error.h"
#include "types.h"
#include "gui_template.h"

Data Structures

struct  UIBacklight
 
class  UICBData
 
struct  UIErrorEntry
 
struct  UIRegion
 
struct  UIStatistics
 

Typedefs

typedef void(* uiAsyncCallback) (void *data, UICBType type, UICBData &uidata)
 
typedef bool(* uiCallback) (void *data)
 

Enumerations

enum  { UI_REGION_DEFAULT =0 }
 
enum  { UI_REGION_FLAG_HIDDEN =1 }
 
enum  {
  UI_TRANS_UP =0x1, UI_TRANS_RIGHT =0x2, UI_TRANS_DOWN =0x4, UI_TRANS_LEFT =0x8,
  UI_TRANS_DIRECTION_MASK =0xf, UI_TRANS_EASE_IN =0x10, UI_TRANS_EASE_OUT =0x20, UI_TRANS_EASE_INOUT =0x30,
  UI_TRANS_EASE_MASK =0x30, UI_TRANS_NONE =0x000, UI_TRANS_SLIDE =0x100, UI_TRANS_SLIDEON =0x200,
  UI_TRANS_SWAP =0x300, UI_TRANS_CROSSFADE =0x400, UI_TRANS_TYPE_MASK =0xfff00
}
 
enum  UICBType {
  UI_CB_RESULT, UI_CB_UPDATE, UI_CB_LOAD, UI_CB_ERROR_LIST,
  UI_CB_STATISTICS
}
 
enum  UIEdge { UI_EDGE_TOP, UI_EDGE_RIGHT, UI_EDGE_BOTTOM, UI_EDGE_LEFT }
 
enum  UILEDShape { UI_SHAPE_RECTANGLE, UI_SHAPE_ELLIPSE }
 
enum  UIPropertyInt {
  UI_PROP_TIMEOUT =0, UI_PROP_PASSWORD_CHAR, UI_PROP_DEFAULT_FONT_SIZE, UI_PROP_PIN_AUTO_ENTER,
  UI_PROP_PIN_CLEAR_ALL, UI_PROP_PIN_BYPASS_KEY, UI_PROP_PIN_ALGORITHM, UI_PROP_PIN_INTERCHAR_TIMEOUT,
  UI_PROP_PASSWORD_SHOW_CHAR, UI_PROP_KEEP_DISPLAY, UI_PROP_UPDATE_EVENTS, UI_PROP_CIRCULAR_MENU,
  UI_PROP_TOUCH_ACTION_BEEP, UI_PROP_STATISTICS, UI_PROP_RESTRICTED, UI_PROP_CP_APP_MODE,
  UI_PROP_SCROLL_COLOR, UI_PROP_INPUT_ERROR_BEEP, UI_DEVICE_WIDTH =1000, UI_DEVICE_HEIGHT,
  UI_DEVICE_COLOR_DEPTH, UI_DEVICE_SUPPORTS_TOUCH , UI_DEVICE_SUPPORTS_AUDIO, UI_DEVICE_SUPPORTS_VIDEO,
  UI_DEVICE_SUPPORTS_SIGCAP, UI_DEVICE_SUPPORTS_COLOR_DISPLAY, UI_DEVICE_HAS_CAP_TOUCH_KEYPAD
}
 
enum  UIPropertyString {
  UI_PROP_DECIMAL_SEPARATOR =2000, UI_PROP_THOUSANDS_SEPARATOR, UI_PROP_DEFAULT_FONT, UI_PROP_RESOURCE_PATH,
  UI_PROP_FILE_PREFIX, UI_PROP_KEYMAP, UI_PROP_CSS, UI_PROP_RESOURCE_DEFAULT_PATH,
  UI_PROP_GUI_EXTENSIONS, UI_PROP_HTTP_HEADER_FIELDS, UI_PROP_CP_APP_DIR, UI_PROP_LANGUAGE,
  UI_PROP_JS_ROOT, UI_PROP_PRINT_ROOT, UI_PROP_PRINT_CSS, UI_DEVICE_MODEL =3000
}
 

Functions

const char * gui_GetSvcVersion (int display)
 
const char * gui_GetVersion ()
 
int uiConfigLEDs (UILEDShape shape, int width, int height, unsigned off_rgba, unsigned on0_rgba, unsigned on1_rgba, unsigned on2_rgba, unsigned on3_rgba)
 
int uiConfigLEDs (const char *filename)
 
std::string uiCurrentRegionPath (int display)
 
int uiDisplay (int display, int region_id, const std::string &text)
 
int uiDisplayCount ()
 
int uiEnterRegion (int display, int region_id)
 
const std::vector< UIErrorEntry > & uiErrorList ()
 
int uiGetBacklightConfig (int display, std::vector< UIBacklight > &levels)
 
int uiGetBacklightLevel (int display, int &level)
 
std::string uiGetCatalog (int display)
 
int uiGetHtml (int display, const std::map< std::string, std::string > &value, const std::string &text, std::string &html)
 
int uiGetHtmlURL (int display, const std::map< std::string, std::string > &value, const std::string &url, std::string &html)
 
int uiGetIdleTime (int display=0)
 
int uiGetLayout (int display, std::vector< UIRegion > &region)
 
bool uiGetLocalProperties ()
 
unsigned uiGetLogMask (void)
 
int uiGetPropertyInt (int display, enum UIPropertyInt property, int *value)
 
int uiGetPropertyString (int display, enum UIPropertyString property, char *value, int len)
 
int uiGetPropertyString (int display, enum UIPropertyString property, std::string &value)
 
std::string uiGetTerminalResourceDir (int display, const std::string &www_path)
 
std::string uiGetText (int display, const std::string &name, const std::string &deflt="")
 
std::string uiGetURLPath (int display, const std::string &url)
 
int uiHideLEDArea ()
 
int uiHTML2PNG (const char *filename, int width, int height, const std::map< std::string, std::string > &value, const std::string &text)
 
int uiHTML2PNGData (std::vector< unsigned char > &data, int width, int height, const std::map< std::string, std::string > &value, const std::string &text)
 
int uiInvoke (int display, int region_id, stringmap &value, const std::string &text, uiCallback cb=0, void *cbdata=0)
 
int uiInvokeAsync (int display, int region_id, const stringmap &value, const std::string &text, uiAsyncCallback cb=0, void *data=0)
 
int uiInvokeCancel (int txn_id, std::map< std::string, std::string > &value)
 
int uiInvokeCancel (int txn_id)
 
int uiInvokeCancelAsync (int txn_id)
 
int uiInvokeTemplate (int display, int region_id, stringmap &value, const std::string &template_name, const std::string &text, uiCallback cb=0, void *cbdata=0)
 
int uiInvokeTemplateAsync (int display, int region_id, const stringmap &value, const std::string &template_name, const std::string &text, uiAsyncCallback cb=0, void *data=0)
 
int uiInvokeURL (int display, int region_id, stringmap &value, const char *url, uiCallback cb=0, void *cbdata=0)
 
int uiInvokeURL (int display, int region_id, stringmap &value, const std::string &url, uiCallback cb=0, void *cbdata=0)
 
int uiInvokeURLAsync (int display, int region_id, const stringmap &value, const char *url, uiAsyncCallback cb=0, void *data=0)
 
int uiInvokeURLAsync (int display, int region_id, const stringmap &value, const std::string &url, uiAsyncCallback cb=0, void *data=0)
 
int uiInvokeURLDetached (int display, int region_id, const char *url)
 
int uiInvokeWait (int txn_id, std::map< std::string, std::string > &value, int timeout_msec=-1)
 
int uiInvokeWait (int txn_id, int timeout_msec=-1)
 
int uiLayout (int display, const UIRegion *region, int regcnt, const UIRegion *oldreg, int oldregcnt)
 
int uiLayout (int display, const UIRegion *region, int regcnt)
 
int uiLayout (const UIRegion *region, int regcnt)
 
int uiLayout (int display, const std::vector< UIRegion > &reg)
 
int uiLayout (int display, const std::vector< UIRegion > &reg, const std::vector< UIRegion > &oldreg)
 
int uiLayout (int display, const char *name)
 
int uiLeaveRegion (int display)
 
const char * uiLibVersion ()
 
std::string uiPrint (const char *format,...)
 
std::string uiPrintV (const char *format, va_list va)
 
void uiReadConfig (int display)
 
int uiScreenshotPNG (int display, const char *filename)
 
int uiScreenshotPNGData (int display, std::vector< unsigned char > &data)
 
std::string uiScriptError ()
 
int uiSetBacklightConfig (int display, const std::vector< UIBacklight > &levels)
 
int uiSetBacklightLevel (int display, int level)
 
int uiSetCatalog (int display, const std::string &filename)
 
int uiSetCurrentRegionPath (int display, const std::string &path)
 
int uiSetLED (unsigned led, bool state)
 
void uiSetLocalProperties (bool local)
 
void uiSetLogMask (unsigned mask)
 
int uiSetPropertyInt (int display, enum UIPropertyInt property, int value)
 
int uiSetPropertyString (int display, enum UIPropertyString property, const char *value)
 
int uiSetPropertyString (int display, enum UIPropertyString property, const std::string &value)
 
int uiSetTransition (int display, int region_id, unsigned transtype, int duration_ms)
 
int uiShowLEDArea (UIEdge edge, int width, int height, unsigned bg_rgba)
 
const UIStatisticsuiStatistics ()
 
int uiURL2PNG (const char *filename, int width, int height, const std::map< std::string, std::string > &value, const std::string &url)
 
int uiURL2PNGData (std::vector< unsigned char > &data, int width, int height, const std::map< std::string, std::string > &value, const std::string &url)