// // "$Id$" // #ifndef _FL_TREE_ITEM_ARRAY_H #define _FL_TREE_ITEM_ARRAY_H #include #include "Fl_Export.H" class FL_EXPORT Fl_Tree_Item; // forward decl must *precede* first doxygen comment block // or doxygen will not document our class.. ////////////////////////// // FL/Fl_Tree_Item_Array.H ////////////////////////// // // Fl_Tree -- This file is part of the Fl_Tree widget for FLTK // Copyright (C) 2009-2010 by Greg Ercolano. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this // file is missing or damaged, see the license at: // // http://www.fltk.org/COPYING.php // // Please report all bugs and problems on the following page: // // http://www.fltk.org/str.php // /// /// \file /// \brief This file defines a class that manages an array of Fl_Tree_Item pointers. /// /// \brief Manages an array of Fl_Tree_Item pointers. /// /// Because FLTK 1.x.x. has mandated that templates and STL not be used, /// we use this class to dynamically manage the arrays. /// /// None of the methods do range checking on index values; the caller /// must be sure that index values are within the range 0= 10302 // NEW -- code moved to .cxx void swap(int ax, int bx); #else /*FLTK_ABI_VERSION*/ // OLD void swap(int ax, int bx) { Fl_Tree_Item *asave = _items[ax]; _items[ax] = _items[bx]; _items[bx] = asave; } #endif /*FLTK_ABI_VERSION*/ void clear(); void add(Fl_Tree_Item *val); void insert(int pos, Fl_Tree_Item *new_item); void remove(int index); int remove(Fl_Tree_Item *item); }; #endif /*_FL_TREE_ITEM_ARRAY_H*/ // // End of "$Id$". //