Download uC/GUI user manual

Transcript
596
CHAPTER 16
Window Objects (Widgets)
Prototype
const GUI_FONT* TEXT_GetDefaultFont(void);
Return value
Pointer to the default font used for text widgets.
TEXT_SetBkColor()
Description
Sets the background color of the text widget.
Prototype
void TEXT_SetBkColor(TEXT_Handle hObj, GUI_COLOR Color);
Parameter
Meaning
hObj
Handle of text widget.
Color
Color to be used for the background.
(range 0x000000 and 0xFFFFFF or a valid color define)
GUI_INVALID_COLOR to make background transparent
Additional information
The background of this widget can either be filled with any available color or transparent. If a valid RGB color is specified, the background is filled with the color, otherwise the background (typically the contents of the parent window) is visible. If the
background is transparent, the widget is treated as transparent window, otherwise as
non-transparent window. Note that using a background color allows more efficient
(faster) rendering.
TEXT_SetDefaultFont()
Description
Sets the default font used for text widgets.
Prototype
void TEXT_SetDefaultFont(const GUI_FONT* pFont);
Parameter
pFont
Meaning
Pointer to the font to be set as default.
TEXT_SetDefaultTextColor()
Description
Sets the default text color used for text widgets.
Prototype
void TEXT_SetDefaultTextColor(GUI_COLOR Color);
Parameter
Color
Meaning
Color to be used.
User's & reference manual for μC/GUI
© 2002-2006 Micrium Technologies Corporation