From aa4ba428ec915939f0f2f3bee0e860a2c27a74c5 Mon Sep 17 00:00:00 2001
From: NishiOwO
- Button widget.
-
+Milsko GUI Toolkit Documentation
-Mw/Button.h
-Table of Contents
+
+
-
+MWDECL MwClass MwButtonClass;Mw/Button.h
+
+
+
+
+MWDECL MwClass MwButtonClass;
-Mw/Core.h
-Mw/Core.h
+
+
#define MwDispatch(x, y)
+#define MwDispatch(x, y)
+MWDECL MwWidget MwCreateWidget (
+MWDECL MwWidget MwCreateWidget (
MwClass widget_class,
const char* name,
MwWidget parent,
@@ -53,6 +98,7 @@
unsigned int width,
unsigned int height
);
+
-
Creates a widget.
@@ -98,6 +144,219 @@
-
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.
+
+