# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 77
- 78
- 79
- 80
- 81
…
- 373
- 374

Syntax
GFX_STATUS GFX_LinePositionRelativeSet(int16_t x, int16_t y);
Returns
Status of the relative line position set. GFX_STATUS_SUCCESS - relative line position set done. GFX_STATUS_FAILURE -
relative line position set not done.
Description
This function sets the line cursor to a new (x,y) position relative to the current cursor position. The new position is calculated
by (x+dX, y + dY).
Line cursor is used as a starting point of the line rendered by the GFX_LineToDraw() and GFX_LineToRelativeDraw()
functions. Note that the parameters dX and dY are signed integers. This allows the new line cursor position to be placed to
any direction from the current line cursor position.
If (x+dX) and/or (y+dY) results in a position that is not on the frame buffer, then the behavior of GFX_LineToDraw() and
GFX_LineToRelativeDraw() functions are undefined. If color is not set, before this function is called, the output is undefined.
Preconditions
None.
Example
See GFX_LineToDraw().
Parameters
Parameters Description
dX the offset for the x position that will define the new
x-coordinate position of the line cursor.
dY the offset for the y position that will define the new
y-coordinate position of the line cursor.
Function
GFX_STATUS GFX_LinePositionRelativeSet(
int16_t dX,
int16_t dY)
1.6.1.1.2.3 GFX_LinePositionSet Function
This function sets the line cursor to a new position.
File
gfx_primitive.h
Syntax
GFX_STATUS GFX_LinePositionSet(uint16_t x, uint16_t y);
Returns
Status of the line position set. GFX_STATUS_SUCCESS - line position set done. GFX_STATUS_FAILURE - line position
set not done.
Description
This function sets the line cursor to a new (x,y) position. Line cursor is used as a starting point of the line rendered by the
GFX_LineToDraw() and GFX_LineToRelativeDraw() functions.
If x and/or y does not lie on the frame buffer, then the behavior of GFX_LineToDraw() and GFX_LineToRelativeDraw()
functions are undefined.
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
79

- 1
- 2
…
- 77
- 78
- 79
- 80
- 81
…
- 373
- 374