SSBM Decomp
Loading...
Searching...
No Matches
DEMOWin.h
Go to the documentation of this file.
1#ifndef _DOLPHIN_DEMOWIN_H_
2#define _DOLPHIN_DEMOWIN_H_
3
10
11// flags
12#define DEMOWIN_FLAGS_INIT (1 << 0)
13#define DEMOWIN_FLAGS_OPENED (1 << 1)
14
16 /* 0x00 */ long x1;
17 /* 0x04 */ long y1;
18 /* 0x08 */ long x2;
19 /* 0x0C */ long y2;
20 /* 0x10 */ unsigned long priority;
21 /* 0x14 */ unsigned long flags;
22 /* 0x18 */ unsigned short x_cal;
23 /* 0x1A */ unsigned short y_cal;
24 /* 0x1C */ unsigned short pixel_width;
25 /* 0x1E */ unsigned short pixel_height;
26 /* 0x20 */ unsigned short char_width;
27 /* 0x22 */ unsigned short char_height;
28 /* 0x24 */ unsigned short num_scroll_lines;
29 /* 0x26 */ unsigned short total_lines;
30 /* 0x28 */ unsigned short curr_output_line;
31 /* 0x2A */ unsigned short curr_output_col;
32 /* 0x2C */ unsigned short curr_view_line;
33 /* 0x2E */ signed short cursor_line;
34 /* 0x30 */ char * caption;
35 /* 0x34 */ unsigned char * buffer;
36 /* 0x38 */ GXColor bkgnd;
37 /* 0x3C */ GXColor cap;
38 /* 0x40 */ GXColor border;
39 /* 0x44 */ void (* refresh)(struct STRUCT_DEMOWIN *);
40 /* 0x48 */ struct STRUCT_DEMOWIN * next;
41 /* 0x4C */ struct STRUCT_DEMOWIN * prev;
42 /* 0x50 */ void * parent;
43};
44
45// functions
47struct STRUCT_DEMOWIN * DEMOWinCreateWindow(s32 x1, s32 y1, s32 x2, s32 y2, char * caption, u16 scroll, void * func);
49void DEMOWinOpenWindow(struct STRUCT_DEMOWIN * handle);
50void DEMOWinCloseWindow(struct STRUCT_DEMOWIN * handle);
51void DEMOWinSetWindowColor(struct STRUCT_DEMOWIN * handle, enum DEMOWinItem item, u8 r, u8 g, u8 b, u8 a);
52void DEMOWinLogPrintf(struct STRUCT_DEMOWIN * handle, char * fmt, ...);
53void DEMOWinPrintfXY(struct STRUCT_DEMOWIN * handle, u16 col, u16 row, char * fmt, ...);
54void DEMOWinScrollWindow(struct STRUCT_DEMOWIN * handle, u32 dir);
55void DEMOWinBringToFront(struct STRUCT_DEMOWIN * handle);
56void DEMOWinSendToBack(struct STRUCT_DEMOWIN * handle);
57void DEMOWinClearRow(struct STRUCT_DEMOWIN * handle, u16 row);
58void DEMOWinClearWindow(struct STRUCT_DEMOWIN * handle);
59void DEMOWinClearBuffer(struct STRUCT_DEMOWIN * handle);
63u32 DEMOWinMenuChild(struct STRUCT_MENU * menu, int child_flag);
66void DEMOWinSetRepeat(unsigned long threshold, unsigned long rate);
68struct STRUCT_LISTBOX * DEMOWinCreateListWindow(struct STRUCT_LISTBOX * list, unsigned short x, unsigned short y);
70void DEMOWinListSetCursor(struct STRUCT_LISTBOX * list, int x);
71long DEMOWinListScrollList(struct STRUCT_LISTBOX * list, unsigned long dir);
72long DEMOWinListMoveCursor(struct STRUCT_LISTBOX * list, unsigned long dir);
73
74#endif // _DOLPHIN_DEMOWIN_H_
void DEMOWinCloseWindow(struct STRUCT_DEMOWIN *handle)
void DEMOWinDestroyMenuWindow(struct STRUCT_MENU *menu)
void DEMOWinSetWindowColor(struct STRUCT_DEMOWIN *handle, enum DEMOWinItem item, u8 r, u8 g, u8 b, u8 a)
struct STRUCT_LISTBOX * DEMOWinCreateListWindow(struct STRUCT_LISTBOX *list, unsigned short x, unsigned short y)
void DEMOWinDestroyWindow(struct STRUCT_DEMOWIN *handle)
void DEMOWinClearRow(struct STRUCT_DEMOWIN *handle, u16 row)
void DEMOWinRefresh()
void DEMOWinPrintfXY(struct STRUCT_DEMOWIN *handle, u16 col, u16 row, char *fmt,...)
DEMOWinItem
Definition DEMOWin.h:4
@ DEMOWIN_ITEM_BKGND
Definition DEMOWin.h:6
@ DEMOWIN_ITEM_BORDER
Definition DEMOWin.h:7
@ DEMOWIN_ITEM_DEFAULT
Definition DEMOWin.h:8
@ DEMOWIN_ITEM_CAP
Definition DEMOWin.h:5
struct STRUCT_MENU * DEMOWinCreateMenuWindow(struct STRUCT_MENU *menu, u16 x, u16 y)
void DEMOWinPadInit(DEMOWinPadInfo *p)
long DEMOWinListScrollList(struct STRUCT_LISTBOX *list, unsigned long dir)
void DEMOWinDestroyListWindow(struct STRUCT_LISTBOX *list)
void DEMOWinListSetCursor(struct STRUCT_LISTBOX *list, int x)
void DEMOWinPadRead(DEMOWinPadInfo *p)
void DEMOWinOpenWindow(struct STRUCT_DEMOWIN *handle)
void DEMOWinInit()
void DEMOWinClearWindow(struct STRUCT_DEMOWIN *handle)
void DEMOWinSetRepeat(unsigned long threshold, unsigned long rate)
void DEMOWinScrollWindow(struct STRUCT_DEMOWIN *handle, u32 dir)
void DEMOWinLogPrintf(struct STRUCT_DEMOWIN *handle, char *fmt,...)
void DEMOWinSendToBack(struct STRUCT_DEMOWIN *handle)
void DEMOWinClearBuffer(struct STRUCT_DEMOWIN *handle)
long DEMOWinListMoveCursor(struct STRUCT_LISTBOX *list, unsigned long dir)
u32 DEMOWinMenuChild(struct STRUCT_MENU *menu, int child_flag)
void DEMOWinBringToFront(struct STRUCT_DEMOWIN *handle)
struct STRUCT_DEMOWIN * DEMOWinCreateWindow(s32 x1, s32 y1, s32 x2, s32 y2, char *caption, u16 scroll, void *func)
void DEMOWinResetRepeat()
UnkFlagStruct x1
Definition dbbonus.c:21
unsigned long u32
Definition types.h:9
unsigned short int u16
Definition types.h:7
u8 x2
Definition gm_1601.c:149
static GXColor const col
Definition gmtoulib.c:1407
signed long s32
Definition hsd_3B2B.h:1
unsigned char u8
Definition hsd_3B2B.h:2
void(* func)(void)
Definition state.c:134
Definition demo.h:31
Definition GXStruct.h:29
Definition DEMOWin.h:15
long x2
Definition DEMOWin.h:18
char * caption
Definition DEMOWin.h:34
unsigned short pixel_width
Definition DEMOWin.h:24
unsigned short curr_output_col
Definition DEMOWin.h:31
unsigned long flags
Definition DEMOWin.h:21
unsigned short curr_view_line
Definition DEMOWin.h:32
unsigned short char_height
Definition DEMOWin.h:27
long y1
Definition DEMOWin.h:17
void * parent
Definition DEMOWin.h:42
GXColor border
Definition DEMOWin.h:38
unsigned long priority
Definition DEMOWin.h:20
struct STRUCT_DEMOWIN * prev
Definition DEMOWin.h:41
unsigned short x_cal
Definition DEMOWin.h:22
struct STRUCT_DEMOWIN * next
Definition DEMOWin.h:40
long x1
Definition DEMOWin.h:16
GXColor bkgnd
Definition DEMOWin.h:36
unsigned short num_scroll_lines
Definition DEMOWin.h:28
void(* refresh)(struct STRUCT_DEMOWIN *)
Definition DEMOWin.h:39
unsigned short y_cal
Definition DEMOWin.h:23
GXColor cap
Definition DEMOWin.h:37
unsigned short pixel_height
Definition DEMOWin.h:25
unsigned char * buffer
Definition DEMOWin.h:35
unsigned short char_width
Definition DEMOWin.h:26
long y2
Definition DEMOWin.h:19
unsigned short curr_output_line
Definition DEMOWin.h:30
signed short cursor_line
Definition DEMOWin.h:33
unsigned short total_lines
Definition DEMOWin.h:29
Definition demo.h:45
Definition demo.h:14
GXColorS10 a
Definition tev.c:11