Vault 7: Projects

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

GFX_TextStringDraw() parameters sets the location where the string will be rendered. The length parameter allows
versatility in rendering. When this parameter is set to 0, the rendering will terminate when the string terminator is
encountered. When the length is non-zero, the rendering can be performed with the length as the terminating condition.
This allows applications to render a portion of a longer string.
Multiple lines of strings are also supported. The string can contain the new line characters and rendering results in multiple
lines of text. The use GFX_TextStringDraw() will always render strings left aligned. To render text with alignment use
GFX_TextStringBoxDraw().
Formatted String Rendering
To render string with formatting:
1. Set the color (GFX_ColorSet())
2. Set the font resource to use (GFX_FontSet())
3. Render the string (GFX_TextStringBoxDraw())
Parameters of GFX_TextStringBoxDraw() determines the rectangular area where the string will be rendered. The alignment
(see GFX_ALIGNMENT) specifies how the text will be aligned in the defined text area. The termination of the rendering is
the same as the GFX_TextStringDraw() where the length parameter can be used to determine how many characters will
be rendered.
Added to these rendering functions, support functions are also provided for versatility:
GFX_TextStringWidthGet() - Use this to get the length of a string in pixels.
1.4 Using The Library MLA - Graphics Library Help How the Library Works
54

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh