summaryrefslogtreecommitdiff
path: root/iup/src/iup_focus.h
blob: 9fb4e58918cd0c896639d978a4b4b91012b7cb12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/** \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);

void iupSetCurrentFocus(Ihandle *ih);

/* Other functions declared in <iup.h> and implemented here. 
IupPreviousField
IupNextField
*/


#ifdef __cplusplus
}
#endif

#endif