9#include <FL/Fl_Group.H>
10#include <FL/Fl_Scrollbar.H>
315#if FLTK_ABI_VERSION >= 10301
331#if FLTK_ABI_VERSION >= 10301
337 void fix_scrollbar_order();
341#if FLTK_ABI_VERSION >= 10303
353#if FLTK_ABI_VERSION >= 10303
363 Fl_Tree(
int X,
int Y,
int W,
int H,
const char *L=0);
368 void resize(
int,
int,
int,
int);
373 void root_label(
const char *new_label);
381#if FLTK_ABI_VERSION >= 10303
399 int item_pathname(
char *pathname,
int pathnamelen,
const Fl_Tree_Item *item)
const;
400#if FLTK_ABI_VERSION >= 10303
416#if FLTK_ABI_VERSION >= 10303
422#if FLTK_ABI_VERSION >= 10303
434 int open(
const char *path,
int docallback=1);
437 int close(
const char *path,
int docallback=1);
439 int is_open(
const char *path)
const;
441 int is_close(
const char *path)
const;
447 int select(
const char *path,
int docallback=1);
450 int deselect(
const char *path,
int docallback=1);
452 int select_only(
Fl_Tree_Item *selitem,
int docallback=1);
459#if FLTK_ABI_VERSION >= 10303
482 Fl_Font item_labelfont()
const;
483 void item_labelfont(
Fl_Font val);
486 Fl_Color item_labelfgcolor(
void)
const;
487 void item_labelfgcolor(
Fl_Color val);
488 Fl_Color item_labelbgcolor(
void)
const;
489 void item_labelbgcolor(
Fl_Color val);
492 int marginleft()
const;
493 void marginleft(
int val);
494 int margintop()
const;
495 void margintop(
int val);
496#if FLTK_ABI_VERSION >= 10301
497 int marginbottom()
const;
498 void marginbottom(
int val);
500 int linespacing()
const;
501 void linespacing(
int val);
502 int openchild_marginbottom()
const;
503 void openchild_marginbottom(
int val);
504 int usericonmarginleft()
const;
505 void usericonmarginleft(
int val);
506 int labelmarginleft()
const;
507 void labelmarginleft(
int val);
508#if FLTK_ABI_VERSION >= 10301
509 int widgetmarginleft()
const;
510 void widgetmarginleft(
int val);
512 int connectorwidth()
const;
513 void connectorwidth(
int val);
520 int showcollapse()
const;
521 void showcollapse(
int val);
522 int showroot()
const;
523 void showroot(
int val);
532#if FLTK_ABI_VERSION >= 10301
537 void item_draw_mode(
int mode);
539#if FLTK_ABI_VERSION >= 10303
540 void calc_dimensions();
551 int vposition()
const;
552 void vposition(
int pos);
553 int hposition()
const;
554 void hposition(
int pos);
557 int scrollbar_size()
const;
558 void scrollbar_size(
int size);
559 int is_vscroll_visible()
const;
560 int is_hscroll_visible()
const;
int Fl_Font
A font number is an index into the internal font table.
Definition: Enumerations.H:875
#define FL_Down
The down arrow key.
Definition: Enumerations.H:481
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition: Enumerations.H:932
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:904
Fl_Boxtype
Definition: Enumerations.H:601
Fl_Tree_Reason
The reason the callback was invoked.
Definition: Fl_Tree.H:311
@ FL_TREE_REASON_RESELECTED
an item was re-selected (e.g. double-clicked)
Definition: Fl_Tree.H:316
@ FL_TREE_REASON_CLOSED
an item was closed
Definition: Fl_Tree.H:319
@ FL_TREE_REASON_NONE
unknown reason
Definition: Fl_Tree.H:312
@ FL_TREE_REASON_OPENED
an item was opened
Definition: Fl_Tree.H:318
@ FL_TREE_REASON_SELECTED
an item was selected
Definition: Fl_Tree.H:313
@ FL_TREE_REASON_DRAGGED
an item was dragged into a new place
Definition: Fl_Tree.H:320
@ FL_TREE_REASON_DESELECTED
an item was de-selected
Definition: Fl_Tree.H:314
This file contains the definitions for Fl_Tree_Item.
This file contains the definitions for Fl_Tree's preferences.
Fl_Tree_Connector
Defines the style of connection lines between items.
Definition: Fl_Tree_Prefs.H:58
Fl_Tree_Sort
Sort order options for items added to the tree.
Definition: Fl_Tree_Prefs.H:49
Fl_Tree_Item_Reselect_Mode
Defines the ways an item can be (re) selected via item_reselect_mode().
Definition: Fl_Tree_Prefs.H:81
Fl_Tree_Item_Draw_Mode
Bit flags that control how item's labels and widget()s are drawn in the tree via item_draw_mode().
Definition: Fl_Tree_Prefs.H:90
Fl_Tree_Select
Tree selection style.
Definition: Fl_Tree_Prefs.H:67
The Fl_Group class is the FLTK container widget.
Definition: Fl_Group.H:41
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:491
int handle(int)
Handles the specified event.
Definition: Fl_Group.cxx:147
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:458
void draw()
Draws the widget.
Definition: Fl_Group.cxx:738
void resize(int, int, int, int)
Resizes the Fl_Group widget and all of its children.
Definition: Fl_Group.cxx:634
void clear()
Deletes all child widgets from memory recursively.
Definition: Fl_Group.cxx:383
void remove(int index)
Removes the widget at index from the group but does not delete it.
Definition: Fl_Group.cxx:503
Base class for image caching and drawing.
Definition: Fl_Image.H:55
Fl_Preferences provides methods to store user settings between application starts.
Definition: Fl_Preferences.H:60
Manages an array of Fl_Tree_Item pointers.
Definition: Fl_Tree_Item_Array.H:47
Tree widget item.
Definition: Fl_Tree_Item.H:67
int w() const
The entire item's width to right edge of Fl_Tree's inner width within scrollbars.
Definition: Fl_Tree_Item.H:142
int visible() const
See if the item is visible. Alias for is_visible().
Definition: Fl_Tree_Item.H:427
void deselect()
Disable the item's selection state.
Definition: Fl_Tree_Item.H:371
const Fl_Tree_Prefs & prefs() const
Return the parent tree's prefs.
Definition: Fl_Tree_Item.cxx:618
void open_toggle()
Toggle the item's open/closed state.
Definition: Fl_Tree_Item.H:338
const Fl_Tree_Item * find_clicked(const Fl_Tree_Prefs &prefs, int yonly=0) const
Find the item that the last event was over.
Definition: Fl_Tree_Item.cxx:803
Fl_Tree_Item * next()
Return the next item in the tree.
Definition: Fl_Tree_Item.cxx:1608
void open()
Open this item and all its children.
Definition: Fl_Tree_Item.cxx:1566
int select_all()
Select item and all its children.
Definition: Fl_Tree_Item.H:359
int is_close() const
See if the item is 'closed'.
Definition: Fl_Tree_Item.H:334
const Fl_Tree_Item * find_item(char **arr) const
Find item by descending array of 'names'.
Definition: Fl_Tree_Item.cxx:291
void clear_children()
Clear all the children for this item.
Definition: Fl_Tree_Item.cxx:213
void recalc_tree()
Call this when our geometry is changed.
Definition: Fl_Tree_Item.cxx:1842
void select(int val=1)
Change the item's selection state to the optionally specified 'val'.
Definition: Fl_Tree_Item.H:344
Fl_Tree_Item * prev()
Return the previous item in the tree.
Definition: Fl_Tree_Item.cxx:1640
char is_selected() const
See if the item is selected.
Definition: Fl_Tree_Item.H:390
void close()
Close this item and all its children.
Definition: Fl_Tree_Item.cxx:1576
void select_toggle()
Toggle the item's selection state.
Definition: Fl_Tree_Item.H:348
int is_open() const
See if the item is 'open'.
Definition: Fl_Tree_Item.H:330
Fl_Tree_Item * insert_above(const Fl_Tree_Prefs &prefs, const char *new_label)
Insert a new item named 'new_label' above this item.
Definition: Fl_Tree_Item.cxx:461
void show_self(const char *indent="") const
Print the tree as 'ascii art' to stdout.
Definition: Fl_Tree_Item.cxx:171
int deselect_all()
Deselect item and all its children.
Definition: Fl_Tree_Item.H:378
Fl_Image * usericon() const
Get the item's user icon as an Fl_Image. Returns '0' if disabled.
Definition: Fl_Tree_Item.H:450
Tree widget's preferences.
Definition: Fl_Tree_Prefs.H:111
Tree widget.
Definition: Fl_Tree.H:323
int _toh
Tree widget outer xywh dimension: outside scrollbars, inside widget border.
Definition: Fl_Tree.H:343
int _tree_h
the calculated height of the entire tree hierarchy. See calc_tree()
Definition: Fl_Tree.H:349
int _tree_w
the calculated width of the entire tree hierarchy. See calc_tree()
Definition: Fl_Tree.H:347
Fl_Scrollbar * _hscroll
Horizontal scrollbar.
Definition: Fl_Tree.H:342
int _tih
Tree widget inner xywh dimension: inside borders + scrollbars.
Definition: Fl_Tree.H:344
Fl_Scrollbar * _vscroll
Vertical scrollbar.
Definition: Fl_Tree.H:340
utility header to pull drawing functions together