|
Muteki
EABI code execution on Besta® RTOS devices.
|
Static text field (single-line label) widget constructor and methods. More...
#include "../types/static.h"Go to the source code of this file.
Functions | |
| ui_static_t * | CreateStatic (unsigned short tag, short x0, short y0, short x1, short y1, const UTF16 *text, unsigned short font_type, unsigned int text_color, unsigned int text_options, unsigned int style_options) |
| Create a static text field widget. | |
| static unsigned int | ui_static_text_options (unsigned short text_flags, short left_inset) |
| Format the text_options parameter of the CreateStatic() syscall. | |
Static text field (single-line label) widget constructor and methods.
Static text fields act as single-line labels on a deskbox. The user can customize the look of the label by modifying its parameters. The string rendering is internally delegated to WriteAlignString().
A typical declaration is as follows:
|
extern |
Create a static text field widget.
If y1 is less than y0 , it defaults to y0 + GetFontHeight( font_type ) + 6, with the exception of when font_type is 0xffff, then it will simply be y0 + 6. Note the absence of the font width here.
| tag | Component tag. Can be used to distinguish components under some circumstances (like when sharing a callback with another component, or looking up an item with GetDeskItem()). Does not need to be unique. Usually will be set by AllocBlock() after the memory was allocated. |
| x0 | X coordinate of the top-left corner, in pixels (inclusive). |
| y0 | Y coordinate of the top-left corner, in pixels (inclusive). |
| x1 | X coordinate of the bottom-right corner, in pixels (inclusive). |
| y1 | Y coordinate of the bottom-right corner, in pixels (inclusive). |
| text | Label text. |
| font_type | Font type, or 0xffff to use the default font. |
| text_color | Text color. |
| text_options | Text options. |
| style_options | Widget style options. |
text_options . style_options .
|
inlinestatic |
Format the text_options parameter of the CreateStatic() syscall.
| text_flags | Flags accepted by WriteAlignString(). |
| left_inset | Extra left inset in number of pixels. |