SSBM Decomp
Loading...
Searching...
No Matches
demo.h
Go to the documentation of this file.
1#ifndef _DOLPHIN_DEMO_H_
2#define _DOLPHIN_DEMO_H_
3
4#include <dolphin/pad.h>
5#include <dolphin/gx.h>
6
8 /* 0x00 */ char * name;
9 /* 0x04 */ unsigned long flags;
10 /* 0x08 */ void (* function)(struct STRUCT_MENU *, unsigned long, unsigned long *);
11 /* 0x0C */ struct STRUCT_MENU * link;
12};
13
15 /* 0x00 */ char * title;
16 /* 0x04 */ struct STRUCT_DEMOWIN * handle;
17 /* 0x08 */ struct STRUCT_MENU_ITEM * items;
18 /* 0x0C */ long max_display_items;
19 /* 0x10 */ unsigned long flags;
20 /* 0x14 */ void (* cb_open)(struct STRUCT_MENU *, unsigned long);
21 /* 0x18 */ void (* cb_move)(struct STRUCT_MENU *, unsigned long);
22 /* 0x1C */ void (* cb_select)(struct STRUCT_MENU *, unsigned long);
23 /* 0x20 */ void (* cb_cancel)(struct STRUCT_MENU *, unsigned long);
24 /* 0x24 */ long num_display_items;
25 /* 0x28 */ long num_items;
26 /* 0x2C */ unsigned long max_str_len;
27 /* 0x30 */ long curr_pos;
28 /* 0x34 */ long display_pos;
29};
30
31typedef struct {
32 /* 0x00 */ struct PADStatus pads[4];
33 /* 0x30 */ unsigned long button[4];
34 /* 0x40 */ unsigned long old_button[4];
35 /* 0x50 */ unsigned long changed_button[4];
36 /* 0x60 */ unsigned long repeat_button[4];
37 /* 0x70 */ unsigned long repeat_ctr[4];
39
41 /* 0x00 */ char * name; // offset 0x0, size 0x4
42 /* 0x04 */ unsigned long flags; // offset 0x4, size 0x4
43};
44
46 /* 0x00 */ char * title; // offset 0x0, size 0x4
47 /* 0x04 */ struct STRUCT_DEMOWIN * handle; // offset 0x4, size 0x4
48 /* 0x08 */ struct STRUCT_LISTBOX_ITEM * items; // offset 0x8, size 0x4
49 /* 0x0C */ long max_display_items; // offset 0xC, size 0x4
50 /* 0x10 */ unsigned long flags; // offset 0x10, size 0x4
51 /* 0x14 */ long num_display_items; // offset 0x14, size 0x4
52 /* 0x18 */ long num_items; // offset 0x18, size 0x4
53 /* 0x1C */ unsigned long max_str_len; // offset 0x1C, size 0x4
54 /* 0x20 */ long curr_pos; // offset 0x20, size 0x4
55 /* 0x24 */ long display_pos; // offset 0x24, size 0x4
56 /* 0x28 */ int cursor_state; // offset 0x28, size 0x4
57};
58
59extern unsigned long DEMOFontBitmap[768];
60
66
67// unsorted externs
68extern void DEMOPrintf(s16 x, s16 y, s16 priority, char *str, ...);
69
70extern struct _GXRenderModeObj *DEMOGetRenderModeObj();
71
72#endif // _DOLPHIN_DEMO_H_
void DEMOPrintf(s16 x, s16 y, s16 priority, char *str,...)
unsigned long DEMOFontBitmap[768]
struct _GXRenderModeObj * DEMOGetRenderModeObj()
signed short int s16
Definition types.h:6
Definition demo.h:31
unsigned long repeat_ctr[4]
Definition demo.h:37
unsigned long repeat_button[4]
Definition demo.h:36
unsigned long button[4]
Definition demo.h:33
struct PADStatus pads[4]
Definition demo.h:32
unsigned long old_button[4]
Definition demo.h:34
unsigned long changed_button[4]
Definition demo.h:35
Definition pad.h:62
Definition DEMOWin.h:15
Definition demo.h:40
char * name
Definition demo.h:41
unsigned long flags
Definition demo.h:42
Definition demo.h:45
unsigned long max_str_len
Definition demo.h:53
long curr_pos
Definition demo.h:54
struct STRUCT_LISTBOX_ITEM * items
Definition demo.h:48
long display_pos
Definition demo.h:55
unsigned long flags
Definition demo.h:50
struct STRUCT_DEMOWIN * handle
Definition demo.h:47
int cursor_state
Definition demo.h:56
long num_display_items
Definition demo.h:51
long num_items
Definition demo.h:52
long max_display_items
Definition demo.h:49
char * title
Definition demo.h:46
Definition demo.h:7
char * name
Definition demo.h:8
struct STRUCT_MENU * link
Definition demo.h:11
unsigned long flags
Definition demo.h:9
void(* function)(struct STRUCT_MENU *, unsigned long, unsigned long *)
Definition demo.h:10
Definition demo.h:14
void(* cb_cancel)(struct STRUCT_MENU *, unsigned long)
Definition demo.h:23
unsigned long max_str_len
Definition demo.h:26
struct STRUCT_DEMOWIN * handle
Definition demo.h:16
void(* cb_select)(struct STRUCT_MENU *, unsigned long)
Definition demo.h:22
char * title
Definition demo.h:15
void(* cb_open)(struct STRUCT_MENU *, unsigned long)
Definition demo.h:20
long num_display_items
Definition demo.h:24
struct STRUCT_MENU_ITEM * items
Definition demo.h:17
void(* cb_move)(struct STRUCT_MENU *, unsigned long)
Definition demo.h:21
unsigned long flags
Definition demo.h:19
long num_items
Definition demo.h:25
long curr_pos
Definition demo.h:27
long display_pos
Definition demo.h:28
long max_display_items
Definition demo.h:18