Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Data Structures | Macros | Typedefs | Functions | Variables
emutools_gui.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  menu_st
 

Macros

#define DEBUGGUI   DEBUG
 
#define XEMUGUI_FSEL_DIRECTORY   0
 
#define XEMUGUI_FSEL_OPEN   1
 
#define XEMUGUI_FSEL_SAVE   2
 
#define XEMUGUI_FSEL_FLAG_STORE_DIR   0x100
 
#define XEMUGUI_MENUID_CALLABLE   0
 
#define XEMUGUI_MENUID_SUBMENU   1
 
#define XEMUGUI_MENUID_TITLE   2
 
#define XEMUGUI_MENUFLAG_INACTIVE   0x00100
 
#define XEMUGUI_MENUFLAG_BEGIN_RADIO   0x00200
 
#define XEMUGUI_MENUFLAG_END_RADIO   0x00400
 
#define XEMUGUI_MENUFLAG_ACTIVE_RADIO   0x00800
 
#define XEMUGUI_MENUFLAG_SEPARATOR   0x01000
 
#define XEMUGUI_MENUFLAG_CHECKED   0x02000
 
#define XEMUGUI_MENUFLAG_QUERYBACK   0x04000
 
#define XEMUGUI_MENUFLAG_UNCHECKED   0x08000
 
#define XEMUGUI_MENUFLAG_HIDDEN   0x10000
 
#define XEMUGUI_MAX_SUBMENUS   100
 
#define XEMUGUI_MAX_ITEMS   900
 
#define XEMUGUI_MAINMENU_NAME   "Main Menu"
 
#define XEMUGUI_RETURN_CHECKED_ON_QUERY(query, status)
 

Typedefs

typedef void(* xemugui_callback_t) (const struct menu_st *desc, int *query)
 

Functions

int xemugui_init (const char *name)
 
void xemugui_shutdown (void)
 
int xemugui_iteration (void)
 
int xemugui_file_selector (int dialog_mode, const char *dialog_title, char *default_dir, char *selected, int path_max_size)
 
int xemugui_popup (const struct menu_st desc[])
 
int xemugui_info (int sdl_class, const char *msg)
 
void xemugui_cb_call_user_data (const struct menu_st *m, int *query)
 
void xemugui_cb_call_user_data_if_sure (const struct menu_st *m, int *query)
 
void xemugui_cb_quit (const struct menu_st *m, int *query)
 
void xemugui_cb_call_quit_if_sure (const struct menu_st *m, int *query)
 
void xemugui_cb_show_info_window_text (const struct menu_st *m, int *query)
 
void xemugui_cb_about_window (const struct menu_st *m, int *query)
 
void xemugui_cb_windowsize (const struct menu_st *m, int *query)
 
void xemugui_cb_osd_key_debugger (const struct menu_st *m, int *query)
 
void xemugui_cb_set_mouse_grab (const struct menu_st *m, int *query)
 
void xemugui_cb_set_integer_to_one (const struct menu_st *m, int *query)
 
void xemugui_cb_toggle_int (const struct menu_st *m, int *query)
 
void xemugui_cb_toggle_int_inverted (const struct menu_st *m, int *query)
 

Variables

int is_xemungui_ok
 

Macro Definition Documentation

◆ DEBUGGUI

#define DEBUGGUI   DEBUG

Definition at line 22 of file emutools_gui.h.

◆ XEMUGUI_FSEL_DIRECTORY

#define XEMUGUI_FSEL_DIRECTORY   0

Definition at line 25 of file emutools_gui.h.

◆ XEMUGUI_FSEL_FLAG_STORE_DIR

#define XEMUGUI_FSEL_FLAG_STORE_DIR   0x100

Definition at line 28 of file emutools_gui.h.

◆ XEMUGUI_FSEL_OPEN

#define XEMUGUI_FSEL_OPEN   1

Definition at line 26 of file emutools_gui.h.

◆ XEMUGUI_FSEL_SAVE

#define XEMUGUI_FSEL_SAVE   2

Definition at line 27 of file emutools_gui.h.

◆ XEMUGUI_MAINMENU_NAME

#define XEMUGUI_MAINMENU_NAME   "Main Menu"

Definition at line 52 of file emutools_gui.h.

◆ XEMUGUI_MAX_ITEMS

#define XEMUGUI_MAX_ITEMS   900

Definition at line 48 of file emutools_gui.h.

◆ XEMUGUI_MAX_SUBMENUS

#define XEMUGUI_MAX_SUBMENUS   100

Definition at line 45 of file emutools_gui.h.

◆ XEMUGUI_MENUFLAG_ACTIVE_RADIO

#define XEMUGUI_MENUFLAG_ACTIVE_RADIO   0x00800

Definition at line 37 of file emutools_gui.h.

◆ XEMUGUI_MENUFLAG_BEGIN_RADIO

#define XEMUGUI_MENUFLAG_BEGIN_RADIO   0x00200

Definition at line 35 of file emutools_gui.h.

◆ XEMUGUI_MENUFLAG_CHECKED

#define XEMUGUI_MENUFLAG_CHECKED   0x02000

Definition at line 39 of file emutools_gui.h.

◆ XEMUGUI_MENUFLAG_END_RADIO

#define XEMUGUI_MENUFLAG_END_RADIO   0x00400

Definition at line 36 of file emutools_gui.h.

◆ XEMUGUI_MENUFLAG_HIDDEN

#define XEMUGUI_MENUFLAG_HIDDEN   0x10000

Definition at line 42 of file emutools_gui.h.

◆ XEMUGUI_MENUFLAG_INACTIVE

#define XEMUGUI_MENUFLAG_INACTIVE   0x00100

Definition at line 34 of file emutools_gui.h.

◆ XEMUGUI_MENUFLAG_QUERYBACK

#define XEMUGUI_MENUFLAG_QUERYBACK   0x04000

Definition at line 40 of file emutools_gui.h.

◆ XEMUGUI_MENUFLAG_SEPARATOR

#define XEMUGUI_MENUFLAG_SEPARATOR   0x01000

Definition at line 38 of file emutools_gui.h.

◆ XEMUGUI_MENUFLAG_UNCHECKED

#define XEMUGUI_MENUFLAG_UNCHECKED   0x08000

Definition at line 41 of file emutools_gui.h.

◆ XEMUGUI_MENUID_CALLABLE

#define XEMUGUI_MENUID_CALLABLE   0

Definition at line 30 of file emutools_gui.h.

◆ XEMUGUI_MENUID_SUBMENU

#define XEMUGUI_MENUID_SUBMENU   1

Definition at line 31 of file emutools_gui.h.

◆ XEMUGUI_MENUID_TITLE

#define XEMUGUI_MENUID_TITLE   2

Definition at line 32 of file emutools_gui.h.

◆ XEMUGUI_RETURN_CHECKED_ON_QUERY

#define XEMUGUI_RETURN_CHECKED_ON_QUERY (   query,
  status 
)
Value:
do { if (query) { \
return; \
} } while (0)

Definition at line 55 of file emutools_gui.h.

Typedef Documentation

◆ xemugui_callback_t

typedef void(* xemugui_callback_t) (const struct menu_st *desc, int *query)

Definition at line 63 of file emutools_gui.h.

Function Documentation

◆ xemugui_cb_about_window()

void xemugui_cb_about_window ( const struct menu_st m,
int *  query 
)

Definition at line 53 of file popular_user_funcs.c.

Here is the call graph for this function:

◆ xemugui_cb_call_quit_if_sure()

void xemugui_cb_call_quit_if_sure ( const struct menu_st m,
int *  query 
)

Definition at line 79 of file popular_user_funcs.c.

Here is the call graph for this function:

◆ xemugui_cb_call_user_data()

void xemugui_cb_call_user_data ( const struct menu_st m,
int *  query 
)

Definition at line 29 of file popular_user_funcs.c.

◆ xemugui_cb_call_user_data_if_sure()

void xemugui_cb_call_user_data_if_sure ( const struct menu_st m,
int *  query 
)

Definition at line 35 of file popular_user_funcs.c.

Here is the call graph for this function:

◆ xemugui_cb_osd_key_debugger()

void xemugui_cb_osd_key_debugger ( const struct menu_st m,
int *  query 
)

Definition at line 169 of file popular_user_funcs.c.

◆ xemugui_cb_quit()

void xemugui_cb_quit ( const struct menu_st m,
int *  query 
)

Definition at line 41 of file popular_user_funcs.c.

◆ xemugui_cb_set_integer_to_one()

void xemugui_cb_set_integer_to_one ( const struct menu_st m,
int *  query 
)

Definition at line 187 of file popular_user_funcs.c.

◆ xemugui_cb_set_mouse_grab()

void xemugui_cb_set_mouse_grab ( const struct menu_st m,
int *  query 
)

Definition at line 176 of file popular_user_funcs.c.

◆ xemugui_cb_show_info_window_text()

void xemugui_cb_show_info_window_text ( const struct menu_st m,
int *  query 
)

Definition at line 47 of file popular_user_funcs.c.

◆ xemugui_cb_toggle_int()

void xemugui_cb_toggle_int ( const struct menu_st m,
int *  query 
)

Definition at line 199 of file popular_user_funcs.c.

◆ xemugui_cb_toggle_int_inverted()

void xemugui_cb_toggle_int_inverted ( const struct menu_st m,
int *  query 
)

Definition at line 193 of file popular_user_funcs.c.

◆ xemugui_cb_windowsize()

void xemugui_cb_windowsize ( const struct menu_st m,
int *  query 
)

Definition at line 97 of file popular_user_funcs.c.

Here is the call graph for this function:

◆ xemugui_file_selector()

int xemugui_file_selector ( int  dialog_mode,
const char *  dialog_title,
char *  default_dir,
char *  selected,
int  path_max_size 
)

Definition at line 126 of file emutools_gui.c.

◆ xemugui_info()

int xemugui_info ( int  sdl_class,
const char *  msg 
)

Definition at line 156 of file emutools_gui.c.

◆ xemugui_init()

int xemugui_init ( const char *  name)

Definition at line 82 of file emutools_gui.c.

◆ xemugui_iteration()

int xemugui_iteration ( void  )

Definition at line 120 of file emutools_gui.c.

◆ xemugui_popup()

int xemugui_popup ( const struct menu_st  desc[])

Definition at line 135 of file emutools_gui.c.

Here is the caller graph for this function:

◆ xemugui_shutdown()

void xemugui_shutdown ( void  )

Definition at line 113 of file emutools_gui.c.

Variable Documentation

◆ is_xemungui_ok

int is_xemungui_ok
XEMUGUI_MENUFLAG_UNCHECKED
#define XEMUGUI_MENUFLAG_UNCHECKED
Definition: emutools_gui.h:41
status
enum @26::@29 status
XEMUGUI_MENUFLAG_CHECKED
#define XEMUGUI_MENUFLAG_CHECKED
Definition: emutools_gui.h:39