git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@8 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-09-28 06:52:49 +00:00
parent 19eec89b60
commit bf857097e5
11 changed files with 2020 additions and 29 deletions

18
include/Milsko/Core.h Normal file
View File

@@ -0,0 +1,18 @@
/* $Id$ */
#ifndef __MILSKO_CORE_H__
#define __MILSKO_CORE_H__
#ifdef _MILSKO
#include <Milsko/LowLevel.h>
typedef struct _Milsko {
HMILSKOLL lowlevel;
}* HMILSKO;
#else
typedef void* HMILSKO;
#endif
HMILSKO MilskoCreateWidget(HMILSKO parent, int x, int y, unsigned int width, unsigned int height);
void MilskoDestroyWidget(HMILSKO handle);
#endif

View File

@@ -1,10 +1,6 @@
/* $Id$ */
#ifndef __MILSKO_PLATFORM_H__
#define __MILSKO_PLATFORM_H__
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#ifndef __MILSKO_LL_H__
#define __MILSKO_LL_H__
#include <Milsko/TypeDef.h>
@@ -16,16 +12,16 @@
#include <Milsko/GDI.h>
#endif
#else
typedef void* HMILSKO;
typedef void* HMILSKOLL;
typedef void* HMILSKOCOLOR;
#endif
HMILSKO MilskoLLCreate(HMILSKO parent, int x, int y, int width, int height);
void MilskoLLDestroy(HMILSKO handle);
void MilskoLLPolygon(HMILSKO handle, MilskoPoint* points, int points_count, HMILSKOCOLOR color);
HMILSKOCOLOR MilskoLLAllocColor(HMILSKO handle, int r, int g, int b);
void MilskoLLGetXYWH(HMILSKO handle, int* x, int* y, unsigned int* w, unsigned int* h);
int MilskoLLPending(HMILSKO handle);
void MilskoLLNextEvent(HMILSKO handle);
HMILSKOLL MilskoLLCreate(HMILSKOLL parent, int x, int y, int width, int height);
void MilskoLLDestroy(HMILSKOLL handle);
void MilskoLLPolygon(HMILSKOLL handle, MilskoPoint* points, int points_count, HMILSKOCOLOR color);
HMILSKOCOLOR MilskoLLAllocColor(HMILSKOLL handle, int r, int g, int b);
void MilskoLLGetXYWH(HMILSKOLL handle, int* x, int* y, unsigned int* w, unsigned int* h);
int MilskoLLPending(HMILSKOLL handle);
void MilskoLLNextEvent(HMILSKOLL handle);
#endif

9
include/Milsko/MachDep.h Normal file
View File

@@ -0,0 +1,9 @@
/* $Id$ */
#ifndef __MILSKO_MACHDEP_H__
#define __MILSKO_MACHDEP_H__
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#endif

View File

@@ -2,6 +2,8 @@
#ifndef __MILSKO_MILSKO_H__
#define __MILSKO_MILSKO_H__
#include <Milsko/MachDep.h>
#include <Milsko/LowLevel.h>
#include <Milsko/Core.h>
#endif

View File

@@ -5,7 +5,7 @@
#include <X11/X.h>
#include <X11/Xutil.h>
typedef struct __Milsko {
typedef struct _MilskoLowLevel {
Display* display;
Window window;
GC gc;
@@ -14,9 +14,9 @@ typedef struct __Milsko {
int y;
unsigned int width;
unsigned int height;
}* HMILSKO;
}* HMILSKOLL;
typedef struct __MilskoColor {
typedef struct _MilskoColor {
unsigned long pixel;
}* HMILSKOCOLOR;