Vault 7: Projects

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

Function
GFX_STATUS GFX_TextCharDraw(
GFX_XCHAR ch)
1.6.1.1.6.6 GFX_TextCursorPositionSet Function
This function sets the text cursor to a new position.
File
gfx_primitive.h
Syntax
GFX_STATUS GFX_TextCursorPositionSet(int16_t x, int16_t y);
Returns
Status of the text cursor position set. GFX_STATUS_SUCCESS - text cursor position set done. GFX_STATUS_FAILURE -
text cursor position set is not done.
Description
This function sets the text cursor to a new (x,y) position. Text cursor is used as a starting point of the character rendered by
the GFX_TextCharDraw() function.
If x and/or y does not lie on the frame buffer, then the behavior of GFX_TextCharDraw() function is undefined.
Preconditions
None.
Example
GFX_TextCursorPositionSet(10,10);
// write letter 'A' starting from 10, 10 position
GFX_TextCharDraw('A');
Parameters
Parameters Description
x new x coordinate position of the text cursor.
y new y coordinate position of the text cursor.
Function
GFX_STATUS GFX_TextCursorPositionSet(
int16_t x,
int16_t y)
1.6.1.1.6.7 GFX_TextCursorPositionXGet Function
This function returns the current x position of the text cursor.
File
gfx_primitive.h
Syntax
int16_t GFX_TextCursorPositionXGet();
Returns
The current text cursor x position.
Description
This function returns the current x position of the text cursor. Text cursor is used as a starting point of the line rendered by
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
102

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh