C
typedef struct { OBJ_HEADER hdr; XCHAR * pText; SHORT value; SHORT minValue; SHORT maxValue; SHORT xCenter; SHORT yCenter; SHORT radius; SHORT xPos; SHORT yPos; GFX_COLOR arcColor6; GFX_COLOR arcColor5; GFX_COLOR arcColor4; GFX_COLOR arcColor3; GFX_COLOR arcColor2; GFX_COLOR arcColor1; void * pTitleFont; void * pValueFont; } METER;
Overview
Defines the parameters required for a meter Object. Depending on the type selected the meter is drawn with the defined shape parameters and values set on the given fields.
Members
Members |
Description |
OBJ_HEADER hdr; |
Generic header for all Objects (see OBJ_HEADER). |
XCHAR * pText; |
The text label of the meter. |
SHORT value; |
Current value of the meter. |
SHORT minValue; |
minimum value the meter can display |
SHORT maxValue; |
maximum value the meter can display (range is maxValue - minValue) |
SHORT xCenter; |
The x coordinate center position. This is computed automatically. |
SHORT yCenter; |
The y coordinate center position. This is computed automatically. |
SHORT radius; |
Radius of the meter, also defines the needle length. |
SHORT xPos; |
The current x position of the needle. This is computed automatically. |
SHORT yPos; |
The current y position of the needle. This is computed automatically. |
GFX_COLOR arcColor6; |
Arc 6 color parameter. |
GFX_COLOR arcColor5; |
Arc 5 color parameter |
GFX_COLOR arcColor4; |
Arc 4 color parameter |
GFX_COLOR arcColor3; |
Arc 3 color parameter |
GFX_COLOR arcColor2; |
Arc 2 color parameter |
GFX_COLOR arcColor1; |
Arc 1 color parameter |
void * pTitleFont; |
Pointer to the font used in the title of the meter |
void * pValueFont; |
Pointer to the font used in the current reading (if displayed) of the meter |