class
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@10 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
8c788c3911
commit
b12c08d2d3
2 changed files with 4 additions and 0 deletions
|
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
#include <Milsko/MachDep.h>
|
#include <Milsko/MachDep.h>
|
||||||
|
|
||||||
|
typedef struct _MilskoClass* MilskoClass;
|
||||||
|
|
||||||
#ifdef _MILSKO
|
#ifdef _MILSKO
|
||||||
#include <Milsko/LowLevel.h>
|
#include <Milsko/LowLevel.h>
|
||||||
|
|
||||||
|
|
@ -13,6 +15,7 @@ typedef struct _Milsko {
|
||||||
HMILSKOLL lowlevel;
|
HMILSKOLL lowlevel;
|
||||||
HMILSKO parent;
|
HMILSKO parent;
|
||||||
HMILSKO* children;
|
HMILSKO* children;
|
||||||
|
MilskoClass class;
|
||||||
}* HMILSKO;
|
}* HMILSKO;
|
||||||
#else
|
#else
|
||||||
typedef void* HMILSKO;
|
typedef void* HMILSKO;
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ HMILSKO MilskoCreateWidget(MilskoClass class, HMILSKO parent, int x, int y, unsi
|
||||||
h->parent = parent;
|
h->parent = parent;
|
||||||
h->children = NULL;
|
h->children = NULL;
|
||||||
h->lowlevel = MilskoLLCreate(parent->lowlevel, x, y, width, height);
|
h->lowlevel = MilskoLLCreate(parent->lowlevel, x, y, width, height);
|
||||||
|
h->class = class;
|
||||||
|
|
||||||
arrput(parent->children, h);
|
arrput(parent->children, h);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue