From d577d991b97ae2b5ee1af23641bcffc3f83af5b2 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 4 Nov 2009 11:56:41 -0800 Subject: Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux. --- iup/src/iup_childtree.h | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100755 iup/src/iup_childtree.h (limited to 'iup/src/iup_childtree.h') diff --git a/iup/src/iup_childtree.h b/iup/src/iup_childtree.h new file mode 100755 index 0000000..4376c0b --- /dev/null +++ b/iup/src/iup_childtree.h @@ -0,0 +1,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 and implemented here. +IupGetDialog +IupDetach +IupAppend +IupGetChild +IupGetNextChild +IupGetBrother +IupGetParent +*/ + + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3