SSBM Decomp
Toggle main menu visibility
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
7
struct
STRUCT_MENU_ITEM
{
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
14
struct
STRUCT_MENU
{
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
31
typedef
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];
38
}
DEMOWinPadInfo
;
39
40
struct
STRUCT_LISTBOX_ITEM
{
41
/* 0x00 */
char
*
name
;
// offset 0x0, size 0x4
42
/* 0x04 */
unsigned
long
flags
;
// offset 0x4, size 0x4
43
};
44
45
struct
STRUCT_LISTBOX
{
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
59
extern
unsigned
long
DEMOFontBitmap
[768];
60
61
#include <
dolphin/demo/DEMOInit.h
>
62
#include <
dolphin/demo/DEMOPad.h
>
63
#include <
dolphin/demo/DEMOPuts.h
>
64
#include <
dolphin/demo/DEMOStats.h
>
65
#include <
dolphin/demo/DEMOWin.h
>
66
67
// unsorted externs
68
extern
void
DEMOPrintf
(
s16
x,
s16
y,
s16
priority,
char
*str, ...);
69
70
extern
struct
_GXRenderModeObj *
DEMOGetRenderModeObj
();
71
72
#endif
// _DOLPHIN_DEMO_H_
DEMOInit.h
DEMOPad.h
DEMOPuts.h
DEMOStats.h
DEMOWin.h
DEMOPrintf
void DEMOPrintf(s16 x, s16 y, s16 priority, char *str,...)
DEMOFontBitmap
unsigned long DEMOFontBitmap[768]
DEMOGetRenderModeObj
struct _GXRenderModeObj * DEMOGetRenderModeObj()
s16
signed short int s16
Definition
types.h:6
gx.h
pad.h
DEMOWinPadInfo
Definition
demo.h:31
DEMOWinPadInfo::repeat_ctr
unsigned long repeat_ctr[4]
Definition
demo.h:37
DEMOWinPadInfo::repeat_button
unsigned long repeat_button[4]
Definition
demo.h:36
DEMOWinPadInfo::button
unsigned long button[4]
Definition
demo.h:33
DEMOWinPadInfo::pads
struct PADStatus pads[4]
Definition
demo.h:32
DEMOWinPadInfo::old_button
unsigned long old_button[4]
Definition
demo.h:34
DEMOWinPadInfo::changed_button
unsigned long changed_button[4]
Definition
demo.h:35
PADStatus
Definition
pad.h:62
STRUCT_DEMOWIN
Definition
DEMOWin.h:15
STRUCT_LISTBOX_ITEM
Definition
demo.h:40
STRUCT_LISTBOX_ITEM::name
char * name
Definition
demo.h:41
STRUCT_LISTBOX_ITEM::flags
unsigned long flags
Definition
demo.h:42
STRUCT_LISTBOX
Definition
demo.h:45
STRUCT_LISTBOX::max_str_len
unsigned long max_str_len
Definition
demo.h:53
STRUCT_LISTBOX::curr_pos
long curr_pos
Definition
demo.h:54
STRUCT_LISTBOX::items
struct STRUCT_LISTBOX_ITEM * items
Definition
demo.h:48
STRUCT_LISTBOX::display_pos
long display_pos
Definition
demo.h:55
STRUCT_LISTBOX::flags
unsigned long flags
Definition
demo.h:50
STRUCT_LISTBOX::handle
struct STRUCT_DEMOWIN * handle
Definition
demo.h:47
STRUCT_LISTBOX::cursor_state
int cursor_state
Definition
demo.h:56
STRUCT_LISTBOX::num_display_items
long num_display_items
Definition
demo.h:51
STRUCT_LISTBOX::num_items
long num_items
Definition
demo.h:52
STRUCT_LISTBOX::max_display_items
long max_display_items
Definition
demo.h:49
STRUCT_LISTBOX::title
char * title
Definition
demo.h:46
STRUCT_MENU_ITEM
Definition
demo.h:7
STRUCT_MENU_ITEM::name
char * name
Definition
demo.h:8
STRUCT_MENU_ITEM::link
struct STRUCT_MENU * link
Definition
demo.h:11
STRUCT_MENU_ITEM::flags
unsigned long flags
Definition
demo.h:9
STRUCT_MENU_ITEM::function
void(* function)(struct STRUCT_MENU *, unsigned long, unsigned long *)
Definition
demo.h:10
STRUCT_MENU
Definition
demo.h:14
STRUCT_MENU::cb_cancel
void(* cb_cancel)(struct STRUCT_MENU *, unsigned long)
Definition
demo.h:23
STRUCT_MENU::max_str_len
unsigned long max_str_len
Definition
demo.h:26
STRUCT_MENU::handle
struct STRUCT_DEMOWIN * handle
Definition
demo.h:16
STRUCT_MENU::cb_select
void(* cb_select)(struct STRUCT_MENU *, unsigned long)
Definition
demo.h:22
STRUCT_MENU::title
char * title
Definition
demo.h:15
STRUCT_MENU::cb_open
void(* cb_open)(struct STRUCT_MENU *, unsigned long)
Definition
demo.h:20
STRUCT_MENU::num_display_items
long num_display_items
Definition
demo.h:24
STRUCT_MENU::items
struct STRUCT_MENU_ITEM * items
Definition
demo.h:17
STRUCT_MENU::cb_move
void(* cb_move)(struct STRUCT_MENU *, unsigned long)
Definition
demo.h:21
STRUCT_MENU::flags
unsigned long flags
Definition
demo.h:19
STRUCT_MENU::num_items
long num_items
Definition
demo.h:25
STRUCT_MENU::curr_pos
long curr_pos
Definition
demo.h:27
STRUCT_MENU::display_pos
long display_pos
Definition
demo.h:28
STRUCT_MENU::max_display_items
long max_display_items
Definition
demo.h:18
extern
dolphin
include
dolphin
demo.h
Generated by
1.17.0