c++ guard

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@40 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-09-29 00:19:49 +00:00
parent cad1113643
commit 323230788c
8 changed files with 63 additions and 15 deletions

View File

@@ -6,11 +6,15 @@
#include <Mw/TypeDefs.h>
#define MwDispatch(x, y) \
if(x->class != NULL && x->class->y != NULL) x->class->y(x)
if(x->widget_class != NULL && x->widget_class->y != NULL) x->widget_class->y(x)
MWDECL MwWidget MwCreateWidget(MwClass class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height);
MWDECL MwWidget MwVaCreateWidget(MwClass class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height, ...);
MWDECL MwWidget MwVaListCreateWidget(MwClass class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height, va_list va);
#ifdef __cplusplus
extern "C" {
#endif
MWDECL MwWidget MwCreateWidget(MwClass widget_class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height);
MWDECL MwWidget MwVaCreateWidget(MwClass widget_class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height, ...);
MWDECL MwWidget MwVaListCreateWidget(MwClass widget_class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height, va_list va);
MWDECL void MwDestroyWidget(MwWidget handle);
MWDECL void MwLoop(MwWidget handle);
@@ -28,4 +32,8 @@ MWDECL void MwVaListApply(MwWidget handle, va_list va);
MWDECL void MwAddUserHandler(MwWidget handle, const char* key, MwUserHandler handler, void* user_data);
MWDECL void MwDispatchUserHandler(MwWidget handle, const char* key, void* handler_data);
#ifdef __cplusplus
}
#endif
#endif