7 #include <FL/Fl_Group.H> 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);
322 void resize(
int,
int,
int,
int);
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);
387 int deselect(
const char *path,
int docallback=1);
389 int select_only(
Fl_Tree_Item *selitem,
int docallback=1);
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 w() const
The entire item's width to right edge of Fl_Tree's inner width within scrollbars. ...
Definition: Fl_Tree_Item.H:114
void show_self(const char *indent="") const
Print the tree as 'ascii art' to stdout.
Definition: Fl_Tree_Item.cxx:137
Fl_Tree_Item * next()
Return the next item in the tree.
Definition: Fl_Tree_Item.cxx:1300
an item was opened
Definition: Fl_Tree.H:281
int _tih
Tree widget inner xywh dimension: inside borders + scrollbars.
Definition: Fl_Tree.H:302
void select(int val=1)
Change the item's selection state to the optionally specified 'val'.
Definition: Fl_Tree_Item.H:305
Fl_Tree_Sort
Sort order options for items added to the tree.
Definition: Fl_Tree_Prefs.H:47
int _toh
Tree widget outer xywh dimension: outside scrollbars, inside widget border.
Definition: Fl_Tree.H:301
Fl_Tree_Select
Tree selection style.
Definition: Fl_Tree_Prefs.H:65
int is_open() const
See if the item is 'open'.
Definition: Fl_Tree_Item.H:291
int _tree_w
the calculated width of the entire tree hierarchy. See calc_tree()
Definition: Fl_Tree.H:305
Tree widget.
Definition: Fl_Tree.H:286
int deselect_all()
Deselect item and all its children.
Definition: Fl_Tree_Item.H:339
an item was selected
Definition: Fl_Tree.H:277
void open()
Open this item and all its children.
Definition: Fl_Tree_Item.cxx:1258
void deselect()
Disable the item's selection state.
Definition: Fl_Tree_Item.H:332
Base class for image caching, scaling and drawing.
Definition: Fl_Image.H:62
int select_all()
Select item and all its children.
Definition: Fl_Tree_Item.H:320
void close()
Close this item and all its children.
Definition: Fl_Tree_Item.cxx:1268
void draw()
Draws the widget.
Definition: Fl_Group.cxx:817
Fl_Boxtype
FLTK standard box types.
Definition: Enumerations.H:598
void clear()
Deletes all child widgets from memory recursively.
Definition: Fl_Group.cxx:388
Fl_Tree_Reason
The reason the callback was invoked.
Definition: Fl_Tree.H:275
Fl_Scrollbar * _vscroll
Vertical scrollbar.
Definition: Fl_Tree.H:299
Fl_Scrollbar * _hscroll
Horizontal scrollbar.
Definition: Fl_Tree.H:300
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:464
The Fl_Group class is the FLTK container widget.
Definition: Fl_Group.H:42
an item was closed
Definition: Fl_Tree.H:282
void select_toggle()
Toggle the item's selection state.
Definition: Fl_Tree_Item.H:309
int _tree_h
the calculated height of the entire tree hierarchy. See calc_tree()
Definition: Fl_Tree.H:307
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:497
int handle(int)
Handles the specified event.
Definition: Fl_Group.cxx:144
Fl_Image * usericon() const
Get the item's user icon as an Fl_Image. Returns '0' if disabled.
Definition: Fl_Tree_Item.H:411
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:413
char is_selected() const
See if the item is selected.
Definition: Fl_Tree_Item.H:351
void clear_children()
Clear all the children for this item.
Definition: Fl_Tree_Item.cxx:174
int is_close() const
See if the item is 'closed'.
Definition: Fl_Tree_Item.H:295
Fl_Tree_Item * prev()
Return the previous item in the tree.
Definition: Fl_Tree_Item.cxx:1321
Fl_Preferences provides methods to store user settings between application starts.
Definition: Fl_Preferences.H:63
#define FL_Down
The down arrow key.
Definition: Enumerations.H:465
Fl_Tree_Connector
Defines the style of connection lines between items.
Definition: Fl_Tree_Prefs.H:56
void open_toggle()
Toggle the item's open/closed state.
Definition: Fl_Tree_Item.H:299
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:1014
void resize(int, int, int, int)
Resizes the Fl_Group widget and all of its children.
Definition: Fl_Group.cxx:700
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:764
an item was de-selected
Definition: Fl_Tree.H:278
void recalc_tree()
Call this when our geometry is changed.
Definition: Fl_Tree_Item.cxx:1480
utility header to pull drawing functions together
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition: Enumerations.H:1042
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
Tree widget item.
Definition: Fl_Tree_Item.H:65
int Fl_Font
A font number is an index into the internal font table.
Definition: Enumerations.H:985
int visible() const
See if the item is visible. Alias for is_visible().
Definition: Fl_Tree_Item.H:388
This file contains the definitions for Fl_Tree's preferences.
Fl_Tree_Item_Reselect_Mode
Defines the ways an item can be (re) selected via item_reselect_mode().
Definition: Fl_Tree_Prefs.H:78
Manages an array of Fl_Tree_Item pointers.
Definition: Fl_Tree_Item_Array.H:45
an item was dragged into a new place
Definition: Fl_Tree.H:283
an item was re-selected (double-clicked).
Definition: Fl_Tree.H:279
Tree widget's preferences.
Definition: Fl_Tree_Prefs.H:105
const Fl_Tree_Item * find_item(char **arr) const
Find item by descending array of 'names'.
Definition: Fl_Tree_Item.cxx:252
This file contains the definitions for Fl_Tree_Item.
unknown reason
Definition: Fl_Tree.H:276
const Fl_Tree_Prefs & prefs() const
Return the parent tree's prefs.
Definition: Fl_Tree_Item.cxx:581