mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 16:10:50 +00:00
menu kinda works
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@108 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -72,6 +72,7 @@ struct _MwWidget {
|
||||
MwClass widget_class;
|
||||
|
||||
int pressed;
|
||||
MwPoint pressed_point;
|
||||
int close;
|
||||
jmp_buf before_step;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user