default color
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@23 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
6ffbb575e6
commit
d5a7bff6fd
7 changed files with 66 additions and 6 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <Milsko/MachDep.h>
|
||||
#include <Milsko/TypeDefs.h>
|
||||
#include <Milsko/LowLevel.h>
|
||||
|
||||
MILSKODECL MilskoWidget MilskoCreateWidget(MilskoClass class, const char* name, MilskoWidget parent, int x, int y, unsigned int width, unsigned int height);
|
||||
MILSKODECL void MilskoDestroyWidget(MilskoWidget handle);
|
||||
|
|
@ -12,6 +13,8 @@ MILSKODECL void MilskoLoop(MilskoWidget handle);
|
|||
MILSKODECL void MilskoStep(MilskoWidget handle);
|
||||
MILSKODECL int MilskoPending(MilskoWidget handle);
|
||||
|
||||
MILSKODECL MilskoLLColor MilskoParseColor(MilskoWidget handle, const char* text);
|
||||
|
||||
MILSKODECL void MilskoSetInteger(MilskoWidget handle, const char* key, int n);
|
||||
MILSKODECL void MilskoSetText(MilskoWidget handle, const char* key, const char* value);
|
||||
MILSKODECL int MilskoGetInteger(MilskoWidget handle, const char* key);
|
||||
|
|
|
|||
7
include/Milsko/Default.h
Normal file
7
include/Milsko/Default.h
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/* $Id$ */
|
||||
#ifndef __MILSKO_DEFAULT_H__
|
||||
#define __MILSKO_DEFAULT_H__
|
||||
|
||||
#define MILSKO_BACKGROUND "#ddd"
|
||||
|
||||
#endif
|
||||
|
|
@ -7,6 +7,7 @@
|
|||
#include <Milsko/StringDefs.h>
|
||||
#include <Milsko/TypeDefs.h>
|
||||
#include <Milsko/Core.h>
|
||||
#include <Milsko/Default.h>
|
||||
|
||||
#include <Milsko/Window.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -8,5 +8,6 @@
|
|||
#define MilskoNheight "Iheight"
|
||||
|
||||
#define MilskoNtitle "Stitle"
|
||||
#define MilskoNbackground "Sbackground"
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -56,6 +56,9 @@ typedef struct _MilskoClass {
|
|||
MilskoHandler destroy;
|
||||
MilskoHandler draw;
|
||||
MilskoHandler click;
|
||||
|
||||
MilskoTextKeyValue* text;
|
||||
MilskoIntegerKeyValue* integer;
|
||||
} *MilskoClass, MilskoClassRec;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue