Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
1.6.2.1.3 Digital Meter Object
Digital Meter is an object that can be used to display a value of a sampled variable. This object is ideal when fast refresh of
the value is needed. The object refreshes only the digits that needs to change.
Functions
Name Description
GFX_GOL_DigitalMeterActionGet This function evaluates the message from a user if the message will
affect the object or not.
GFX_GOL_DigitalMeterCreate This function creates a GFX_GOL_DIGITALMETER object with the
parameters given. It automatically attaches the new object into a global
linked list of objects and returns the address of the object.
GFX_GOL_DigitalMeterDecrement This function decrements the meter value by the delta value set.
GFX_GOL_DigitalMeterDraw This function renders the object on the screen based on the current state
of the object.
GFX_GOL_DigitalMeterIncrement This function increments the meter value by the delta value set.
GFX_GOL_DigitalMeterValueSet This function sets the value of the meter.
Macros
Name Description
GFX_GOL_DigitalMeterTextAlignmentGet This function returns the text alignment of the text string used by the
object.
GFX_GOL_DigitalMeterTextAlignmentSet This function sets the text alignment of the text string used by the object.
GFX_GOL_DigitalMeterValueGet This function returns the current value of the digital meter.
Description
Digital Meter is an object that can be used to display a value of a sampled variable. This object is ideal when fast refresh of
the value is needed. The object refreshes only the digits that needs to change.
Digital Meter supports only Touchscreen inputs, replying to the events with the pre-defined actions (see
GFX_GOL_DigitalMeterActionGet() for details). There is no default action set function in this object. Application can create
specific responses to the system action in the message callback function.
The DigitalMeter object is rendered using the assigned style scheme. The following figure illustrates the color assignments
for the digital meter.
1.6.2.1.3.1 GFX_GOL_DigitalMeterTextAlignmentGet Macro
This function returns the text alignment of the text string used by the object.
File
gfx_gol_digital_meter.h
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
177
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf