2025-09-28 06:52:49 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
#ifndef __MILSKO_CORE_H__
|
|
|
|
|
#define __MILSKO_CORE_H__
|
|
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
#include <Mw/MachDep.h>
|
|
|
|
|
#include <Mw/TypeDefs.h>
|
2025-09-28 07:03:05 +00:00
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
#define MwDispatch(x, y) \
|
2025-09-28 22:21:51 +00:00
|
|
|
if(x->class != NULL && x->class->y != NULL) x->class->y(x)
|
|
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
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);
|
2025-09-28 09:04:35 +00:00
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
MILSKODECL void MwLoop(MwWidget handle);
|
|
|
|
|
MILSKODECL void MwStep(MwWidget handle);
|
|
|
|
|
MILSKODECL int MwPending(MwWidget handle);
|
2025-09-28 09:27:28 +00:00
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
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);
|
2025-09-29 00:01:58 +00:00
|
|
|
|
2025-09-29 00:04:04 +00:00
|
|
|
MILSKODECL void MwAddUserHandler(MwWidget handle, const char* key, MwUserHandler handler, void* user_data);
|
|
|
|
|
MILSKODECL void MwDispatchUserHandler(MwWidget handle, const char* key, void* handler_data);
|
2025-09-28 06:52:49 +00:00
|
|
|
|
|
|
|
|
#endif
|