8#include <FL/Fl_Scrollbar.H>
296 void fix_scrollbar_order();
318 Fl_Tree(
int X,
int Y,
int W,
int H, const
char *L=0);
327 void root_label(const
char *new_label);
348 int item_pathname(
char *pathname,
int pathnamelen,
const Fl_Tree_Item *item)
const;
371 int open(
const char *path,
int docallback=1);
374 int close(
const char *path,
int docallback=1);
376 int is_open(
const char *path)
const;
378 int is_close(
const char *path)
const;
384 int select(
const char *path,
int docallback=1);
385 void select_toggle(
Fl_Tree_Item *item,
int docallback=1);
387 int deselect(
const char *path,
int docallback=1);
388 int deselect_all(
Fl_Tree_Item *item=0,
int docallback=1);
389 int select_only(
Fl_Tree_Item *selitem,
int docallback=1);
403 int is_selected(
const char *path);
408 Fl_Font item_labelfont()
const;
409 void item_labelfont(
Fl_Font val);
412 Fl_Color item_labelfgcolor(
void)
const;
413 void item_labelfgcolor(
Fl_Color val);
414 Fl_Color item_labelbgcolor(
void)
const;
415 void item_labelbgcolor(
Fl_Color val);
418 int marginleft()
const;
419 void marginleft(
int val);
420 int margintop()
const;
421 void margintop(
int val);
422 int marginbottom()
const;
423 void marginbottom(
int val);
424 int linespacing()
const;
425 void linespacing(
int val);
426 int openchild_marginbottom()
const;
427 void openchild_marginbottom(
int val);
428 int usericonmarginleft()
const;
429 void usericonmarginleft(
int val);
430 int labelmarginleft()
const;
431 void labelmarginleft(
int val);
432 int widgetmarginleft()
const;
433 void widgetmarginleft(
int val);
434 int connectorwidth()
const;
435 void connectorwidth(
int val);
442 int showcollapse()
const;
443 void showcollapse(
int val);
444 int showroot()
const;
445 void showroot(
int val);
458 void item_draw_mode(
int mode);
459 void calc_dimensions();
469 int vposition()
const;
470 void vposition(
int pos);
471 int hposition()
const;
472 void hposition(
int pos);
475 int scrollbar_size()
const;
476 void scrollbar_size(
int size);
477 int is_vscroll_visible()
const;
478 int is_hscroll_visible()
const;
int Fl_Font
A font number is an index into the internal font table.
Definition Enumerations.H:1044
#define FL_Down
The down arrow key.
Definition Enumerations.H:493
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition Enumerations.H:1101
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:1073
Fl_Boxtype
FLTK standard box types.
Definition Enumerations.H:626
@ FL_REASON_DESELECTED
an item was de-selected
Definition Enumerations.H:449
@ FL_REASON_CLOSED
an item was closed
Definition Enumerations.H:452
@ FL_REASON_OPENED
an item was opened
Definition Enumerations.H:451
@ FL_REASON_UNKNOWN
unknown or unset reason
Definition Enumerations.H:447
@ FL_REASON_SELECTED
an item was selected
Definition Enumerations.H:448
@ FL_REASON_DRAGGED
an item was dragged into a new place
Definition Enumerations.H:453
@ FL_REASON_RESELECTED
an item was re-selected (double-clicked).
Definition Enumerations.H:450
Fl_Group and Fl_End classes.
Fl_Tree_Reason
The reason the callback was invoked.
Definition Fl_Tree.H:275
@ FL_TREE_REASON_RESELECTED
an item was re-selected (double-clicked).
Definition Fl_Tree.H:279
@ FL_TREE_REASON_CLOSED
an item was closed
Definition Fl_Tree.H:282
@ FL_TREE_REASON_NONE
unknown reason
Definition Fl_Tree.H:276
@ FL_TREE_REASON_OPENED
an item was opened
Definition Fl_Tree.H:281
@ FL_TREE_REASON_SELECTED
an item was selected
Definition Fl_Tree.H:277
@ FL_TREE_REASON_DRAGGED
an item was dragged into a new place
Definition Fl_Tree.H:283
@ FL_TREE_REASON_DESELECTED
an item was de-selected
Definition Fl_Tree.H:278
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:56
Fl_Tree_Sort
Sort order options for items added to the tree.
Definition Fl_Tree_Prefs.H:47
Fl_Tree_Item_Reselect_Mode
Defines the ways an item can be (re) selected via item_reselect_mode().
Definition Fl_Tree_Prefs.H:78
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:87
Fl_Tree_Select
Tree selection style.
Definition Fl_Tree_Prefs.H:65
The Fl_Group class is the FLTK container widget.
Definition Fl_Group.H:56
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:558
void draw() FL_OVERRIDE
Draws the widget.
Definition Fl_Group.cxx:926
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:509
void clear()
Deletes all child widgets from memory recursively.
Definition Fl_Group.cxx:379
void remove(int index)
Removes the widget at index from the group but does not delete it.
Definition Fl_Group.cxx:583
Base class for image caching, scaling and drawing.
Definition Fl_Image.H:60
Fl_Preferences store user settings between application starts.
Definition Fl_Preferences.H:124
Manages an array of Fl_Tree_Item pointers.
Definition Fl_Tree_Item_Array.H:45
Tree widget item.
Definition Fl_Tree_Item.H:65
Tree widget's preferences.
Definition Fl_Tree_Prefs.H:105
Tree widget.
Definition Fl_Tree.H:286
int _toh
Tree widget outer xywh dimension: outside scrollbars, inside widget border.
Definition Fl_Tree.H:301
int _tree_h
the calculated height of the entire tree hierarchy. See calc_tree()
Definition Fl_Tree.H:307
int _tree_w
the calculated width of the entire tree hierarchy. See calc_tree()
Definition Fl_Tree.H:305
Fl_Scrollbar * _hscroll
Horizontal scrollbar.
Definition Fl_Tree.H:300
int _tih
Tree widget inner xywh dimension: inside borders + scrollbars.
Definition Fl_Tree.H:302
Fl_Scrollbar * _vscroll
Vertical scrollbar.
Definition Fl_Tree.H:299
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46
utility header to pull drawing functions together