# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 326
- 327
- 328
- 329
- 330
…
- 373
- 374

uint32_t Cvalue;
uint32_t Pvalue;
uint8_t NoOfDigits;
uint8_t DotPos;
GFX_ALIGNMENT alignment;
} GFX_GOL_DIGITALMETER;
Members
Members Description
GFX_GOL_OBJ_HEADER hdr; Generic header for all Objects (see GFX_OBJ_HEADER).
uint16_t textHeight; Pre-computed text height
uint32_t Cvalue; Current value
uint32_t Pvalue; Previous value
uint8_t NoOfDigits; Number of digits to be displayed
uint8_t DotPos; Position of decimal point
GFX_ALIGNMENT alignment; text alignment
Description
Typedef: GFX_GOL_DIGITALMETER
Defines the parameters required for a Digital Meter Object. Depending on the type selected the meter is drawn with the
defined shape parameters and values set on the given fields.
Remarks
None.
1.6.2.7.7 GFX_GOL_DIGITALMETER_STATE Type
Specifies the different states of the Digital Meter object.
File
gfx_gol_digital_meter.h
Syntax
typedef enum {
GFX_GOL_DIGITALMETER_DISABLED_STATE,
GFX_GOL_DIGITALMETER_FRAME_STATE,
GFX_GOL_DIGITALMETER_DRAW_STATE,
GFX_GOL_DIGITALMETER_UPDATE_STATE,
GFX_GOL_DIGITALMETER_HIDE_STATE
} GFX_GOL_DIGITALMETER_STATE;
Members
Members Description
GFX_GOL_DIGITALMETER_DISABLED_STATE Property bit for disabled state.
GFX_GOL_DIGITALMETER_FRAME_STATE Property bit to indicate frame is displayed.
GFX_GOL_DIGITALMETER_DRAW_STATE Draw bit to indicate object must be redrawn.
GFX_GOL_DIGITALMETER_UPDATE_STATE Draw bit to indicate that only text must be redrawn.
GFX_GOL_DIGITALMETER_HIDE_STATE Draw bit to indicate the object must be removed from the
screen.
Description
Typedef: GFX_GOL_DIGITALMETER_STATE
This enumeration specifies the different states of the Digital Meter object used in the library.
For the Property State bits, more than one of these values may be OR'd together to create a complete property state.
For the Draw State bits, hide draw bit has higher priority than the draw bit. Any of these two can be combined with other
draw bits to create a complete draw state.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
328

- 1
- 2
…
- 326
- 327
- 328
- 329
- 330
…
- 373
- 374