Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Preconditions
None.
Example
See GFX_LinePositionXGet().
Parameters
Parameters Description
x new x coordinate position of the line cursor.
y new y coordinate position of the line cursor.
Function
GFX_STATUS GFX_LinePositionSet(
uint16_t x,
uint16_t y)
1.6.1.1.2.4 GFX_LinePositionXGet Function
This function returns the current x position of the line cursor.
File
gfx_primitive.h
Syntax
int16_t GFX_LinePositionXGet();
Returns
The current line cursor x position.
Description
This function returns the current x 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
// implementation of the GFX_LineToRelativeDraw()
GFX_STATUS GFX_LineToRelativeDraw(
int16_t dX,
int16_t dY)
{
return (GFX_LineDraw( GFX_LinePositionXGet(),
GFX_LinePositionYGet(),
GFX_LinePositionXGet() + dX,
GFX_LinePositionYGet() + dY));
}
Function
int16_t GFX_LinePositionXGet()
1.6.1.1.2.5 GFX_LinePositionYGet Function
This function returns the current y position of the line cursor.
File
gfx_primitive.h
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
80
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf