summaryrefslogtreecommitdiff
path: root/iup/src/iup_box.h
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-11-04 11:56:41 -0800
committerPixel <pixel@nobis-crew.org>2009-11-04 11:59:33 -0800
commitd577d991b97ae2b5ee1af23641bcffc3f83af5b2 (patch)
tree590639d50205d1bcfaff2a7d2dc6ebf3f373c7ed /iup/src/iup_box.h
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'iup/src/iup_box.h')
-rwxr-xr-xiup/src/iup_box.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/iup/src/iup_box.h b/iup/src/iup_box.h
new file mode 100755
index 0000000..5d79263
--- /dev/null
+++ b/iup/src/iup_box.h
@@ -0,0 +1,40 @@
+/** \file
+ * \brief Base for box Controls.
+ *
+ * See Copyright Notice in "iup.h"
+ */
+
+#ifndef __IUP_BOX_H
+#define __IUP_BOX_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+struct _IcontrolData
+{
+ int alignment,
+ expand_children,
+ is_homogeneous,
+ normalize_size,
+ margin_x,
+ margin_y,
+ gap;
+ int children_naturalsize, /* calculated in ComputeNaturalSize, used in SetChildrenCurrentSize */
+ homogeneous_size; /* calculated in SetChildrenCurrentSize, used in SetChildrenPosition */
+};
+
+Iclass* iupBoxClassBase(void);
+
+/* Implemented in iup_normalizer.c */
+void iupNormalizeSizeBoxChild(Ihandle *ih, int normalize, int children_natural_maxwidth, int children_natural_maxheight);
+int iupNormalizeGetNormalizeSize(const char* value);
+char* iupNormalizeGetNormalizeSizeStr(int normalize);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif