menu kinda works

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@108 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-01 16:47:48 +00:00
parent aa92f0c31e
commit 4dc4093119
7 changed files with 120 additions and 25 deletions

View File

@@ -30,15 +30,15 @@ typedef void* MwLLPixmap;
#endif
#include <Mw/TypeDefs.h>
#define MwLLDispatch(x, y) \
if(x->handler != NULL && x->handler->y != NULL) x->handler->y(x)
#define MwLLDispatch(x, y, z) \
if(x->handler != NULL && x->handler->y != NULL) x->handler->y(x, z)
struct _MwLLHandler {
void (*draw)(MwLL handle);
void (*up)(MwLL handle);
void (*down)(MwLL handle);
void (*resize)(MwLL handle);
void (*close)(MwLL handle);
void (*draw)(MwLL handle, void* data);
void (*up)(MwLL handle, void* data);
void (*down)(MwLL handle, void* data);
void (*resize)(MwLL handle, void* data);
void (*close)(MwLL handle, void* data);
};
#ifdef __cplusplus

View File

@@ -72,6 +72,7 @@ struct _MwWidget {
MwClass widget_class;
int pressed;
MwPoint pressed_point;
int close;
jmp_buf before_step;