Vault 7: Projects

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

status = GFX_RectangleFillDraw(10, 110, 100, 200);
// render a plain RED rounded rectangle
GFX_FillStyleSet(GFX_FILL_STYLE_COLOR);
GFX_ColorSet(RED);
status = GFX_RectangleFillDraw(10, 110, 100, 200);
Parameters
Parameters Description
left defines the left most pixel of the shape.
top defines the top most pixel of the shape.
right defines the right most pixel of the shape.
bottom defines the bottom most pixel of the shape.
Function
GFX_STATUS GFX_RectangleFillDraw(
uint16_t left,
uint16_t top,
uint16_t right,
uint16_t bottom)
1.6.1.1.4.4 GFX_RectangleRoundFillDraw Function
This function renders a filled rectangular shape with round corners using the currently set fill style and colors.
File
gfx_primitive.h
Syntax
GFX_STATUS GFX_RectangleRoundFillDraw(uint16_t left, uint16_t top, uint16_t right, uint16_t
bottom, uint16_t radius);
Returns
Status of the rectangle rendering. GFX_STATUS_SUCCESS - rectangle fill rendering done. GFX_STATUS_FAILURE -
rectangle fill rendering is not done.
Description
This function renders a filled rounded rectangular shape with the currently set fill style (see GFX_FILL_STYLE) with the
given left, top, right, bottom and radius parameters to define the shape dimension. The shape is rendered depending on the
fill style. If a flat color is used, color must be set (see GFX_ColorSet()) before calling this function. If gradient color is used,
gradient start and end color must be set (see GFX_GradientColorSet()) before calling this function. After the fill style and
colors are set, multiple calls to this function can be performed.
When left = right and top = bottom, with radius > 0, a circular object is drawn. When left < right and top < bottom and radius
= 0, a rectangular object is drawn.
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
91

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh