summaryrefslogtreecommitdiff
path: root/iup/src/iup_register.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_register.h
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'iup/src/iup_register.h')
-rwxr-xr-xiup/src/iup_register.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/iup/src/iup_register.h b/iup/src/iup_register.h
new file mode 100755
index 0000000..b5e6907
--- /dev/null
+++ b/iup/src/iup_register.h
@@ -0,0 +1,47 @@
+/** \file
+ * \brief Register the Controls
+ *
+ * See Copyright Notice in "iup.h"
+ */
+
+#ifndef __IUP_REGISTER_H
+#define __IUP_REGISTER_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/** \defgroup register Class Registration
+ * \par
+ * All controls are registered so the creation using IupCreate can work.
+ * \par
+ * See \ref iup_register.h
+ * \ingroup cpi */
+
+
+/** Returns a class instance from a class name. The class name must be previously registered using \ref iupRegisterClass.
+ * \ingroup register */
+Iclass* iupRegisterFindClass(const char* name);
+
+/** Register a class.
+ * \ingroup register */
+void iupRegisterClass(Iclass* ic);
+
+
+/* Register the internal classes. Called only from IupOpen. */
+void iupRegisterInternalClasses(void);
+
+/* Initializes the class registry. Called only from IupOpen. */
+void iupRegisterInit(void);
+void iupRegisterFinish(void);
+
+/* Get the registered classes. Used in documentation tests. */
+int iupRegisterGetClasses(char *list[], int n);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif