5#ifndef _FL_TREE_ITEM_ARRAY_H
6#define _FL_TREE_ITEM_ARRAY_H
52#if FLTK_ABI_VERSION >= 10303
58 void enlarge(
int count);
76#if FLTK_ABI_VERSION >= 10301
78 void swap(
int ax,
int bx);
81 void swap(
int ax,
int bx) {
83 _items[ax] = _items[bx];
87 int move(
int to,
int from);
88 int deparent(
int pos);
94 void remove(
int index);
96#if FLTK_ABI_VERSION >= 10303
101 if ( val ) _flags |= MANAGE_ITEM;
else _flags &= ~MANAGE_ITEM;
103 int manage_item_destroy()
const {
104 return _flags & MANAGE_ITEM ? 1 : 0;
Manages an array of Fl_Tree_Item pointers.
Definition: Fl_Tree_Item_Array.H:47
void manage_item_destroy(int val)
Option to control if Fl_Tree_Item_Array's destructor will also destroy the Fl_Tree_Item's.
Definition: Fl_Tree_Item_Array.H:100
int total() const
Return the total items in the array, or 0 if empty.
Definition: Fl_Tree_Item_Array.H:72
Fl_Tree_Item * operator[](int i)
Return the item and index i.
Definition: Fl_Tree_Item_Array.H:64
const Fl_Tree_Item * operator[](int i) const
Const version of operator[](int i)
Definition: Fl_Tree_Item_Array.H:68
Tree widget item.
Definition: Fl_Tree_Item.H:67