112 lines
3.7 KiB
C
112 lines
3.7 KiB
C
#include <wx/defs.h>
|
|
|
|
#ifndef LONG_PARAM
|
|
#define LONG_PARAM wxIntPtr
|
|
#endif
|
|
|
|
#ifndef INT_PARAM
|
|
#define INT_PARAM wxInt32
|
|
#endif
|
|
|
|
typedef void (*WX_CALLBACK)();
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
int wx_messagebox(void* nothing, const char* message, const char* title, int style);
|
|
int wx_xrcid(const char* s);
|
|
int wx_filedialog(void* window, const char* title, const char* path, const char* extensions, const char* extension, int open, char* file);
|
|
void wx_checkmenuitem(void* window, int id, int checked);
|
|
void wx_enablemenuitem(void* menu, int id, int enable);
|
|
void* wx_getmenu(void* window);
|
|
void* wx_getmenubar(void* window);
|
|
void wx_enabletoolbaritem(void* toolbar, int id, int enable);
|
|
void* wx_gettoolbar(void* window);
|
|
|
|
void* wx_getsubmenu(void* window, int id);
|
|
void wx_appendmenu(void* sub_menu, int id, const char* title, enum wxItemKind type);
|
|
|
|
int wx_textentrydialog(void* window, const char* message, const char* title, const char* value, int min_length, int max_length, LONG_PARAM result);
|
|
|
|
int wx_dlgdirlist(void* window, const char* path, int id, int static_path, int file_type);
|
|
int wx_dlgdirselectex(void* window, LONG_PARAM path, int count, int id);
|
|
|
|
void wx_setwindowtitle(void* window, char* s);
|
|
int wx_sendmessage(void* window, int type, INT_PARAM param1, LONG_PARAM param2);
|
|
void* wx_getdlgitem(void* window, int id);
|
|
void wx_setdlgitemtext(void* window, int id, char* str);
|
|
void wx_enablewindow(void* window, int enabled);
|
|
void wx_showwindow(void* window, int show);
|
|
void wx_callback(void* window, WX_CALLBACK callback);
|
|
void wx_togglewindow(void* window);
|
|
|
|
void wx_enddialog(void* window, int ret_code);
|
|
|
|
int wx_dialogbox(void* window, const char* name, int(*callback)(void* window, int message, INT_PARAM param1, LONG_PARAM param2));
|
|
|
|
void wx_exit(void* window, int value);
|
|
void wx_stop_emulation(void* window);
|
|
|
|
void* wx_createtimer(void (*fn)());
|
|
void wx_starttimer(void* timer, int milliseconds, int once);
|
|
void wx_stoptimer(void* timer);
|
|
void wx_destroytimer(void* timer);
|
|
|
|
void wx_popupmenu(void* window, void* menu, int* x, int* y);
|
|
|
|
void* wx_create_status_frame(void* window);
|
|
void wx_destroy_status_frame(void* window);
|
|
|
|
int wx_yield();
|
|
|
|
void wx_setwindowposition(void* window, int x, int y);
|
|
void wx_setwindowsize(void* window, int width, int height);
|
|
|
|
void wx_show_status(void* window);
|
|
void wx_close_status(void* window);
|
|
|
|
int confirm();
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
extern int (*wx_keydown_func)(void* window, void* event, int keycode, int modifiers);
|
|
extern int (*wx_keyup_func)(void* window, void* event, int keycode, int modifiers);
|
|
extern void (*wx_idle_func)(void* window, void* event);
|
|
|
|
#define WX_ID wx_xrcid
|
|
|
|
#define WX_MB_CHECKED 1
|
|
#define WX_MB_UNCHECKED 0
|
|
|
|
#define WX_INITDIALOG 1
|
|
#define WX_COMMAND 2
|
|
|
|
#define WX_CB_ADDSTRING 1
|
|
#define WX_CB_SETCURSEL 2
|
|
#define WX_CB_GETCURSEL 3
|
|
#define WX_CB_RESETCONTENT 4
|
|
#define WX_CB_GETLBTEXT 5
|
|
|
|
#define WX_BM_SETCHECK 20
|
|
#define WX_BM_GETCHECK 21
|
|
|
|
#define WX_WM_SETTEXT 40
|
|
#define WX_WM_GETTEXT 41
|
|
|
|
#define WX_UDM_SETPOS 50
|
|
#define WX_UDM_GETPOS 51
|
|
#define WX_UDM_SETINCR 52
|
|
#define WX_UDM_SETRANGE 53
|
|
|
|
#define WX_LB_GETCOUNT 60
|
|
#define WX_LB_GETCURSEL 61
|
|
#define WX_LB_GETTEXT 62
|
|
#define WX_LB_DELETESTRING 63
|
|
#define WX_LB_INSERTSTRING 64
|
|
|
|
#define WX_MB_OK wxOK
|
|
#define WX_MB_OKCANCEL wxOK|wxCANCEL
|
|
#define WX_IDOK wxOK
|
|
|
|
extern int has_been_inited;
|