draw button

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@32 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-09-28 22:10:42 +00:00
parent 0bc58045ae
commit 4597519598
5 changed files with 33 additions and 6 deletions

View File

@@ -28,8 +28,8 @@ typedef void* MilskoLLColor;
struct _MilskoLLCallback {
void (*draw)(MilskoLL handle);
void (*down)(MilskoLL handle);
void (*up)(MilskoLL handle);
void (*down)(MilskoLL handle);
};
/* lowlevel.c, common part */

View File

@@ -10,7 +10,7 @@ typedef struct _MilskoRect MilskoRect;
typedef struct _MilskoTextKeyValue MilskoTextKeyValue;
typedef struct _MilskoIntegerKeyValue MilskoIntegerKeyValue;
#ifdef _MILSKO
typedef struct _Milsko *MilskoWidget, MilskoWidgetRec;
typedef struct _MilskoWidget *MilskoWidget, MilskoWidgetRec;
#else
typedef void* MilskoWidget;
#endif
@@ -46,7 +46,7 @@ struct _MilskoIntegerKeyValue {
};
#ifdef _MILSKO
struct _Milsko {
struct _MilskoWidget {
char* name;
MilskoLL lowlevel;
@@ -54,6 +54,8 @@ struct _Milsko {
MilskoWidget* children;
MilskoClass class;
int pressed;
MilskoTextKeyValue* text;
MilskoIntegerKeyValue* integer;
};