mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 16:10:50 +00:00
mhm
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@8 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
18
include/Milsko/Core.h
Normal file
18
include/Milsko/Core.h
Normal 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
|
||||
@@ -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
9
include/Milsko/MachDep.h
Normal file
@@ -0,0 +1,9 @@
|
||||
/* $Id$ */
|
||||
#ifndef __MILSKO_MACHDEP_H__
|
||||
#define __MILSKO_MACHDEP_H__
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#endif
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user