9 #include <FL/Fl_Group.H>
10 #include <FL/Fl_Scrollbar.H>
303 #if FLTK_ABI_VERSION >= 10301
304 FL_TREE_REASON_RESELECTED,
319 #if FLTK_ABI_VERSION >= 10301
326 void fix_scrollbar_order();
337 Fl_Tree(
int X,
int Y,
int W,
int H,
const char *L=0);
346 void root_label(
const char *new_label);
365 int item_pathname(
char *pathname,
int pathnamelen,
const Fl_Tree_Item *item)
const;
381 int open(
const char *path,
int docallback=1);
384 int close(
const char *path,
int docallback=1);
386 int is_open(
const char *path)
const;
388 int is_close(
const char *path)
const;
394 int select(
const char *path,
int docallback=1);
397 int deselect(
const char *path,
int docallback=1);
399 int select_only(
Fl_Tree_Item *selitem,
int docallback=1);
409 Fl_Font item_labelfont()
const;
410 void item_labelfont(
Fl_Font val);
413 Fl_Color item_labelfgcolor(
void)
const;
414 void item_labelfgcolor(
Fl_Color val);
415 Fl_Color item_labelbgcolor(
void)
const;
416 void item_labelbgcolor(
Fl_Color val);
419 int marginleft()
const;
420 void marginleft(
int val);
421 int margintop()
const;
422 void margintop(
int val);
423 #if FLTK_ABI_VERSION >= 10301
424 int marginbottom()
const;
425 void marginbottom(
int val);
427 int linespacing()
const;
428 void linespacing(
int val);
429 int openchild_marginbottom()
const;
430 void openchild_marginbottom(
int val);
431 int usericonmarginleft()
const;
432 void usericonmarginleft(
int val);
433 int labelmarginleft()
const;
434 void labelmarginleft(
int val);
435 #if FLTK_ABI_VERSION >= 10301
436 int widgetmarginleft()
const;
437 void widgetmarginleft(
int val);
439 int connectorwidth()
const;
440 void connectorwidth(
int val);
447 int showcollapse()
const;
448 void showcollapse(
int val);
449 int showroot()
const;
450 void showroot(
int val);
459 #if FLTK_ABI_VERSION >= 10301
460 Fl_Tree_Item_Reselect_Mode item_reselect_mode()
const;
461 void item_reselect_mode(Fl_Tree_Item_Reselect_Mode mode);
462 Fl_Tree_Item_Draw_Mode item_draw_mode()
const;
463 void item_draw_mode(Fl_Tree_Item_Draw_Mode mode);
464 void item_draw_mode(
int mode);
473 int vposition()
const;
474 void vposition(
int pos);
477 int scrollbar_size()
const;
478 void scrollbar_size(
int size);
479 int is_vscroll_visible()
const;
Fl_Tree_Item * next()
Return the next item in the tree.
Definition: Fl_Tree_Item.cxx:872
an item was opened
Definition: Fl_Tree.H:306
void select(int val=1)
Change the item's selection state to the optionally specified 'val'.
Definition: Fl_Tree_Item.H:238
Fl_Tree_Sort
Sort order options for items added to the tree.
Definition: Fl_Tree_Prefs.H:49
Fl_Tree_Select
Tree selection style.
Definition: Fl_Tree_Prefs.H:67
Tree widget.
Definition: Fl_Tree.H:310
int deselect_all()
Deselect item and all its children.
Definition: Fl_Tree_Item.H:272
an item was selected
Definition: Fl_Tree.H:301
void open()
Open this item and all its children.
Definition: Fl_Tree_Item.cxx:833
void deselect()
Disable the item's selection state.
Definition: Fl_Tree_Item.H:265
Fl_Image is the base class used for caching and drawing all kinds of images in FLTK.
Definition: Fl_Image.H:44
int select_all()
Select item and all its children.
Definition: Fl_Tree_Item.H:253
void close()
Close this item and all its children.
Definition: Fl_Tree_Item.cxx:842
void draw()
Draws the widget.
Definition: Fl_Group.cxx:736
Fl_Boxtype
Definition: Enumerations.H:469
void clear()
Deletes all child widgets from memory recursively.
Definition: Fl_Group.cxx:381
Fl_Tree_Reason
The reason the callback was invoked.
Definition: Fl_Tree.H:299
Fl_Scrollbar * _vscroll
Vertical scrollbar.
Definition: Fl_Tree.H:329
void insert(Fl_Widget &, int i)
The widget is removed from its current group (if any) and then inserted into this group...
Definition: Fl_Group.cxx:456
The Fl_Group class is the FLTK container widget.
Definition: Fl_Group.H:36
an item was closed
Definition: Fl_Tree.H:307
void select_toggle()
Toggle the item's selection state.
Definition: Fl_Tree_Item.H:242
void add(Fl_Widget &)
The widget is removed from its current group (if any) and then added to the end of this group...
Definition: Fl_Group.cxx:489
int handle(int)
Handles the specified event.
Definition: Fl_Group.cxx:145
Fl_Tree_Item * insert_above(const Fl_Tree_Prefs &prefs, const char *new_label)
Insert a new item above this item.
Definition: Fl_Tree_Item.cxx:348
void clear_children()
Clear all the children for this item.
Definition: Fl_Tree_Item.cxx:166
Fl_Tree_Item * prev()
Return the previous item in the tree.
Definition: Fl_Tree_Item.cxx:903
Fl_Preferences provides methods to store user settings between application starts.
Definition: Fl_Preferences.H:60
Fl_Tree_Connector
Defines the style of connection lines between items.
Definition: Fl_Tree_Prefs.H:58
int is_close() const
See if the item is 'closed'.
Definition: Fl_Tree_Item.H:228
Fl_Image * usericon() const
Get the item's user icon as an Fl_Image. Returns '0' if disabled.
Definition: Fl_Tree_Item.H:336
void open_toggle()
Toggle the item's open/closed state.
Definition: Fl_Tree_Item.H:232
const Fl_Tree_Item * find_item(char **arr) const
Find item by descending array of names.
Definition: Fl_Tree_Item.cxx:232
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:746
an item was de-selected
Definition: Fl_Tree.H:302
utility header to pull drawing functions together
unsigned int Fl_Color
an FLTK color value
Definition: Enumerations.H:774
Tree item.
Definition: Fl_Tree_Item.H:54
int Fl_Font
A font number is an index into the internal font table.
Definition: Enumerations.H:717
This file contains the definitions for Fl_Tree's preferences.
Tree widget's preferences.
Definition: Fl_Tree_Prefs.H:104
const Fl_Tree_Item * find_clicked(const Fl_Tree_Prefs &prefs) const
Find the item that the last event was over.
Definition: Fl_Tree_Item.cxx:478
This file contains the definitions for Fl_Tree_Item.
char is_selected() const
See if the item is selected.
Definition: Fl_Tree_Item.H:284
void show_self(const char *indent="") const
Print the tree as 'ascii art' to stdout.
Definition: Fl_Tree_Item.cxx:127
unknown reason
Definition: Fl_Tree.H:300
int is_open() const
See if the item is 'open'.
Definition: Fl_Tree_Item.H:224