Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
File
gfx_gol.h
Syntax
void GFX_GOL_PanelParameterSet(uint16_t left, uint16_t top, uint16_t right, uint16_t
bottom, uint16_t radius, GFX_COLOR faceClr, GFX_COLOR embossLtClr, GFX_COLOR embossDkClr,
GFX_RESOURCE_HDR * pBitmap, GFX_FILL_STYLE fillStyle, uint16_t embossSize);
Returns
None.
Description
This function sets the parameters to draw a panel. Panel is not an object. It is a routine to draw a basic component of
objects. The actual drawing of the panel is performed by the GFX_GOL_PanelDraw(). After the parameters are set, call
GFX_GOL_PanelDraw() to render the panel. The panel is drawn using the following:
1. Panel width is determined by right - left.
2. Panel height is determined by top - bottom.
3. Panel radius - specifies if the panel will have a rounded edge. If zero then the panel will have sharp (cornered) edge.
4. If 2*radius = height = width, the panel is circular.
5. If the panel is drawn with an image, pBitmap should point to an image resource.
6. If the panel face is drawn with the fill style specified by fillStyle. When gradient fill is used, set the gradient colors using
GFX_GOL_PanelGradientParameterSet(). When alpha blending fill is used, set the alpha blending value using
GFX_GOL_PanelAlphaParameterSet().
Preconditions
None.
Example
None.
Parameters
Parameters Description
left defines the left most pixel of the panel.
top defines the top most pixel of the panel.
right defines the right most pixel of the panel.
bottom defines the bottom most pixel of the panel.
radius defines the radius of the rounded corner. A zero value will
result in a rectangular panel drawn.
faceClr the color used for the face of the panel.
embossLtClr the color used for the light emboss color for 3D effect.
embossDkClr the color used for the dark emboss color for 3D effect.
pBitmap pointer to the image resource of the panel.
fillStyle fill style use for the face of the panel.
embossSize when this is not zero, the embossLtClr and embossDkClr are
used to draw the 3D effect. When this is set to zero, there
will be no 3D effect.
Function
void GFX_GOL_PanelParameterSet(
uint16_t left,
uint16_t top,
uint16_t right,
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
319
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_gfx.pdf