muteki
Loading...
Searching...
No Matches
button.h
Go to the documentation of this file.
1/*
2 * Copyright 2024-present dogtopus
3 * SPDX-License-Identifier: MIT
4 */
5
11#ifndef __MUTEKI_UI_WIDGETS_BUTTON_H__
12#define __MUTEKI_UI_WIDGETS_BUTTON_H__
13
14#include <muteki/ui/common.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
22
24 ui_component_t widget; // 0x0:0x34
28 void (*unk_callback_0x34)(void); // 0x34:0x38
32 void (*unk_callback_0x38)(void); // 0x38:0x3c
38 int key_binding; // 0x3c:0x40
42 unsigned int event; // 0x40:0x44
46 const UTF16 *label; // 0x44:0x48
50 int unk_0x48; // 0x48:0x4c
54 int unk_0x4c; // 0x4c:0x50
58 int unk_0x50; // 0x50:0x54
62 int unk_0x54; // 0x54:0x58
66 short unk_0x58; // 0x58:0x5a
70 unsigned short flags; // 0x5a:0x5c
74 int unk_0x5c; // 0x5c:0x60
75}; // 0x60 bytes
76
92 unsigned short tag,
93 short x0,
94 short y0,
95 short x1,
96 short y1,
97 UTF16 *label,
98 unsigned int event,
99 unsigned short flags
100);
101
102#ifdef __cplusplus
103} // extern "C"
104#endif
105
106#endif // __MUTEKI_UI_WIDGETS_BUTTON_H__
ui_widget_button_t * CreateButton(unsigned short tag, short x0, short y0, short x1, short y1, UTF16 *label, unsigned int event, unsigned short flags)
Create a button widget object.
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition common.h:54
Common part of all widgets and views.
Definition common.h:1236
Definition button.h:23
int unk_0x4c
Unknown.
Definition button.h:54
int unk_0x50
Unknown. Set to 10.
Definition button.h:58
int unk_0x5c
Unknown.
Definition button.h:74
const UTF16 * label
Button label text.
Definition button.h:46
unsigned short flags
Unknown. Set to arg8 of CreateButton().
Definition button.h:70
short unk_0x58
Unknown. Set to 4.
Definition button.h:66
int unk_0x48
Unknown. Set to 0.
Definition button.h:50
int key_binding
Key binding.
Definition button.h:38
unsigned int event
Custom event to be sent on button press.
Definition button.h:42
void(* unk_callback_0x34)(void)
Unknown.
Definition button.h:28
int unk_0x54
Unknown. Set to 0.
Definition button.h:62
void(* unk_callback_0x38)(void)
Unknown.
Definition button.h:32
Common data structures and definitions for the UI subsystem.