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);
448 void select_toggle(
Fl_Tree_Item *item,
int docallback=1);
450 int deselect(
const char *path,
int docallback=1);
451 int deselect_all(
Fl_Tree_Item *item=0,
int docallback=1);
452 int select_only(
Fl_Tree_Item *selitem,
int docallback=1);
459#if FLTK_ABI_VERSION >= 10303
477 int is_selected(
const char *path);
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:884
#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:941
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:913
Fl_Boxtype
Definition Enumerations.H:610
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
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