Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Syntax
int16_t GFX_LinePositionYGet();
Returns
The current line cursor y position.
Description
This function returns the current y position of the line cursor. Line cursor is used as a starting point of the line rendered by
the GFX_LineToDraw() and GFX_LineToRelativeDraw() functions.
Preconditions
None.
Example
See GFX_LinePositionXGet().
Function
int16_t GFX_LinePositionYGet()
1.6.1.1.2.6 GFX_LineToDraw Function
This function renders a line from current line cursor position (x,y) to (x2,y2) using the currently set line style (see
GFX_LineStyleSet()).
File
gfx_primitive.h
Syntax
GFX_STATUS GFX_LineToDraw(int16_t x2, int16_t y2);
Returns
Status of the line rendering. GFX_STATUS_SUCCESS - line rendering done. GFX_STATUS_FAILURE - line rendering is
not done.
Description
This function renders a line from current line cursor position (x,y) to (x2,y2) using the currently set line style set by
GFX_LineStyleSet(). The color used is the color set by the last call to GFX_ColorSet().
If x2 and/or y2 does not lie on the frame buffer, then the behavior is undefined. If color is not set, before this function is
called, the output is undefined.
Preconditions
Color must be set by GFX_ColorSet(). Line style must be set by GFX_LineStyleSet().
Example
GFX_ColorSet(BRIGHTRED);
GFX_LineStyleSet(GFX_LINE_STYLE_THICK_DOTTED);
GFX_LinePositionSet(100, 100);
GFX_LineToDraw(100, 10);
GFX_LinePositionRelativeSet(-90, 0);
GFX_LineToDraw(100, 10);
GFX_LinePositionRelativeSet( 0, 90);
GFX_LineToDraw( 10, 100);
GFX_LinePositionRelativeSet( 90,-90);
GFX_LineToDraw( 10, 100);
GFX_LinePositionRelativeSet( 0,-90);
GFX_LineToDraw(100, 100);
GFX_LinePositionRelativeSet( -90, 0);
GFX_LineToDraw( 10, 10);
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
81
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf