mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-09 02:43:30 +00:00
class
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@10 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
#include <Milsko/MachDep.h>
|
||||
|
||||
typedef struct _MilskoClass* MilskoClass;
|
||||
|
||||
#ifdef _MILSKO
|
||||
#include <Milsko/LowLevel.h>
|
||||
|
||||
@@ -13,6 +15,7 @@ typedef struct _Milsko {
|
||||
HMILSKOLL lowlevel;
|
||||
HMILSKO parent;
|
||||
HMILSKO* children;
|
||||
MilskoClass class;
|
||||
}* HMILSKO;
|
||||
#else
|
||||
typedef void* HMILSKO;
|
||||
|
||||
@@ -9,6 +9,7 @@ HMILSKO MilskoCreateWidget(MilskoClass class, HMILSKO parent, int x, int y, unsi
|
||||
h->parent = parent;
|
||||
h->children = NULL;
|
||||
h->lowlevel = MilskoLLCreate(parent->lowlevel, x, y, width, height);
|
||||
h->class = class;
|
||||
|
||||
arrput(parent->children, h);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user