summaryrefslogtreecommitdiff
path: root/iup/src/iup_childtree.h
blob: 4376c0bea84a897de93ff1e42e748da610912908 (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 Control Hierarchy Tree management.
 *
 * See Copyright Notice in "iup.h"
 */
 
#ifndef __IUP_CHILDTREE_H 
#define __IUP_CHILDTREE_H

#ifdef __cplusplus
extern "C" {
#endif

/** \defgroup childtree Child Tree Utilities
 * \par
 * Some native containers have an internal native child that 
 * will be the actual container of the children. This native container is 
 * returned by \ref iupClassObjectGetInnerNativeContainerHandle.
 * \par
 * Some native elements need an extra parent, the ih->handle points to the main element itself, 
 * NOT to the extra parent. This extra parent is stored as "_IUP_EXTRAPARENT".
 * \par
 * See \ref iup_childtree.h
 * \ingroup object */

/** Returns the native parent. It simply excludes containers that are from IUP_TYPEVOID classes.
 * \ingroup childtree */
Ihandle* iupChildTreeGetNativeParent(Ihandle* ih);

/** Returns the native parent handle. Uses \ref iupChildTreeGetNativeParent and \ref iupClassObjectGetInnerNativeContainerHandle.
 * \ingroup childtree */
InativeHandle* iupChildTreeGetNativeParentHandle(Ihandle* ih);

/** Adds the child directly to the parent tree.
 * \ingroup childtree */
void iupChildTreeAppend(Ihandle* parent, Ihandle* child);


/* Other functions declared in <iup.h> and implemented here. 
IupGetDialog
IupDetach
IupAppend
IupGetChild
IupGetNextChild
IupGetBrother
IupGetParent
*/


#ifdef __cplusplus
}
#endif

#endif