forked from pyrite-dev/milsko
31 lines
1.4 KiB
C
31 lines
1.4 KiB
C
|
|
/* $Id$ */
|
||
|
|
#ifndef __MW_CORE_H__
|
||
|
|
#define __MW_CORE_H__
|
||
|
|
|
||
|
|
#include <Mw/MachDep.h>
|
||
|
|
#include <Mw/TypeDefs.h>
|
||
|
|
|
||
|
|
#define MwDispatch(x, y) \
|
||
|
|
if(x->class != NULL && x->class->y != NULL) x->class->y(x)
|
||
|
|
|
||
|
|
MWDECL MwWidget MwCreateWidget(MwClass class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height);
|
||
|
|
MWDECL MwWidget MwVaCreateWidget(MwClass class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height, ...);
|
||
|
|
MWDECL MwWidget MwVaListCreateWidget(MwClass class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height, va_list va);
|
||
|
|
MWDECL void MwDestroyWidget(MwWidget handle);
|
||
|
|
|
||
|
|
MWDECL void MwLoop(MwWidget handle);
|
||
|
|
MWDECL void MwStep(MwWidget handle);
|
||
|
|
MWDECL int MwPending(MwWidget handle);
|
||
|
|
|
||
|
|
MWDECL void MwSetInteger(MwWidget handle, const char* key, int n);
|
||
|
|
MWDECL void MwSetText(MwWidget handle, const char* key, const char* value);
|
||
|
|
MWDECL int MwGetInteger(MwWidget handle, const char* key);
|
||
|
|
MWDECL const char* MwGetText(MwWidget handle, const char* key);
|
||
|
|
MWDECL void MwSetDefault(MwWidget handle);
|
||
|
|
MWDECL void MwVaApply(MwWidget handle, ...);
|
||
|
|
MWDECL void MwVaListApply(MwWidget handle, va_list va);
|
||
|
|
|
||
|
|
MWDECL void MwAddUserHandler(MwWidget handle, const char* key, MwUserHandler handler, void* user_data);
|
||
|
|
MWDECL void MwDispatchUserHandler(MwWidget handle, const char* key, void* handler_data);
|
||
|
|
|
||
|
|
#endif
|