# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 138
- 139
- 140
- 141
- 142
…
- 373
- 374

File
gfx_types_macros.h
Syntax
typedef enum {
GFX_BACKGROUND_NONE,
GFX_BACKGROUND_COLOR,
GFX_BACKGROUND_IMAGE,
GFX_BACKGROUND_DISPLAY_BUFFER
} GFX_BACKGROUND_TYPE;
Members
Members Description
GFX_BACKGROUND_NONE No background information set.
GFX_BACKGROUND_COLOR Background is set to a color.
GFX_BACKGROUND_IMAGE Background is set to an image.
GFX_BACKGROUND_DISPLAY_BUFFER Background is set to the current content of the display buffer.
This requires support of GFX_PixelArrayGet().
Description
Typedef: GFX_FILL_STYLE
Defines the types of background information. Knowing the background information allows easier refresh of an area on the
display buffer.
Remarks
None.
1.6.1.2.4 GFX_DOUBLE_BUFFERING_MODE Type
Structure used for double buffering management.
File
gfx_types_macros.h
Syntax
typedef struct {
GFX_FEATURE_STATUS gfxDoubleBufferFeature;
GFX_FEATURE_STATUS gfxDoubleBufferRequestSync;
GFX_FEATURE_STATUS gfxDoubleBufferFullSync;
GFX_RECTANGULAR_AREA gfxDoubleBufferAreas[GFX_MAX_INVALIDATE_AREAS];
uint16_t gfxUnsyncedAreaCount;
} GFX_DOUBLE_BUFFERING_MODE;
Members
Members Description
GFX_FEATURE_STATUS gfxDoubleBufferFeature; The status of the double buffering feature.
GFX_FEATURE_STATUS gfxDoubleBufferRequestSync; The status of the request for synchronization.
GFX_FEATURE_STATUS gfxDoubleBufferFullSync; The status of the full synchronization request.
GFX_RECTANGULAR_AREA
gfxDoubleBufferAreas[GFX_MAX_INVALIDATE_AREAS];
The array of rectangular areas that needs synchronization.
uint16_t gfxUnsyncedAreaCount; The current count of unsynchronized areas.
Description
Typedef: GFX_RECTANGULAR_AREA
Structure describing the double buffering states of the frame and draw buffer. This saves the current states of the feature for
management by the graphics library. Double buffering is only available to selected configurations.
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
140

- 1
- 2
…
- 138
- 139
- 140
- 141
- 142
…
- 373
- 374