mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-26 11:03:05 +00:00
things
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@36 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -2,30 +2,30 @@
|
||||
#ifndef __MILSKO_CORE_H__
|
||||
#define __MILSKO_CORE_H__
|
||||
|
||||
#include <Milsko/MachDep.h>
|
||||
#include <Milsko/TypeDefs.h>
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#define MilskoDispatch(x, y) \
|
||||
#define MwDispatch(x, y) \
|
||||
if(x->class != NULL && x->class->y != NULL) x->class->y(x)
|
||||
|
||||
MILSKODECL MilskoWidget MilskoCreateWidget(MilskoClass class, const char* name, MilskoWidget parent, int x, int y, unsigned int width, unsigned int height);
|
||||
MILSKODECL MilskoWidget MilskoVaCreateWidget(MilskoClass class, const char* name, MilskoWidget parent, int x, int y, unsigned int width, unsigned int height, ...);
|
||||
MILSKODECL MilskoWidget MilskoVaListCreateWidget(MilskoClass class, const char* name, MilskoWidget parent, int x, int y, unsigned int width, unsigned int height, va_list va);
|
||||
MILSKODECL void MilskoDestroyWidget(MilskoWidget handle);
|
||||
MILSKODECL MwWidget MwCreateWidget(MwClass class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height);
|
||||
MILSKODECL MwWidget MwVaCreateWidget(MwClass class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height, ...);
|
||||
MILSKODECL MwWidget MwVaListCreateWidget(MwClass class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height, va_list va);
|
||||
MILSKODECL void MwDestroyWidget(MwWidget handle);
|
||||
|
||||
MILSKODECL void MilskoLoop(MilskoWidget handle);
|
||||
MILSKODECL void MilskoStep(MilskoWidget handle);
|
||||
MILSKODECL int MilskoPending(MilskoWidget handle);
|
||||
MILSKODECL void MwLoop(MwWidget handle);
|
||||
MILSKODECL void MwStep(MwWidget handle);
|
||||
MILSKODECL int MwPending(MwWidget handle);
|
||||
|
||||
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);
|
||||
MILSKODECL const char* MilskoGetText(MilskoWidget handle, const char* key);
|
||||
MILSKODECL void MilskoSetDefault(MilskoWidget handle);
|
||||
MILSKODECL void MilskoVaApply(MilskoWidget handle, ...);
|
||||
MILSKODECL void MilskoVaListApply(MilskoWidget handle, va_list va);
|
||||
MILSKODECL void MwSetInteger(MwWidget handle, const char* key, int n);
|
||||
MILSKODECL void MwSetText(MwWidget handle, const char* key, const char* value);
|
||||
MILSKODECL int MwGetInteger(MwWidget handle, const char* key);
|
||||
MILSKODECL const char* MwGetText(MwWidget handle, const char* key);
|
||||
MILSKODECL void MwSetDefault(MwWidget handle);
|
||||
MILSKODECL void MwVaApply(MwWidget handle, ...);
|
||||
MILSKODECL void MwVaListApply(MwWidget handle, va_list va);
|
||||
|
||||
MILSKODECL void MilskoAddUserHandler(MilskoWidget handle, const char* key, MilskoUserHandler handler, void* user_data);
|
||||
MILSKODECL void MilskoDispatchUserHandler(MilskoWidget handle, const char* key, void* handler_data);
|
||||
MILSKODECL void MwAddUserHandler(MwWidget handle, const char* key, MwUserHandler handler, void* user_data);
|
||||
MILSKODECL void MwDispatchUserHandler(MwWidget handle, const char* key, void* handler_data);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user