SSBM Decomp
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1#ifndef MELEE_UN_TYPES_H
2#define MELEE_UN_TYPES_H
3
4#include <platform.h>
5
6#include "baselib/forward.h"
7#include "un/forward.h" // IWYU pragma: export
8
9#include <dolphin/gx/types.h>
10
11#define DEVTEXT_FLAG_HIDETEXT (0x80)
12#define DEVTEXT_FLAG_HIDEBACKGROUND (0x40)
13#define DEVTEXT_FLAG_NOWRAP (0x20)
14#define DEVTEXT_FLAG_SHOWCURSOR (0x10)
15
16struct DevText {
17 /* +0 */ s16 x;
18 /* +2 */ s16 y;
19 /* +4 */ u8 w;
20 /* +5 */ u8 h;
21 /* +6 */ u8 cursor_x;
22 /* +7 */ u8 cursor_y;
23 /* +8 */ f32 scale_x;
24 /* +C */ f32 scale_y;
25 /* +10 */ GXColor bg_color;
26 /* +14 */ GXColor text_colors[4];
27 /* +24 */ s8 id;
28 /* +25 */ u8 line_width;
29 /* +26 */ u8 flags;
30 /* +27 */ u8 unk : 6;
31 /* +27 */ u8 current_color : 2;
32 /* +28 */ char* buf;
33 /* +2C */ struct DevText* prev;
34 /* +30 */ struct DevText* next;
35};
36
38 /* +0 */ char pad_0[0xC];
39 /* +C */ int xC;
40};
41
43 /* +0 */ char pad_0[1];
44 /* +1 */ u8 x1;
45};
46
48 /* +0 */ char pad_0[0x18];
49 /* +14 */ HSD_JObj* x14;
50 /* +18 */ HSD_JObj* x18;
51 /* +1C */ char pad_1C[0x54 - 0x20];
52 /* +54 */ short x54;
53 /* +56 */ short x56;
54};
55
56#endif
signed char s8
A signed 8-bit integer.
Definition platform.h:8
float f32
A 32-bit floating-point number.
Definition platform.h:62
signed short s16
A signed 16-bit integer.
Definition platform.h:11
unsigned char u8
An unsigned 8-bit integer.
Definition platform.h:20
Definition types.h:16
u8 current_color
Definition types.h:31
u8 w
Definition types.h:19
char * buf
Definition types.h:32
u8 flags
Definition types.h:29
s16 y
Definition types.h:18
s16 x
Definition types.h:17
u8 unk
Definition types.h:30
s8 id
Definition types.h:27
GXColor bg_color
Definition types.h:25
u8 line_width
Definition types.h:28
u8 cursor_x
Definition types.h:21
GXColor text_colors[4]
Definition types.h:26
f32 scale_y
Definition types.h:24
struct DevText * prev
Definition types.h:33
f32 scale_x
Definition types.h:23
u8 cursor_y
Definition types.h:22
struct DevText * next
Definition types.h:34
u8 h
Definition types.h:20
Definition types.h:30
Definition jobj.h:108
Definition types.h:37
int xC
Definition types.h:39
char pad_0[0xC]
Definition types.h:38
Definition types.h:42
u8 x1
Definition types.h:44
char pad_0[1]
Definition types.h:43
Definition types.h:47
HSD_JObj * x14
Definition types.h:49
char pad_1C[0x54 - 0x20]
Definition types.h:51
HSD_JObj * x18
Definition types.h:50
short x54
Definition types.h:52
short x56
Definition types.h:53
char pad_0[0x18]
Definition types.h:48