FLTK 1.4.4

Loading...
Searching...
No Matches
Fl_Tree_Prefs.H
Go to the documentation of this file.
1//
2
3#ifndef FL_TREE_PREFS_H
4#define FL_TREE_PREFS_H
5
6#include <FL/Fl.H> // needed for ABI version features (via Enumerations.H)
7
9// FL/Fl_Tree_Prefs.H
11//
12// Fl_Tree_Prefs -- This file is part of the Fl_Tree widget for FLTK
13// Copyright (C) 2009-2010 by Greg Ercolano.
14//
15// This library is free software. Distribution and use rights are outlined in
16// the file "COPYING" which should have been included with this file. If this
17// file is missing or damaged, see the license at:
18//
19// https://www.fltk.org/COPYING.php
20//
21// Please see the following page on how to report bugs and issues:
22//
23// https://www.fltk.org/bugs.php
24//
25
40
43
47 enum Fl_Tree_Sort {
48 FL_TREE_SORT_NONE=0,
49 FL_TREE_SORT_ASCENDING=1,
50 FL_TREE_SORT_DESCENDING=2
51};
52
56 enum Fl_Tree_Connector {
57 FL_TREE_CONNECTOR_NONE=0,
58 FL_TREE_CONNECTOR_DOTTED=1,
59 FL_TREE_CONNECTOR_SOLID=2
60};
61
65 enum Fl_Tree_Select {
66 FL_TREE_SELECT_NONE=0,
67 FL_TREE_SELECT_SINGLE=1,
68 FL_TREE_SELECT_MULTI=2,
70 FL_TREE_SELECT_SINGLE_DRAGGABLE=3
72};
73
78 enum Fl_Tree_Item_Reselect_Mode {
79 FL_TREE_SELECTABLE_ONCE=0,
80 FL_TREE_SELECTABLE_ALWAYS
81};
82
87 enum Fl_Tree_Item_Draw_Mode {
88 FL_TREE_ITEM_DRAW_DEFAULT=0,
90 FL_TREE_ITEM_DRAW_LABEL_AND_WIDGET=1,
91 FL_TREE_ITEM_HEIGHT_FROM_WIDGET=2
92};
93
94 class Fl_Tree_Item;
95 typedef void (Fl_Tree_Item_Draw_Callback)(Fl_Tree_Item*, void*);
96
105 class FL_EXPORT Fl_Tree_Prefs {
106 Fl_Font _labelfont; // label's font face
107 Fl_Fontsize _labelsize; // label's font size
108 int _margintop; // --
109 int _marginleft; // |- tree's controllable margins
110 int _marginbottom; // --
111 int _openchild_marginbottom; // extra space below an open child tree
112 int _usericonmarginleft; // space to left of user icon (if any)
113 int _labelmarginleft; // space to left of label
114 int _widgetmarginleft; // space to left of widget
115 int _connectorwidth; // connector width (right of open/close icon)
116 int _linespacing; // vertical space between lines
117 // Colors
118 Fl_Color _labelfgcolor; // label's foreground color
119 Fl_Color _labelbgcolor; // label's background color
120 Fl_Color _connectorcolor; // connector dotted line color
121 Fl_Tree_Connector _connectorstyle; // connector line style
122 Fl_Image *_openimage; // the 'open' icon [+]
123 Fl_Image *_closeimage; // the 'close' icon [-]
124 Fl_Image *_userimage; // user's own icon
125 Fl_Image *_opendeimage; // deactivated 'open' icon
126 Fl_Image *_closedeimage; // deactivated 'close' icon
127 Fl_Image *_userdeimage; // deactivated user icon
128 char _showcollapse; // 1=show collapse icons, 0=don't
129 char _showroot; // show the root item as part of the tree
130 Fl_Tree_Sort _sortorder; // none, ascening, descending, etc.
131 Fl_Boxtype _selectbox; // selection box type
132 Fl_Tree_Select _selectmode; // selection mode
133 Fl_Tree_Item_Reselect_Mode _itemreselectmode; // controls item selection callback() behavior
134 Fl_Tree_Item_Draw_Mode _itemdrawmode; // controls how items draw label + widget()
135 Fl_Tree_Item_Draw_Callback *_itemdrawcallback; // callback to handle drawing items (0=none)
136 void *_itemdrawuserdata; // data for drawing items (0=none)
137 public:
138 Fl_Tree_Prefs();
139 ~Fl_Tree_Prefs();
140
142 // Labels
145 inline Fl_Font item_labelfont() const { return(_labelfont); }
147 inline void item_labelfont(Fl_Font val) { _labelfont = val; }
149 inline Fl_Fontsize item_labelsize() const { return(_labelsize); }
151 inline void item_labelsize(Fl_Fontsize val) { _labelsize = val; }
153 inline Fl_Color item_labelfgcolor() const { return(_labelfgcolor); }
155 inline void item_labelfgcolor(Fl_Color val) { _labelfgcolor = val; }
160 inline Fl_Color item_labelbgcolor() const {
161 return _labelbgcolor;
162 }
163
166 inline void item_labelbgcolor(Fl_Color val) {
167 _labelbgcolor = val;
168 }
169
171 // Obsolete names - for 1.3.0 backwards compat
174 inline Fl_Font labelfont() const { return(_labelfont); }
176 inline void labelfont(Fl_Font val) { _labelfont = val; }
178 inline Fl_Fontsize labelsize() const { return(_labelsize); }
180 inline void labelsize(Fl_Fontsize val) { _labelsize = val; }
182 inline Fl_Color labelfgcolor() const { return(_labelfgcolor); }
184 inline void labelfgcolor(Fl_Color val) { _labelfgcolor = val; }
186 inline Fl_Color labelbgcolor() const { return(item_labelbgcolor()); }
188 inline void labelbgcolor(Fl_Color val) { item_labelbgcolor(val); }
189
191 // Margins
194 inline int marginleft() const {
195 return(_marginleft);
196 }
197
198 inline void marginleft(int val) {
199 _marginleft = val;
200 }
201
202 inline int margintop() const {
203 return(_margintop);
204 }
205
206 inline void margintop(int val) {
207 _margintop = val;
208 }
209
211 inline int marginbottom() const {
212 return(_marginbottom);
213 }
214
216 inline void marginbottom(int val) {
217 _marginbottom = val;
218 }
219
220 inline int openchild_marginbottom() const {
221 return(_openchild_marginbottom);
222 }
223
224 inline void openchild_marginbottom(int val) {
225 _openchild_marginbottom = val;
226 }
227
228 inline int usericonmarginleft() const {
229 return(_usericonmarginleft);
230 }
231
232 inline void usericonmarginleft(int val) {
233 _usericonmarginleft = val;
234 }
235
236 inline int labelmarginleft() const {
237 return(_labelmarginleft);
238 }
239
240 inline void labelmarginleft(int val) {
241 _labelmarginleft = val;
242 }
243
244 inline int widgetmarginleft() const {
245 return(_widgetmarginleft);
246 }
247
248 inline void widgetmarginleft(int val) {
249 _widgetmarginleft = val;
250 }
251
252 inline int linespacing() const {
253 return(_linespacing);
254 }
255
256 inline void linespacing(int val) {
257 _linespacing = val;
258 }
259
261 // Colors and Styles
264 inline Fl_Color connectorcolor() const {
265 return(_connectorcolor);
266 }
267
268 inline void connectorcolor(Fl_Color val) {
269 _connectorcolor = val;
270 }
271
272 inline Fl_Tree_Connector connectorstyle() const {
273 return(_connectorstyle);
274 }
275
276 inline void connectorstyle(Fl_Tree_Connector val) {
277 _connectorstyle = val;
278 }
279
280 inline void connectorstyle(int val) {
281 _connectorstyle = Fl_Tree_Connector(val);
282 }
283
284 inline int connectorwidth() const {
285 return(_connectorwidth);
286 }
287
288 inline void connectorwidth(int val) {
289 _connectorwidth = val;
290 }
291
293 // Icons
298 inline Fl_Image *openicon() const {
299 return(_openimage);
300 }
301 inline int openicon_w() const { return _openimage ? _openimage->w() : 11; }
302 inline int openicon_h() const { return _openimage ? _openimage->h() : 11; }
303 void openicon(Fl_Image *val);
307 inline Fl_Image *closeicon() const {
308 return(_closeimage);
309 }
310 inline int closeicon_w() const { return _closeimage ? _closeimage->w() : 11; }
311 inline int closeicon_h() const { return _closeimage ? _closeimage->h() : 11; }
312 void closeicon(Fl_Image *val);
314 inline Fl_Image *usericon() const {
315 return(_userimage);
316 }
317
320 inline void usericon(Fl_Image *val) {
321 _userimage = val;
322 // Update deactivated version of icon..
323 if ( _userdeimage ) delete _userdeimage;
324 if ( _userimage ) {
325 _userdeimage = _userimage->copy();
326 _userdeimage->inactive();
327 } else {
328 _userdeimage = 0;
329 }
330 }
331
334 inline Fl_Image *opendeicon() const {
335 return _opendeimage;
336 }
337
339 inline Fl_Image *closedeicon() const {
340 return _closedeimage;
341 }
342
344 inline Fl_Image *userdeicon() const {
345 return _userdeimage;
346 }
347
349 // Options
352 inline char showcollapse() const {
353 return(_showcollapse);
354 }
355
363 inline void showcollapse(int val) {
364 _showcollapse = val;
365 }
366
367 inline Fl_Tree_Sort sortorder() const {
368 return(_sortorder);
369 }
370
374 inline void sortorder(Fl_Tree_Sort val) {
375 _sortorder = val;
376 }
377
378 inline Fl_Boxtype selectbox() const {
379 return(_selectbox);
380 }
381
382 inline void selectbox(Fl_Boxtype val) {
383 _selectbox = val;
384 }
385
386 inline int showroot() const {
387 return(int(_showroot));
388 }
389
393 inline void showroot(int val) {
394 _showroot = char(val);
395 }
396
397 inline Fl_Tree_Select selectmode() const {
398 return(_selectmode);
399 }
400
405 inline void selectmode(Fl_Tree_Select val) {
406 _selectmode = val;
407 }
408
409 Fl_Tree_Item_Reselect_Mode item_reselect_mode() const {
410 return _itemreselectmode;
411 }
412
413 void item_reselect_mode(Fl_Tree_Item_Reselect_Mode mode) {
414 _itemreselectmode = mode;
415 }
416
417 inline Fl_Tree_Item_Draw_Mode item_draw_mode() const {
418 return(_itemdrawmode);
419 }
420
425 inline void item_draw_mode(Fl_Tree_Item_Draw_Mode val) {
426 _itemdrawmode = val;
427 }
428 void item_draw_callback(Fl_Tree_Item_Draw_Callback *cb, void *data=0) {
429 _itemdrawcallback = cb;
430 _itemdrawuserdata = data;
431 }
432 Fl_Tree_Item_Draw_Callback* item_draw_callback() const {
433 return(_itemdrawcallback);
434 }
435 void* item_draw_user_data() const {
436 return(_itemdrawuserdata);
437 }
438 void do_item_draw_callback(Fl_Tree_Item *o) const {
439 _itemdrawcallback(o, _itemdrawuserdata);
440 }
441};
442
443#endif /*FL_TREE_PREFS_H*/
Fl_Font
int Fl_Font
A font number is an index into the internal font table.
Definition Enumerations.H:1063
Fl_Color
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition Enumerations.H:1120
Fl_Fontsize
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:1092
Fl_Boxtype
Fl_Boxtype
FLTK standard box types.
Definition Enumerations.H:644
Fl.H
Fl static class.
Fl_Tree_Connector
Fl_Tree_Connector
Defines the style of connection lines between items.
Definition Fl_Tree_Prefs.H:56
FL_TREE_CONNECTOR_SOLID
@ FL_TREE_CONNECTOR_SOLID
Use solid lines connecting items.
Definition Fl_Tree_Prefs.H:59
FL_TREE_CONNECTOR_NONE
@ FL_TREE_CONNECTOR_NONE
Use no lines connecting items.
Definition Fl_Tree_Prefs.H:57
FL_TREE_CONNECTOR_DOTTED
@ FL_TREE_CONNECTOR_DOTTED
Use dotted lines connecting items (default)
Definition Fl_Tree_Prefs.H:58
Fl_Tree_Sort
Fl_Tree_Sort
Sort order options for items added to the tree.
Definition Fl_Tree_Prefs.H:47
FL_TREE_SORT_ASCENDING
@ FL_TREE_SORT_ASCENDING
Add items in ascending sort order.
Definition Fl_Tree_Prefs.H:49
FL_TREE_SORT_DESCENDING
@ FL_TREE_SORT_DESCENDING
Add items in descending sort order.
Definition Fl_Tree_Prefs.H:50
FL_TREE_SORT_NONE
@ FL_TREE_SORT_NONE
No sorting; items are added in the order defined (default).
Definition Fl_Tree_Prefs.H:48
Fl_Tree_Item_Reselect_Mode
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_SELECTABLE_ALWAYS
@ FL_TREE_SELECTABLE_ALWAYS
Enables FL_TREE_REASON_RESELECTED events for callbacks.
Definition Fl_Tree_Prefs.H:80
FL_TREE_SELECTABLE_ONCE
@ FL_TREE_SELECTABLE_ONCE
Item can only be selected once (default)
Definition Fl_Tree_Prefs.H:79
Fl_Tree_Item_Draw_Mode
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_ITEM_DRAW_DEFAULT
@ FL_TREE_ITEM_DRAW_DEFAULT
If widget() defined, draw in place of label, and widget() tracks item height (default)
Definition Fl_Tree_Prefs.H:88
FL_TREE_ITEM_DRAW_LABEL_AND_WIDGET
@ FL_TREE_ITEM_DRAW_LABEL_AND_WIDGET
If widget() defined, include label to the left of the widget.
Definition Fl_Tree_Prefs.H:90
FL_TREE_ITEM_HEIGHT_FROM_WIDGET
@ FL_TREE_ITEM_HEIGHT_FROM_WIDGET
If widget() defined, widget()'s height controls item's height.
Definition Fl_Tree_Prefs.H:91
Fl_Tree_Select
Fl_Tree_Select
Tree selection style.
Definition Fl_Tree_Prefs.H:65
FL_TREE_SELECT_NONE
@ FL_TREE_SELECT_NONE
Nothing selected when items are clicked.
Definition Fl_Tree_Prefs.H:66
FL_TREE_SELECT_MULTI
@ FL_TREE_SELECT_MULTI
Multiple items can be selected by clicking with SHIFT, CTRL or mouse drags.
Definition Fl_Tree_Prefs.H:68
FL_TREE_SELECT_SINGLE
@ FL_TREE_SELECT_SINGLE
Single item selected when item is clicked (default)
Definition Fl_Tree_Prefs.H:67
FL_TREE_SELECT_SINGLE_DRAGGABLE
@ FL_TREE_SELECT_SINGLE_DRAGGABLE
Single items may be selected, and they may be reordered by mouse drag.
Definition Fl_Tree_Prefs.H:70
Fl_Image
Base class for image caching, scaling and drawing.
Definition Fl_Image.H:60
Fl_Image::h
void h(int H)
Sets the height of the image data.
Definition Fl_Image.H:93
Fl_Image::w
void w(int W)
Sets the width of the image data.
Definition Fl_Image.H:87
Fl_Tree_Item
Tree widget item.
Definition Fl_Tree_Item.H:65
Fl_Tree_Prefs::labelbgcolor
Fl_Color labelbgcolor() const
Obsolete: Get the default label background color. Please use item_labelbgcolor() instead.
Definition Fl_Tree_Prefs.H:186
Fl_Tree_Prefs::marginbottom
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:216
Fl_Tree_Prefs::connectorstyle
void connectorstyle(int val)
Set the connector style [integer].
Definition Fl_Tree_Prefs.H:280
Fl_Tree_Prefs::connectorstyle
Fl_Tree_Connector connectorstyle() const
Get the connector style.
Definition Fl_Tree_Prefs.H:272
Fl_Tree_Prefs::Fl_Tree_Prefs
Fl_Tree_Prefs()
Fl_Tree_Prefs constructor.
Definition Fl_Tree_Prefs.cxx:93
Fl_Tree_Prefs::margintop
int margintop() const
Get the top margin's value in pixels.
Definition Fl_Tree_Prefs.H:202
Fl_Tree_Prefs::labelmarginleft
void labelmarginleft(int val)
Set the label's left margin value in pixels.
Definition Fl_Tree_Prefs.H:240
Fl_Tree_Prefs::labelsize
Fl_Fontsize labelsize() const
Obsolete: Return the label's size in pixels. Please use item_labelsize() instead.
Definition Fl_Tree_Prefs.H:178
Fl_Tree_Prefs::marginleft
void marginleft(int val)
Set the left margin's value in pixels.
Definition Fl_Tree_Prefs.H:198
Fl_Tree_Prefs::usericon
Fl_Image * usericon() const
Gets the default 'user icon' (default is 0)
Definition Fl_Tree_Prefs.H:314
Fl_Tree_Prefs::showroot
int showroot() const
Returns 1 if the root item is to be shown, or 0 if not.
Definition Fl_Tree_Prefs.H:386
Fl_Tree_Prefs::selectmode
void selectmode(Fl_Tree_Select val)
Set the selection mode used for the tree to val.
Definition Fl_Tree_Prefs.H:405
Fl_Tree_Prefs::item_draw_mode
Fl_Tree_Item_Draw_Mode item_draw_mode() const
Get the 'item draw mode' used for the tree.
Definition Fl_Tree_Prefs.H:417
Fl_Tree_Prefs::linespacing
void linespacing(int val)
Set the line spacing value in pixels.
Definition Fl_Tree_Prefs.H:256
Fl_Tree_Prefs::margintop
void margintop(int val)
Set the top margin's value in pixels.
Definition Fl_Tree_Prefs.H:206
Fl_Tree_Prefs::item_labelbgcolor
Fl_Color item_labelbgcolor() const
Get the default label background color.
Definition Fl_Tree_Prefs.H:160
Fl_Tree_Prefs::item_draw_mode
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:425
Fl_Tree_Prefs::labelfont
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:176
Fl_Tree_Prefs::selectmode
Fl_Tree_Select selectmode() const
Get the selection mode used for the tree.
Definition Fl_Tree_Prefs.H:397
Fl_Tree_Prefs::item_reselect_mode
Fl_Tree_Item_Reselect_Mode item_reselect_mode() const
Returns the current item re/selection mode.
Definition Fl_Tree_Prefs.H:409
Fl_Tree_Prefs::sortorder
void sortorder(Fl_Tree_Sort val)
Set the default sort order value.
Definition Fl_Tree_Prefs.H:374
Fl_Tree_Prefs::widgetmarginleft
int widgetmarginleft() const
Get the widget()'s left margin value in pixels.
Definition Fl_Tree_Prefs.H:244
Fl_Tree_Prefs::usericon
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:320
Fl_Tree_Prefs::openicon
Fl_Image * openicon() const
Get the current default 'open' icon.
Definition Fl_Tree_Prefs.H:298
Fl_Tree_Prefs::connectorcolor
Fl_Color connectorcolor() const
Get the connector color used for tree connection lines.
Definition Fl_Tree_Prefs.H:264
Fl_Tree_Prefs::item_labelbgcolor
void item_labelbgcolor(Fl_Color val)
Set the default label background color.
Definition Fl_Tree_Prefs.H:166
Fl_Tree_Prefs::item_reselect_mode
void item_reselect_mode(Fl_Tree_Item_Reselect_Mode mode)
Sets the item re/selection mode.
Definition Fl_Tree_Prefs.H:413
Fl_Tree_Prefs::usericonmarginleft
void usericonmarginleft(int val)
Set the user icon's left margin value in pixels.
Definition Fl_Tree_Prefs.H:232
Fl_Tree_Prefs::labelfgcolor
Fl_Color labelfgcolor() const
Obsolete: Get the default label foreground color. Please use item_labelfgcolor() instead.
Definition Fl_Tree_Prefs.H:182
Fl_Tree_Prefs::linespacing
int linespacing() const
Get the line spacing value in pixels.
Definition Fl_Tree_Prefs.H:252
Fl_Tree_Prefs::closedeicon
Fl_Image * closedeicon() const
Return the deactivated version of the close icon, if any.
Definition Fl_Tree_Prefs.H:339
Fl_Tree_Prefs::marginbottom
int marginbottom() const
Get the bottom margin's value in pixels.
Definition Fl_Tree_Prefs.H:211
Fl_Tree_Prefs::userdeicon
Fl_Image * userdeicon() const
Return the deactivated version of the user icon, if any.
Definition Fl_Tree_Prefs.H:344
Fl_Tree_Prefs::showcollapse
char showcollapse() const
Returns 1 if the collapse icon is enabled, 0 if not.
Definition Fl_Tree_Prefs.H:352
Fl_Tree_Prefs::marginleft
int marginleft() const
Get the left margin's value in pixels.
Definition Fl_Tree_Prefs.H:194
Fl_Tree_Prefs::openchild_marginbottom
void openchild_marginbottom(int val)
Set the margin below an open child in pixels.
Definition Fl_Tree_Prefs.H:224
Fl_Tree_Prefs::labelmarginleft
int labelmarginleft() const
Get the label's left margin value in pixels.
Definition Fl_Tree_Prefs.H:236
Fl_Tree_Prefs::connectorcolor
void connectorcolor(Fl_Color val)
Set the connector color used for tree connection lines.
Definition Fl_Tree_Prefs.H:268
Fl_Tree_Prefs::showroot
void showroot(int val)
Set if the root item should be shown or not.
Definition Fl_Tree_Prefs.H:393
Fl_Tree_Prefs::labelbgcolor
void labelbgcolor(Fl_Color val)
Obsolete: Set the default label background color. Please use item_labelbgcolor(Fl_Color) instead.
Definition Fl_Tree_Prefs.H:188
Fl_Tree_Prefs::labelfgcolor
void labelfgcolor(Fl_Color val)
Obsolete: Set the default label foreground color. Please use item_labelfgcolor(Fl_Color) instead.
Definition Fl_Tree_Prefs.H:184
Fl_Tree_Prefs::item_labelsize
void item_labelsize(Fl_Fontsize val)
Set the label's size in pixels to val.
Definition Fl_Tree_Prefs.H:151
Fl_Tree_Prefs::connectorwidth
int connectorwidth() const
Get the tree connection line's width.
Definition Fl_Tree_Prefs.H:284
Fl_Tree_Prefs::usericonmarginleft
int usericonmarginleft() const
Get the user icon's left margin value in pixels.
Definition Fl_Tree_Prefs.H:228
Fl_Tree_Prefs::item_labelfgcolor
Fl_Color item_labelfgcolor() const
Get the default label foreground color.
Definition Fl_Tree_Prefs.H:153
Fl_Tree_Prefs::connectorwidth
void connectorwidth(int val)
Set the tree connection line's width.
Definition Fl_Tree_Prefs.H:288
Fl_Tree_Prefs::closeicon
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:307
Fl_Tree_Prefs::openchild_marginbottom
int openchild_marginbottom() const
Get the margin below an open child in pixels.
Definition Fl_Tree_Prefs.H:220
Fl_Tree_Prefs::selectbox
void selectbox(Fl_Boxtype val)
Set the default selection box's box drawing style to val.
Definition Fl_Tree_Prefs.H:382
Fl_Tree_Prefs::labelsize
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:180
Fl_Tree_Prefs::widgetmarginleft
void widgetmarginleft(int val)
Set the widget's left margin value in pixels.
Definition Fl_Tree_Prefs.H:248
Fl_Tree_Prefs::showcollapse
void showcollapse(int val)
Set if we should show the collapse icon or not.
Definition Fl_Tree_Prefs.H:363
Fl_Tree_Prefs::item_labelfont
void item_labelfont(Fl_Font val)
Set the label's font to val.
Definition Fl_Tree_Prefs.H:147
Fl_Tree_Prefs::item_labelfgcolor
void item_labelfgcolor(Fl_Color val)
Set the default label foreground color.
Definition Fl_Tree_Prefs.H:155
Fl_Tree_Prefs::item_labelfont
Fl_Font item_labelfont() const
Return the label's font.
Definition Fl_Tree_Prefs.H:145
Fl_Tree_Prefs::item_labelsize
Fl_Fontsize item_labelsize() const
Return the label's size in pixels.
Definition Fl_Tree_Prefs.H:149
Fl_Tree_Prefs::opendeicon
Fl_Image * opendeicon() const
Return the deactivated version of the open icon, if any.
Definition Fl_Tree_Prefs.H:334
Fl_Tree_Prefs::connectorstyle
void connectorstyle(Fl_Tree_Connector val)
Set the connector style.
Definition Fl_Tree_Prefs.H:276
Fl_Tree_Prefs::sortorder
Fl_Tree_Sort sortorder() const
Get the default sort order value.
Definition Fl_Tree_Prefs.H:367
Fl_Tree_Prefs::selectbox
Fl_Boxtype selectbox() const
Get the default selection box's box drawing style as an Fl_Boxtype.
Definition Fl_Tree_Prefs.H:378
Fl_Tree_Prefs::labelfont
Fl_Font labelfont() const
Obsolete: Return the label's font. Please use item_labelfont() instead.
Definition Fl_Tree_Prefs.H:174