# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 108
- 109
- 110
- 111
- 112
…
- 373
- 374

1.6.1.1.7.3 GFX_FillStyleGet Function
Return the fill style used when rendering filled shapes.
File
gfx_primitive.h
Syntax
GFX_FILL_STYLE GFX_FillStyleGet();
Returns
The current fill style used (see GFX_FILL_STYLE).
Description
This function returns the fill style used (see GFX_FILL_STYLE) when rendering filled shapes.
Preconditions
None.
Example
None.
Function
GFX_FILL_STYLE GFX_FillStyleGet(void)
1.6.1.1.7.4 GFX_FillStyleSet Function
Set the fill style to be used when rendering filled shapes.
File
gfx_primitive.h
Syntax
GFX_STATUS GFX_FillStyleSet(GFX_FILL_STYLE style);
Returns
Status of the fill style set. GFX_STATUS_SUCCESS - fill style set done. GFX_STATUS_FAILURE - fill style set failed.
Description
This function sets the fill style to be used (see GFX_FILL_STYLE) when rendering filled shapes. All calls to the following:
• GFX_RectangleFillDraw()
• GFX_RectangleRoundFillDraw()
• GFX_CircleFillDraw()
will use the fill style set by this function.
Preconditions
None.
Example
GFX_GradientColorSet(BRIGHTRED, BRIGHTBLUE);
GFX_FillStyleSet(GFX_FILL_STYLE_GRADIENT_DOWN);
GFX_RectangleFillDraw( 10, 10, 100, 100);
GFX_FillStyleSet(GFX_FILL_STYLE_GRADIENT_UP);
GFX_RectangleFillDraw( 110, 10, 200, 100);
GFX_FillStyleSet(GFX_FILL_STYLE_GRADIENT_RIGHT);
GFX_RectangleFillDraw( 210, 10, 300, 100);
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
110

- 1
- 2
…
- 108
- 109
- 110
- 111
- 112
…
- 373
- 374