summaryrefslogtreecommitdiff
path: root/iup/src/iup_menu.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_menu.h
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'iup/src/iup_menu.h')
-rwxr-xr-xiup/src/iup_menu.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/iup/src/iup_menu.h b/iup/src/iup_menu.h
new file mode 100755
index 0000000..f1eb164
--- /dev/null
+++ b/iup/src/iup_menu.h
@@ -0,0 +1,35 @@
+/** \file
+ * \brief IUP Menu Class
+ *
+ * See Copyright Notice in "iup.h"
+ */
+
+#ifndef __IUP_MENU_H
+#define __IUP_MENU_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Shows a popup menu in the given position.
+* Must return IUP_ERROR or IUP_NOERROR.
+* Called only from IupPopup.
+*/
+int iupMenuPopup(Ihandle* ih, int x, int y);
+
+int iupdrvMenuPopup(Ihandle* ih, int x, int y);
+void iupdrvSeparatorInitClass(Iclass* ic);
+void iupdrvItemInitClass(Iclass* ic);
+void iupdrvMenuInitClass(Iclass* ic);
+void iupdrvSubmenuInitClass(Iclass* ic);
+
+char* iupMenuProcessTitle(Ihandle* ih, const char* title);
+int iupMenuGetChildId(Ihandle* ih);
+char* iupMenuGetChildIdStr(Ihandle* ih);
+int iupMenuIsMenuBar(Ihandle* ih);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif