Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
static.h
Go to the documentation of this file.
1/*
2 * Copyright 2024-2026 dogtopus
3 * SPDX-License-Identifier: MIT
4 */
5
10
11#ifndef __MUTEKI_UI_TYPES_STATIC_H__
12#define __MUTEKI_UI_TYPES_STATIC_H__
13
14#include "framework.h"
15#include "text_layout.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
43
47typedef struct ui_static_s {
55 unsigned int unk_0x34;
59 const UTF16 *text;
64 unsigned int style_options;
69 unsigned int text_color;
75 unsigned short font_type;
80 unsigned short text_flags;
88 short unk_0x4a;
90
98static inline unsigned int ui_static_style_options(
99 enum ui_text_layout_e layout,
100 enum ui_static_frame_kind_e frame_type
101) {
102 return ((layout & 0xf) << 22) | ((frame_type & 0xf) << 26);
103}
104
105#ifdef __cplusplus
106} // extern "C"
107#endif
108
109#endif // __MUTEKI_UI_TYPES_STATIC_H__
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition common.h:54
UI framework type (component, group, event) definitions.
struct ui_component_s ui_component_t
ui_component_s
Definition framework.h:71
Static text field widget struct.
Definition static.h:47
unsigned int text_color
Text color.
Definition static.h:69
short left_inset
Text left inset value.
Definition static.h:84
unsigned int style_options
Style options value.
Definition static.h:64
ui_component_t component
The inherited component struct.
Definition static.h:51
unsigned short text_flags
Text print control flags.
Definition static.h:80
unsigned int unk_0x34
Reserved. Should be set to 0.
Definition static.h:55
short unk_0x4a
Unknown. Probably padding bytes.
Definition static.h:88
const UTF16 * text
UTF-16-encoded text.
Definition static.h:59
unsigned short font_type
Font type.
Definition static.h:75
Text layout common constants.
ui_text_layout_e
Text layout types.
Definition text_layout.h:22
ui_static_frame_kind_e
Kinds of outer frame style.
Definition static.h:24
@ UI_STATIC_FRAME_KIND_NONE
No frame.
Definition static.h:28
@ UI_STATIC_FRAME_KIND_OUTLINE
Draw the outline with the default outline color.
Definition static.h:33
@ UI_STATIC_FRAME_KIND_SUNKEN
Sunken look.
Definition static.h:37
@ UI_STATIC_FRAME_KIND_RAISED
Raised look.
Definition static.h:41
static unsigned int ui_static_style_options(enum ui_text_layout_e layout, enum ui_static_frame_kind_e frame_type)
Format the ui_static_t::style_options value.
Definition static.h:101
struct ui_static_s ui_static_t
Static text field widget struct.