diff options
author | Pixel <pixel@nobis-crew.org> | 2009-11-04 11:56:41 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-11-04 11:59:33 -0800 |
commit | d577d991b97ae2b5ee1af23641bcffc3f83af5b2 (patch) | |
tree | 590639d50205d1bcfaff2a7d2dc6ebf3f373c7ed /iup/src/iup_tree.h |
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'iup/src/iup_tree.h')
-rwxr-xr-x | iup/src/iup_tree.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/iup/src/iup_tree.h b/iup/src/iup_tree.h new file mode 100755 index 0000000..f96a698 --- /dev/null +++ b/iup/src/iup_tree.h @@ -0,0 +1,57 @@ +/** \file + * \brief iuptree control internal definitions. + * + * See Copyright Notice in iup.h + */ + +#ifndef __IUP_TREE_H +#define __IUP_TREE_H + +#ifdef __cplusplus +extern "C" { +#endif + +/* Kinds of node */ +#define ITREE_BRANCH 0 +#define ITREE_LEAF 1 + +#define ITREE_MARK_SINGLE 0 +#define ITREE_MARK_MULTIPLE 1 + +#define ITREE_UPDATEIMAGE_LEAF 1 +#define ITREE_UPDATEIMAGE_COLLAPSED 2 +#define ITREE_UPDATEIMAGE_EXPANDED 3 + +void iupdrvTreeInitClass(Iclass* ic); +void iupTreeUpdateImages(Ihandle *ih); +void iupdrvTreeAddNode(Ihandle* ih, const char* id_string, int kind, const char* title, int add); +void iupdrvTreeUpdateMarkMode(Ihandle *ih); + +char* iupTreeGetSpacingAttrib(Ihandle* ih); + +/* Structure of the tree */ +struct _IcontrolData +{ + int mark_mode, + add_expanded, + show_dragdrop, + show_rename, + spacing; + + void* def_image_leaf; /* Default image leaf */ + void* def_image_collapsed; /* Default image collapsed */ + void* def_image_expanded; /* Default image expanded */ + + void* def_image_leaf_mask; /* Motif Only */ + void* def_image_collapsed_mask; + void* def_image_expanded_mask; + + int id_control; /* auxiliary variable for computing or finding the id of a node */ +}; + + +#ifdef __cplusplus +} +#endif + +#endif |