summaryrefslogtreecommitdiff
path: root/iup/src/iup_focus.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_focus.h
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'iup/src/iup_focus.h')
-rwxr-xr-xiup/src/iup_focus.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/iup/src/iup_focus.h b/iup/src/iup_focus.h
new file mode 100755
index 0000000..239e233
--- /dev/null
+++ b/iup/src/iup_focus.h
@@ -0,0 +1,53 @@
+/** \file
+ * \brief Keyboard Focus navigation
+ *
+ * See Copyright Notice in "iup.h"
+ */
+
+#ifndef __IUP_FOCUS_H
+#define __IUP_FOCUS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/** \defgroup focus Keyboard Focus
+ * \par
+ * See \ref iup_focus.h
+ * \ingroup cpi */
+
+
+/** Utility to check if a control can have the keyboard input focus.
+ * To receive the focus must be interactive, has CANFOCUS=YES, is mapped, is visible and is active.
+ * \ingroup focus */
+int iupFocusCanAccept(Ihandle *ih);
+
+/** Call GETFOCUS_CB and FOCUS_CB.
+ * \ingroup focus */
+void iupCallGetFocusCb(Ihandle *ih);
+
+/** Call KILLFOCUS_CB and FOCUS_CB.
+ * \ingroup focus */
+void iupCallKillFocusCb(Ihandle *ih);
+
+/** Returns the next interactive brother. Independs if it can receive the focus.
+ * \ingroup focus */
+Ihandle* iupFocusNextInteractive(Ihandle *ih);
+
+/* Used only in iupKeyProcessNavigation */
+void iupFocusNext(Ihandle *ih);
+void iupFocusPrevious(Ihandle *ih);
+
+
+/* Other functions declared in <iup.h> and implemented here.
+IupPreviousField
+IupNextField
+*/
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif