summaryrefslogtreecommitdiff
path: root/iup/src/iup_dlglist.h
blob: 99d3184e00fb2933cea707b7386047e738835ce2 (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
55
56
57
58
/** \file
 * \brief list of all created dialogs
 *
 * See Copyright Notice in "iup.h"
 */
 
#ifndef __IUP_DLGLIST_H 
#define __IUP_DLGLIST_H

#ifdef __cplusplus
extern "C" {
#endif


/** \defgroup dlglist List of Dialogs
 * \par
 * See \ref iup_dlglist.h
 * \ingroup cpi */


/** Adds a dialog to the list. Used only in IupDialog.
 * \ingroup dlglist */
void iupDlgListAdd(Ihandle *ih);

/** Removes a dialog from the list. Used only in IupDestroy.
 * \ingroup dlglist */
void iupDlgListRemove(Ihandle *ih);

/** Starts a loop for all the created dialogs. 
 * \ingroup dlglist */
Ihandle* iupDlgListFirst(void);

/** Retrieve the next dialog on the list. Must call iupDlgListFirst first.
 * \ingroup dlglist */
Ihandle* iupDlgListNext(void);

/** Increments the number of visible dialogs. 
 * \ingroup dlglist */
void iupDlgListVisibleInc(void);

/** Decrements the number of visible dialogs.
 * \ingroup dlglist */
void iupDlgListVisibleDec(void);

/** Returns the number of visible dialogs.
 * \ingroup dlglist */
int iupDlgListVisibleCount(void);

/* Destroy all dialogs and the list.
   Called only from IupClose. */
void iupDlgListDestroyAll(void);


#ifdef __cplusplus
}
#endif

#endif