eGUI alias D4D  Release 3.0
Reference Manual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
d4d_gauge.h File Reference
This graph shows which files directly or indirectly include this file:

Macros

#define D4D_GAUGE_HUB_RADIUS
 This is size of gauge hub in pixels. If not defined, it sets to 3 pixel as a default. More...
 
#define D4D_COLOR_GAUG_HUB
 This is default gauge hub color definition. If not defined, it sets to D4D_COLOR_DARK_RED as a default. More...
 
#define D4D_COLOR_GAUG_POINTER
 This is default gauge pointer color definition. If not defined, it sets to D4D_COLOR_DARK_BLUE as a default. More...
 
#define D4D_GAUGE_F_REDRAW_TEXT
 This flags force the redrawing gauge text after each redraw of new value. This is usable in case that the text is placed in pointer draeing area. More...
 
#define D4D_GAUGE_F_HUB
 This flag enables draw of the HUB. More...
 
#define D4D_GAUGE_F_THICK_POINTER
 This flag switch the pointer to thick line. More...
 
#define D4D_GAUGE_F_DEFAULT
 This is gauge init flags. If not defined, it sets to (D4D_OBJECT_F_VISIBLE | D4D_OBJECT_F_ENABLED | D4D_OBJECT_F_TABSTOP | D4D_OBJECT_F_TOUCHENABLE | D4D_GAUGE_F_REDRAW_TEXT | D4D_GAUGE_F_HUB) as a default. More...
 
#define D4D_GAUGE_TXT_PRTY_DEFAULT
 This is gauge init text properties. If not defined, it sets to (D4D_ALIGN_H_CENTER_MASK | D4D_ALIGN_V_CENTER_MASK) as a default. More...
 
#define D4D_GAUGE_FNT_PRTY_DEFAULT
 This is gauge init font properties. If not defined, it sets to ( 0 ) as a default. More...
 
#define D4D_GET_GAUGE(pObj)
 
#define _D4D_DECLARE_GAUGE(type, name, text, x, y, cx, cy, radius, pMargin, pRelations, tx, ty, kx, ky, plen, flags, pBmp, pScheme, fontId, pUser, onvalch, pOnUsrMsg)
 Macro that create the Gauge object structure in memory including all substructures. More...
 
#define D4D_DECLARE_GAUGE(name, text, x, y, cx, cy, tx, ty, kx, ky, plen, flags, pBmp, pScheme, fontId, pUser, onvalch, pOnUsrMsg)
 Macro that create the Gauge object structure in memory including all substructures with restricted count of parameters to simplify definition. More...
 
#define D4D_DECLARE_STD_GAUGE(name, text, x, y, cx, cy, tx, ty, kx, ky, plen, pBmp, fontId, onvalch)
 Macro that create the Gauge object structure in memory including all substructures with restricted count of parameters to simplify definition The missing parameters are replaced by default values. More...
 
#define D4D_DECLARE_RGAUGE(name, text, x, y, cx, cy, radius, tx, ty, kx, ky, plen, flags, pBmp, pScheme, fontId, pUser, onvalch, pOnUsrMsg)
 Macro that create the rounded Gauge object structure in memory including all substructures with restricted count of parameters to simplify definition. More...
 
#define D4D_DECLARE_STD_RGAUGE(name, text, x, y, cx, cy, radius, tx, ty, kx, ky, plen, pBmp, fontId, onvalch)
 Macro that create the rounded Gauge object structure in memory including all substructures with restricted count of parameters to simplify definition The missing parameters are replaced by default values. More...
 
#define D4D_DECLARE_GAUGE_INRAM(name, text, x, y, cx, cy, tx, ty, kx, ky, plen, flags, pBmp, pScheme, fontId, pUser, onvalch, pOnUsrMsg)
 Same as D4D_DECLARE_GAUGE, but is created in RAM instead of the ROM memory. More...
 
#define D4D_DECLARE_STD_GAUGE_INRAM(name, text, x, y, cx, cy, tx, ty, kx, ky, plen, pBmp, fontId, onvalch)
 Same as D4D_DECLARE_STD_GAUGE, but is created in RAM instead of the ROM memory. More...
 
#define D4D_DECLARE_RGAUGE_INRAM(name, text, x, y, cx, cy, radius, tx, ty, kx, ky, plen, flags, pBmp, pScheme, fontId, pUser, onvalch, pOnUsrMsg)
 Same as D4D_DECLARE_RGAUGE, but is created in RAM instead of the ROM memory. More...
 
#define D4D_DECLARE_STD_RGAUGE_INRAM(name, text, x, y, cx, cy, radius, tx, ty, kx, ky, plen, pBmp, fontId, onvalch)
 Same as D4D_DECLARE_STD_RGAUGE, but is created in RAM instead of the ROM memory. More...
 
#define D4D_GaugeSetText
 

Typedefs

typedef void(* D4D_GAUGE_ON_CHANGE )(D4D_OBJECT *pThis)
 Type definition of gauge on change callback function. More...
 
typedef sByte D4D_GAUGE_VALUE
 The gauge value variable, is used to hadle inputs of gauga functions API. More...
 
typedef Byte D4D_GAUGE_ANGLE
 The gauge angle variable, is used to set up limits of gauge angle <0-FF == 0° - 359°>. More...
 

Functions

void D4D_GaugSetValue (D4D_OBJECT_PTR pThis, D4D_GAUGE_VALUE value)
 The function sets the new value of gauge. More...
 
D4D_GAUGE_VALUE D4D_GaugGetValue (D4D_OBJECT_PTR pThis)
 The function gets the current value of gauge. More...
 
void D4D_GaugSetLimits (D4D_OBJECT_PTR pThis, const D4D_GAUGE_LIMITS *pLimits)
 The function sets the new limits values of gauge. More...
 
void D4D_GaugGetLimits (D4D_OBJECT_PTR pThis, D4D_GAUGE_LIMITS *pLimits)
 The function gets the values of gauge limit structure. More...
 
void D4D_GaugSetDir (D4D_OBJECT_PTR pThis, D4D_TREND direction)
 The function set the trend/direction of gauge. More...
 
D4D_TREND D4D_GaugGetDir (D4D_OBJECT_PTR pThis)
 The function gets the trend/direction of gauge object. More...
 

Variables

const D4D_OBJECT_SYS_FUNCTION d4d_gaugeSysFunc
 

Detailed Description

D4D Driver gauge object header file.

Author
Petr Gargulak
Version
0.0.48.0
Date
Jan-14-2014

Definition in file d4d_gauge.h.

Macro Definition Documentation

#define D4D_GaugeSetText

Definition at line 401 of file d4d_gauge.h.

#define D4D_GET_GAUGE (   pObj)

Definition at line 181 of file d4d_gauge.h.

Variable Documentation

const D4D_OBJECT_SYS_FUNCTION d4d_gaugeSysFunc

Definition at line 55 of file d4d_gauge.c.