Milsko GUI Toolkit Documentation


Table of Contents

Mw/Button.h
MwButtonClass
Mw/Core.h
MwDispatch
MwCreateWidget
MwVaCreateWidget
MwVaListCreateWidget
MwDestroyWidget
MwLoop
MwStep
MwPending

Mw/Button.h

Button widget.

MWDECL MwClass MwButtonClass;
Button class.

Mw/Core.h

Core.

#define MwDispatch(x, y)
Dispatches a handler of widget class.
warning
Used internally.
Parameter x
Widget.
Parameter y
Handler name.

MWDECL MwWidget MwCreateWidget (
	MwClass widget_class,
	const char* name,
	MwWidget parent,
	int x,
	int y,
	unsigned int width,
	unsigned int height
);
Creates a widget.
Parameter widget_class
Widget class.
Parameter name
Widget name.
Parameter parent
Parent widget or NULL.
Parameter x
X.
Parameter y
Y.
Parameter width
Width.
Parameter height
Height.
Returns
Widget.

MWDECL MwWidget MwVaCreateWidget (
	MwClass widget_class,
	const char* name,
	MwWidget parent,
	int x,
	int y,
	unsigned int width,
	unsigned int height,
	...
);
Creates a widget.
Parameter widget_class
Widget class.
Parameter name
Widget name.
Parameter parent
Parent widget or NULL.
Parameter x
X.
Parameter y
Y.
Parameter width
Width.
Parameter height
Height.
Parameter ...
Same with MwVaApply.
Returns
Widget.

MWDECL MwWidget MwVaListCreateWidget (
	MwClass widget_class,
	const char* name,
	MwWidget parent,
	int x,
	int y,
	unsigned int width,
	unsigned int height,
	va_list va
);
Creates a widget.
Parameter widget_class
Widget class.
Parameter name
Widget name.
Parameter parent
Parent widget or NULL.
Parameter x
X.
Parameter y
Y.
Parameter width
Width.
Parameter height
Height.
Parameter va
Same with MwVaListApply.
Returns
Widget.

MWDECL void MwDestroyWidget (
	MwWidget handle
);
Destroys the widget and its child widgets.
Parameter handle
Widget.

MWDECL void MwLoop (
	MwWidget handle
);
Runs the main loop.
Parameter handle
Widget.

MWDECL void MwStep (
	MwWidget handle
);
Runs the single step.
Parameter handle
Widget.

MWDECL int MwPending (
	MwWidget handle
);
Check if any event is pending.
Parameter handle
Widget.
Returns
1 if any event is pending.