git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@42 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-09-29 02:43:01 +00:00
parent 224b13fb60
commit b20c81b46e
11 changed files with 189 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
#define __MW_BUTTON_H__
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#ifdef __cplusplus
extern "C" {

View File

@@ -3,6 +3,7 @@
#define __MW_DEFAULT_H__
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#ifdef __cplusplus
extern "C" {

View File

@@ -14,6 +14,7 @@ MWDECL MwLLColor MwParseColor(MwWidget handle, const char* text);
MWDECL void MwDrawRect(MwWidget handle, MwRect* rect, MwLLColor color);
MWDECL void MwDrawFrame(MwWidget handle, MwRect* rect, MwLLColor color, int invert);
MWDECL void MwDrawText(MwWidget handle, MwPoint* point, const char* text, MwLLColor color);
#ifdef __cplusplus
}

18
include/Mw/Font.h Normal file
View File

@@ -0,0 +1,18 @@
/* $Id$ */
#ifndef __MW_FONT_H__
#define __MW_FONT_H__
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
MWDECL MwFont MwFontData[];
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -9,6 +9,7 @@
#include <Mw/Core.h>
#include <Mw/Default.h>
#include <Mw/Draw.h>
#include <Mw/Font.h>
#include <Mw/Window.h>
#include <Mw/Button.h>

View File

@@ -10,6 +10,7 @@ typedef struct _MwRect MwRect;
typedef struct _MwIntegerKeyValue MwIntegerKeyValue;
typedef struct _MwTextKeyValue MwTextKeyValue;
typedef struct _MwUserHandlerKeyValue MwUserHandlerKeyValue;
typedef struct _MwFont MwFont;
#ifdef _MILSKO
typedef struct _MwWidget *MwWidget, MwWidgetRec;
#else
@@ -75,4 +76,10 @@ struct _MwClass {
MwHandler click;
};
struct _MwFont {
int left;
int top;
unsigned char data[14];
};
#endif

View File

@@ -3,6 +3,7 @@
#define __MW_WINDOW_H__
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#ifdef __cplusplus
extern "C" {