1 /* File : Fl_Tree_Item.i */
2 //%module Fl_Slider
3 
4 %feature("docstring") ::Fl_Tree_Item
5 """
6 This class is a single tree item, and manages all of the item's attributes. Fl_Tree_Item is used by Fl_Tree, which is comprised of many instances of Fl_Tree_Item.
7 Fl_Tree_Item is hierarchical; it dynamically manages an Fl_Tree_Item_Array of children that are themselves instances of Fl_Tree_Item. Each item can have zero or more children. When an item has children, close() and open() can be used to hide or show them. Items have their own attributes; font size, face, color. Items maintain their own hierarchy of children. When you make changes to items, you'll need to tell the tree to redraw() for the changes to show up.
8 """ ;
9 
10 %{
11 #include "FL/Fl_Tree_Item.H"
12 %}
13 
14 %include "macros.i"
15 
16 CHANGE_OWNERSHIP(Fl_Tree_Item)
17 
18 
19 // typemap to map output of Fl_Button.valueFl_Tree_Item.is_selected from char to int
20 %typemap(out) char {
21     $result = PyInt_FromLong( (long)$1);
22 }
23 
24 %include "FL/Fl_Tree_Item.H"
25 
26 
27 // clear the typemap for char
28 %typemap(out) char;