76#if FLTK_ABI_VERSION >= 10301
98#if FLTK_ABI_VERSION >= 10303
100typedef void (Fl_Tree_Item_Draw_Callback)(
Fl_Tree_Item*,
void*);
116#if FLTK_ABI_VERSION >= 10301
119 int _openchild_marginbottom;
120 int _usericonmarginleft;
121 int _labelmarginleft;
122#if FLTK_ABI_VERSION >= 10301
123 int _widgetmarginleft;
135#if FLTK_ABI_VERSION >= 10304
145#if FLTK_ABI_VERSION >= 10301
149#if FLTK_ABI_VERSION >= 10303
150 Fl_Tree_Item_Draw_Callback *_itemdrawcallback;
151 void *_itemdrawuserdata;
155#if FLTK_ABI_VERSION >= 10304
174#if FLTK_ABI_VERSION >= 10301
180 return _labelbgcolor;
190 inline Fl_Color item_labelbgcolor()
const {
191 return(_labelbgcolor);
194 inline void item_labelbgcolor(
Fl_Color val) {
238#if FLTK_ABI_VERSION >= 10301
242 return(_marginbottom);
252 return(_openchild_marginbottom);
256 _openchild_marginbottom = val;
260 return(_usericonmarginleft);
264 _usericonmarginleft = val;
268 return(_labelmarginleft);
272 _labelmarginleft = val;
274#if FLTK_ABI_VERSION >= 10301
277 return(_widgetmarginleft);
281 _widgetmarginleft = val;
286 return(_linespacing);
298 return(_connectorcolor);
302 _connectorcolor = val;
306 return(_connectorstyle);
310 _connectorstyle = val;
318 return(_connectorwidth);
322 _connectorwidth = val;
351#if FLTK_ABI_VERSION >= 10304
353 if ( _userdeimage )
delete _userdeimage;
355 _userdeimage = _userimage->
copy();
363#if FLTK_ABI_VERSION >= 10304
372 return _closedeimage;
386 return(_showcollapse);
420 return(
int(_showroot));
427 _showroot = char(val);
441#if FLTK_ABI_VERSION >= 10301
444 return _itemreselectmode;
448 _itemreselectmode = mode;
452 return(_itemdrawmode);
463#if FLTK_ABI_VERSION >= 10303
464 void item_draw_callback(Fl_Tree_Item_Draw_Callback *cb,
void *data=0) {
465 _itemdrawcallback = cb;
466 _itemdrawuserdata = data;
468 Fl_Tree_Item_Draw_Callback* item_draw_callback()
const {
469 return(_itemdrawcallback);
471 void* item_draw_user_data()
const {
472 return(_itemdrawuserdata);
475 _itemdrawcallback(o, _itemdrawuserdata);
int Fl_Font
A font number is an index into the internal font table.
Definition: Enumerations.H:875
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_Connector
Defines the style of connection lines between items.
Definition: Fl_Tree_Prefs.H:58
@ FL_TREE_CONNECTOR_SOLID
Use solid lines connecting items.
Definition: Fl_Tree_Prefs.H:61
@ FL_TREE_CONNECTOR_NONE
Use no lines connecting items.
Definition: Fl_Tree_Prefs.H:59
@ FL_TREE_CONNECTOR_DOTTED
Use dotted lines connecting items (default)
Definition: Fl_Tree_Prefs.H:60
Fl_Tree_Sort
Sort order options for items added to the tree.
Definition: Fl_Tree_Prefs.H:49
@ FL_TREE_SORT_ASCENDING
Add items in ascending sort order.
Definition: Fl_Tree_Prefs.H:51
@ FL_TREE_SORT_DESCENDING
Add items in descending sort order.
Definition: Fl_Tree_Prefs.H:52
@ FL_TREE_SORT_NONE
No sorting; items are added in the order defined (default).
Definition: Fl_Tree_Prefs.H:50
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_SELECTABLE_ALWAYS
Enables FL_TREE_REASON_RESELECTED events for callbacks.
Definition: Fl_Tree_Prefs.H:83
@ FL_TREE_SELECTABLE_ONCE
Item can only be selected once (default)
Definition: Fl_Tree_Prefs.H:82
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_ITEM_DRAW_DEFAULT
If widget() defined, draw in place of label, and widget() tracks item height (default)
Definition: Fl_Tree_Prefs.H:91
@ FL_TREE_ITEM_DRAW_LABEL_AND_WIDGET
If widget() defined, include label to the left of the widget.
Definition: Fl_Tree_Prefs.H:93
@ FL_TREE_ITEM_HEIGHT_FROM_WIDGET
If widget() defined, widget()'s height controls item's height.
Definition: Fl_Tree_Prefs.H:94
Fl_Tree_Select
Tree selection style.
Definition: Fl_Tree_Prefs.H:67
@ FL_TREE_SELECT_NONE
Nothing selected when items are clicked.
Definition: Fl_Tree_Prefs.H:68
@ FL_TREE_SELECT_MULTI
Multiple items can be selected by clicking with SHIFT, CTRL or mouse drags.
Definition: Fl_Tree_Prefs.H:70
@ FL_TREE_SELECT_SINGLE
Single item selected when item is clicked (default)
Definition: Fl_Tree_Prefs.H:69
@ FL_TREE_SELECT_SINGLE_DRAGGABLE
Single items may be selected, and they may be.
Definition: Fl_Tree_Prefs.H:72
Base class for image caching and drawing.
Definition: Fl_Image.H:55
virtual Fl_Image * copy(int W, int H)
The copy() method creates a copy of the specified image.
Definition: Fl_Image.cxx:91
void inactive()
The inactive() method calls color_average(FL_BACKGROUND_COLOR, 0.33f) to produce an image that appear...
Definition: Fl_Image.H:160
Tree widget item.
Definition: Fl_Tree_Item.H:67
Tree widget's preferences.
Definition: Fl_Tree_Prefs.H:111
Fl_Color labelbgcolor() const
Obsolete: Get the default label background color. Please use item_labelbgcolor() instead.
Definition: Fl_Tree_Prefs.H:215
void marginbottom(int val)
Set the bottom margin's value in pixels This is the extra distance the vertical scroller lets you tra...
Definition: Fl_Tree_Prefs.H:246
void connectorstyle(int val)
Set the connector style [integer].
Definition: Fl_Tree_Prefs.H:313
Fl_Tree_Connector connectorstyle() const
Get the connector style.
Definition: Fl_Tree_Prefs.H:305
int margintop() const
Get the top margin's value in pixels.
Definition: Fl_Tree_Prefs.H:231
void labelmarginleft(int val)
Set the label's left margin value in pixels.
Definition: Fl_Tree_Prefs.H:271
Fl_Fontsize labelsize() const
Obsolete: Return the label's size in pixels. Please use item_labelsize() instead.
Definition: Fl_Tree_Prefs.H:207
void marginleft(int val)
Set the left margin's value in pixels.
Definition: Fl_Tree_Prefs.H:227
Fl_Image * usericon() const
Gets the default 'user icon' (default is 0)
Definition: Fl_Tree_Prefs.H:343
int showroot() const
Returns 1 if the root item is to be shown, or 0 if not.
Definition: Fl_Tree_Prefs.H:419
void selectmode(Fl_Tree_Select val)
Set the selection mode used for the tree to val.
Definition: Fl_Tree_Prefs.H:438
Fl_Tree_Item_Draw_Mode item_draw_mode() const
Get the 'item draw mode' used for the tree.
Definition: Fl_Tree_Prefs.H:451
void linespacing(int val)
Set the line spacing value in pixels.
Definition: Fl_Tree_Prefs.H:289
void margintop(int val)
Set the top margin's value in pixels.
Definition: Fl_Tree_Prefs.H:235
Fl_Color item_labelbgcolor() const
Get the default label background color.
Definition: Fl_Tree_Prefs.H:179
void item_draw_mode(Fl_Tree_Item_Draw_Mode val)
Set the 'item draw mode' used for the tree to val.
Definition: Fl_Tree_Prefs.H:459
void labelfont(Fl_Font val)
Obsolete: Set the label's font to val. Please use item_labelfont(Fl_Font) instead.
Definition: Fl_Tree_Prefs.H:205
Fl_Tree_Select selectmode() const
Get the selection mode used for the tree.
Definition: Fl_Tree_Prefs.H:430
Fl_Tree_Item_Reselect_Mode item_reselect_mode() const
Returns the current item re/selection mode.
Definition: Fl_Tree_Prefs.H:443
void sortorder(Fl_Tree_Sort val)
Set the default sort order value.
Definition: Fl_Tree_Prefs.H:407
int widgetmarginleft() const
Get the widget()'s left margin value in pixels.
Definition: Fl_Tree_Prefs.H:276
void usericon(Fl_Image *val)
Sets the default 'user icon' Returns the Fl_Image* of the icon, or 0 if none (default).
Definition: Fl_Tree_Prefs.H:349
Fl_Image * openicon() const
Get the current default 'open' icon.
Definition: Fl_Tree_Prefs.H:331
Fl_Color connectorcolor() const
Get the connector color used for tree connection lines.
Definition: Fl_Tree_Prefs.H:297
void item_labelbgcolor(Fl_Color val)
Set the default label background color.
Definition: Fl_Tree_Prefs.H:185
void item_reselect_mode(Fl_Tree_Item_Reselect_Mode mode)
Sets the item re/selection mode.
Definition: Fl_Tree_Prefs.H:447
void usericonmarginleft(int val)
Set the user icon's left margin value in pixels.
Definition: Fl_Tree_Prefs.H:263
Fl_Color labelfgcolor() const
Obsolete: Get the default label foreground color. Please use item_labelfgcolor() instead.
Definition: Fl_Tree_Prefs.H:211
int linespacing() const
Get the line spacing value in pixels.
Definition: Fl_Tree_Prefs.H:285
Fl_Image * closedeicon() const
Return the deactivated version of the close icon, if any.
Definition: Fl_Tree_Prefs.H:371
int marginbottom() const
Get the bottom margin's value in pixels.
Definition: Fl_Tree_Prefs.H:241
Fl_Image * userdeicon() const
Return the deactivated version of the user icon, if any.
Definition: Fl_Tree_Prefs.H:376
char showcollapse() const
Returns 1 if the collapse icon is enabled, 0 if not.
Definition: Fl_Tree_Prefs.H:385
int marginleft() const
Get the left margin's value in pixels.
Definition: Fl_Tree_Prefs.H:223
void openchild_marginbottom(int val)
Set the margin below an open child in pixels.
Definition: Fl_Tree_Prefs.H:255
int labelmarginleft() const
Get the label's left margin value in pixels.
Definition: Fl_Tree_Prefs.H:267
void connectorcolor(Fl_Color val)
Set the connector color used for tree connection lines.
Definition: Fl_Tree_Prefs.H:301
void showroot(int val)
Set if the root item should be shown or not.
Definition: Fl_Tree_Prefs.H:426
void labelbgcolor(Fl_Color val)
Obsolete: Set the default label background color. Please use item_labelbgcolor(Fl_Color) instead.
Definition: Fl_Tree_Prefs.H:217
void labelfgcolor(Fl_Color val)
Obsolete: Set the default label foreground color. Please use item_labelfgcolor(Fl_Color) instead.
Definition: Fl_Tree_Prefs.H:213
void item_labelsize(Fl_Fontsize val)
Set the label's size in pixels to val.
Definition: Fl_Tree_Prefs.H:169
int connectorwidth() const
Get the tree connection line's width.
Definition: Fl_Tree_Prefs.H:317
int usericonmarginleft() const
Get the user icon's left margin value in pixels.
Definition: Fl_Tree_Prefs.H:259
Fl_Color item_labelfgcolor() const
Get the default label foreground color.
Definition: Fl_Tree_Prefs.H:171
void connectorwidth(int val)
Set the tree connection line's width.
Definition: Fl_Tree_Prefs.H:321
Fl_Image * closeicon() const
Gets the default 'close' icon Returns the Fl_Image* of the icon, or 0 if none.
Definition: Fl_Tree_Prefs.H:338
int openchild_marginbottom() const
Get the margin below an open child in pixels.
Definition: Fl_Tree_Prefs.H:251
void selectbox(Fl_Boxtype val)
Set the default selection box's box drawing style to val.
Definition: Fl_Tree_Prefs.H:415
void labelsize(Fl_Fontsize val)
Obsolete: Set the label's size in pixels to val. Please use item_labelsize(Fl_Fontsize) instead.
Definition: Fl_Tree_Prefs.H:209
void widgetmarginleft(int val)
Set the widget's left margin value in pixels.
Definition: Fl_Tree_Prefs.H:280
void showcollapse(int val)
Set if we should show the collapse icon or not.
Definition: Fl_Tree_Prefs.H:396
void item_labelfont(Fl_Font val)
Set the label's font to val.
Definition: Fl_Tree_Prefs.H:165
void item_labelfgcolor(Fl_Color val)
Set the default label foreground color.
Definition: Fl_Tree_Prefs.H:173
Fl_Font item_labelfont() const
Return the label's font.
Definition: Fl_Tree_Prefs.H:163
Fl_Fontsize item_labelsize() const
Return the label's size in pixels.
Definition: Fl_Tree_Prefs.H:167
Fl_Image * opendeicon() const
Return the deactivated version of the open icon, if any.
Definition: Fl_Tree_Prefs.H:366
void connectorstyle(Fl_Tree_Connector val)
Set the connector style.
Definition: Fl_Tree_Prefs.H:309
Fl_Tree_Sort sortorder() const
Get the default sort order value.
Definition: Fl_Tree_Prefs.H:400
Fl_Boxtype selectbox() const
Get the default selection box's box drawing style as an Fl_Boxtype.
Definition: Fl_Tree_Prefs.H:411
Fl_Font labelfont() const
Obsolete: Return the label's font. Please use item_labelfont() instead.
Definition: Fl_Tree_Prefs.H:203