Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
static.h
Go to the documentation of this file.
1/*
2 * Copyright 2026 dogtopus
3 * SPDX-License-Identifier: MIT
4 */
5
29
30#ifndef __MUTEKI_UI_WIDGETS_STATIC_H__
31#define __MUTEKI_UI_WIDGETS_STATIC_H__
32
33#include "../types/static.h"
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
62 unsigned short tag,
63 short x0,
64 short y0,
65 short x1,
66 short y1,
67 const UTF16 *text,
68 unsigned short font_type,
69 unsigned int text_color,
70 unsigned int text_options,
71 unsigned int style_options
72);
73
80static inline unsigned int ui_static_text_options(unsigned short text_flags, short left_inset) {
81 return text_flags | (left_inset << 16);
82}
83
84#ifdef __cplusplus
85} // extern "C"
86#endif
87
88#endif // __MUTEKI_UI_WIDGETS_STATIC_H__
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition common.h:54
Static text field (single-line label) widget type definition.
struct ui_static_s ui_static_t
Static text field widget struct.
static unsigned int ui_static_text_options(unsigned short text_flags, short left_inset)
Format the text_options parameter of the CreateStatic() syscall.
Definition static.h:80
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.