summaryrefslogtreecommitdiff
path: root/iup/src/iup_button.h
diff options
context:
space:
mode:
Diffstat (limited to 'iup/src/iup_button.h')
-rwxr-xr-xiup/src/iup_button.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/iup/src/iup_button.h b/iup/src/iup_button.h
new file mode 100755
index 0000000..f85720a
--- /dev/null
+++ b/iup/src/iup_button.h
@@ -0,0 +1,39 @@
+/** \file
+ * \brief Button Controls Private Declarations
+ *
+ * See Copyright Notice in "iup.h"
+ */
+
+#ifndef __IUP_BUTTON_H
+#define __IUP_BUTTON_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+void iupdrvButtonInitClass(Iclass* ic);
+void iupdrvButtonAddBorders(int *x, int *y);
+
+char* iupButtonGetPaddingAttrib(Ihandle* ih);
+
+enum{IUP_BUTTON_IMAGE=0x01, IUP_BUTTON_TEXT=0x02, IUP_BUTTON_BOTH=0x03};
+enum{IUP_IMGPOS_LEFT, IUP_IMGPOS_RIGHT, IUP_IMGPOS_TOP, IUP_IMGPOS_BOTTOM};
+
+struct _IcontrolData
+{
+ int type, /* the 2 buttons possibilities */
+ horiz_padding, vert_padding; /* button margin */
+ int spacing, img_position; /* used when both text and image are displayed */
+
+ /* used only by the Windows driver */
+ int horiz_alignment, vert_alignment;
+ unsigned long fgcolor;
+};
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif