From b12c08d2d3e6cace0a517c74b511ae791c8697d1 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sun, 28 Sep 2025 07:11:55 +0000 Subject: [PATCH] class git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@10 b9cfdab3-6d41-4d17-bbe4-086880011989 --- include/Milsko/Core.h | 3 +++ src/core.c | 1 + 2 files changed, 4 insertions(+) diff --git a/include/Milsko/Core.h b/include/Milsko/Core.h index f08727f..5a45bd2 100644 --- a/include/Milsko/Core.h +++ b/include/Milsko/Core.h @@ -4,6 +4,8 @@ #include +typedef struct _MilskoClass* MilskoClass; + #ifdef _MILSKO #include @@ -13,6 +15,7 @@ typedef struct _Milsko { HMILSKOLL lowlevel; HMILSKO parent; HMILSKO* children; + MilskoClass class; }* HMILSKO; #else typedef void* HMILSKO; diff --git a/src/core.c b/src/core.c index 03bd07c..c1ee24e 100644 --- a/src/core.c +++ b/src/core.c @@ -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);