5 #ifndef FL_TREE_PREFS_H
6 #define FL_TREE_PREFS_H
92 int _openchild_marginbottom;
93 int _usericonmarginleft;
154 return(_openchild_marginbottom);
158 _openchild_marginbottom = val;
178 return(_usericonmarginleft);
182 _usericonmarginleft = val;
186 return(_labelmarginleft);
190 _labelmarginleft = val;
194 return(_linespacing);
206 return(_labelfgcolor);
214 return(_labelbgcolor);
222 return(_connectorcolor);
226 _connectorcolor = val;
230 return(_connectorstyle);
234 _connectorstyle = val;
242 return(_connectorwidth);
246 _connectorwidth = val;
282 return(_showcollapse);
316 return(
int(_showroot));
323 _showroot = char(val);
Fl_Image * openicon() const
Get the current default 'open' icon.
Definition: Fl_Tree_Prefs.H:255
Fl_Image * usericon() const
Gets the default 'user icon' (default is 0)
Definition: Fl_Tree_Prefs.H:267
Add items in ascending sort order.
Definition: Fl_Tree_Prefs.H:54
Fl_Color labelfgcolor() const
Get the default label foreground color.
Definition: Fl_Tree_Prefs.H:205
int openchild_marginbottom() const
Get the margin below an open child in pixels.
Definition: Fl_Tree_Prefs.H:153
Fl_Tree_Sort
Sort order options for items added to the tree.
Definition: Fl_Tree_Prefs.H:52
Fl_Boxtype selectbox() const
Get the default selection box's box drawing style as an Fl_Boxtype.
Definition: Fl_Tree_Prefs.H:307
Fl_Tree_Select selectmode() const
Get the selection mode used for the tree.
Definition: Fl_Tree_Prefs.H:326
Fl_Tree_Select
Tree selection style.
Definition: Fl_Tree_Prefs.H:70
void showroot(int val)
Set if the root item should be shown or not.
Definition: Fl_Tree_Prefs.H:322
int marginleft() const
Get the left margin's value in pixels.
Definition: Fl_Tree_Prefs.H:137
void selectmode(Fl_Tree_Select val)
Set the selection mode used for the tree to val.
Definition: Fl_Tree_Prefs.H:334
void labelbgcolor(Fl_Color val)
Set the default label background color.
Definition: Fl_Tree_Prefs.H:217
Use solid lines connecting items.
Definition: Fl_Tree_Prefs.H:64
int margintop() const
Get the top margin's value in pixels.
Definition: Fl_Tree_Prefs.H:145
void usericonmarginleft(int val)
Set the user icon's left margin value in pixels.
Definition: Fl_Tree_Prefs.H:181
Use no lines connecting items.
Definition: Fl_Tree_Prefs.H:62
Fl_Image is the base class used for caching and drawing all kinds of images in FLTK.
Definition: Fl_Image.H:51
void labelfont(Fl_Font val)
Set the label's font to val.
Definition: Fl_Tree_Prefs.H:121
void connectorcolor(Fl_Color val)
Set the connector color used for tree connection lines.
Definition: Fl_Tree_Prefs.H:225
void showcollapse(int val)
Set if we should show the collapse icon or not.
Definition: Fl_Tree_Prefs.H:292
void labelfgcolor(Fl_Color val)
Set the default label foreground color.
Definition: Fl_Tree_Prefs.H:209
Fl_Boxtype
Definition: Enumerations.H:464
Multiple items can be selected by clicking with.
Definition: Fl_Tree_Prefs.H:73
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:262
void connectorwidth(int val)
Set the tree connection line's width.
Definition: Fl_Tree_Prefs.H:245
void sortorder(Fl_Tree_Sort val)
Set the default sort order value.
Definition: Fl_Tree_Prefs.H:303
void connectorstyle(Fl_Tree_Connector val)
Set the connector style.
Definition: Fl_Tree_Prefs.H:233
void connectorstyle(int val)
Set the connector style [integer].
Definition: Fl_Tree_Prefs.H:237
Fl_Fontsize labelsize() const
Return the label's size in pixels.
Definition: Fl_Tree_Prefs.H:125
Fl_Tree_Connector
Defines the style of connection lines between items.
Definition: Fl_Tree_Prefs.H:61
void labelsize(Fl_Fontsize val)
Set the label's size in pixels to val.
Definition: Fl_Tree_Prefs.H:129
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:741
void marginleft(int val)
Set the left margin's value in pixels.
Definition: Fl_Tree_Prefs.H:141
int linespacing() const
Get the line spacing value in pixels.
Definition: Fl_Tree_Prefs.H:193
Nothing selected when items are clicked.
Definition: Fl_Tree_Prefs.H:71
Fl_Tree_Connector connectorstyle() const
Get the connector style.
Definition: Fl_Tree_Prefs.H:229
Fl_Color labelbgcolor() const
Get the default label background color.
Definition: Fl_Tree_Prefs.H:213
Fl_Tree_Sort sortorder() const
Get the default sort order value.
Definition: Fl_Tree_Prefs.H:296
unsigned int Fl_Color
an FLTK color value
Definition: Enumerations.H:769
void labelmarginleft(int val)
Set the label's left margin value in pixels.
Definition: Fl_Tree_Prefs.H:189
int Fl_Font
A font number is an index into the internal font table.
Definition: Enumerations.H:712
Add items in descending sort order.
Definition: Fl_Tree_Prefs.H:55
Fl_Font labelfont() const
Return the label's font.
Definition: Fl_Tree_Prefs.H:117
void linespacing(int val)
Set the line spacing value in pixels.
Definition: Fl_Tree_Prefs.H:197
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:273
Use dotted lines connecting items (default)
Definition: Fl_Tree_Prefs.H:63
char showcollapse() const
Returns 1 if the collapse icon is enabled, 0 if not.
Definition: Fl_Tree_Prefs.H:281
int usericonmarginleft() const
Get the user icon's left margin value in pixels.
Definition: Fl_Tree_Prefs.H:177
Tree widget's preferences.
Definition: Fl_Tree_Prefs.H:85
int connectorwidth() const
Get the tree connection line's width.
Definition: Fl_Tree_Prefs.H:241
void margintop(int val)
Set the top margin's value in pixels.
Definition: Fl_Tree_Prefs.H:149
void selectbox(Fl_Boxtype val)
Set the default selection box's box drawing style to val.
Definition: Fl_Tree_Prefs.H:311
void openchild_marginbottom(int val)
Set the margin below an open child in pixels.
Definition: Fl_Tree_Prefs.H:157
Fl_Color connectorcolor() const
Get the connector color used for tree connection lines.
Definition: Fl_Tree_Prefs.H:221
Single item selected when item is clicked (default)
Definition: Fl_Tree_Prefs.H:72
No sorting; items are added in the order defined (default).
Definition: Fl_Tree_Prefs.H:53
int showroot() const
Returns 1 if the root item is to be shown, or 0 if not.
Definition: Fl_Tree_Prefs.H:315
int labelmarginleft() const
Get the label's left margin value in pixels.
Definition: Fl_Tree_Prefs.H:185