summaryrefslogtreecommitdiff
path: root/iup/src/iup_fontdlg.c
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_fontdlg.c
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'iup/src/iup_fontdlg.c')
-rwxr-xr-xiup/src/iup_fontdlg.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/iup/src/iup_fontdlg.c b/iup/src/iup_fontdlg.c
new file mode 100755
index 0000000..9e0f05c
--- /dev/null
+++ b/iup/src/iup_fontdlg.c
@@ -0,0 +1,48 @@
+/** \file
+ * \brief IupFontDlg pre-defined dialog
+ *
+ * See Copyright Notice in "iup.h"
+ */
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <memory.h>
+#include <stdarg.h>
+#include <limits.h>
+
+#include "iup.h"
+
+#include "iup_object.h"
+#include "iup_attrib.h"
+#include "iup_str.h"
+#include "iup_stdcontrols.h"
+
+
+Ihandle* IupFontDlg(void)
+{
+ return IupCreate("fontdlg");
+}
+
+Iclass* iupFontDlgGetClass(void)
+{
+ Iclass* ic = iupClassNew(iupDialogGetClass());
+
+ ic->name = "fontdlg";
+ ic->nativetype = IUP_TYPEDIALOG;
+ ic->is_interactive = 1;
+
+ /* reset not used native dialog methods */
+ ic->parent->LayoutUpdate = NULL;
+ ic->parent->SetChildrenPosition = NULL;
+ ic->parent->Map = NULL;
+ ic->parent->UnMap = NULL;
+
+ /* IupFontDialog only */
+ iupClassRegisterAttribute(ic, "STATUS", NULL, NULL, NULL, NULL, IUPAF_NO_INHERIT|IUPAF_READONLY);
+ iupClassRegisterAttribute(ic, "VALUE", NULL, NULL, NULL, NULL, IUPAF_NO_INHERIT);
+
+ iupdrvFontDlgInitClass(ic);
+
+ return ic;
+}