µGFX  2.9
version 2.9
Renderings

Detailed Description

Built-in rendering functions for the label widget.

These function may be passed to gwinSetCustomDraw() to get different label drawing styles.

Note
In your custom label drawing function you may optionally call these standard functions and then draw your extra details on top.
These custom drawing routines don't have to worry about setting clipping as the framework sets clipping to the object window prior to calling these routines.

Functions

void gwinLabelDrawJustified (GWidgetObject *gw, void *param)
 Renders a label with the text justified based on the parameter. More...
 
void gwinLabelDrawJustifiedLeft (GWidgetObject *gw, void *param)
 Renders a label with the text left jestified. More...
 
void gwinLabelDrawJustifiedRight (GWidgetObject *gw, void *param)
 Renders a label with the text right jestified. More...
 
void gwinLabelDrawJustifiedCenter (GWidgetObject *gw, void *param)
 Renders a label with the text center jestified. More...
 

Function Documentation

◆ gwinLabelDrawJustified()

void gwinLabelDrawJustified ( GWidgetObject gw,
void *  param 
)

Renders a label with the text justified based on the parameter.

Parameters
[in]gwThe widget object (must be a label object)
[in]paramA parameter passed in from the user. Must be of type gJustify.
Function Class: Normal API, this function can be invoked by regular system threads.

◆ gwinLabelDrawJustifiedCenter()

void gwinLabelDrawJustifiedCenter ( GWidgetObject gw,
void *  param 
)

Renders a label with the text center jestified.

Parameters
[in]gwThe widget object (must be a label object)
[in]paramA parameter passed in from the user. Ignored by this function.
Function Class: Normal API, this function can be invoked by regular system threads.

◆ gwinLabelDrawJustifiedLeft()

void gwinLabelDrawJustifiedLeft ( GWidgetObject gw,
void *  param 
)

Renders a label with the text left jestified.

Note
This is the default rendering function.
Parameters
[in]gwThe widget object (must be a label object)
[in]paramA parameter passed in from the user. Ignored by this function.
Function Class: Normal API, this function can be invoked by regular system threads.

◆ gwinLabelDrawJustifiedRight()

void gwinLabelDrawJustifiedRight ( GWidgetObject gw,
void *  param 
)

Renders a label with the text right jestified.

Parameters
[in]gwThe widget object (must be a label object)
[in]paramA parameter passed in from the user. Ignored by this function.
Function Class: Normal API, this function can be invoked by regular system threads.