HTMLPRINTER  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

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