summaryrefslogtreecommitdiff
path: root/FL/Fl_Browser_.H
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-11-25 18:20:02 +0100
committerMatthias Melcher <github@matthiasm.com>2023-11-25 18:20:08 +0100
commit34ed30fe1a710f6294e23003aa385bd6da6cb326 (patch)
tree4fb8628a64a3c2943b23a9f7646206cb38bba69a /FL/Fl_Browser_.H
parent00808500926af83a531fc1fdc0b2df9716743e8b (diff)
Adds `linespacing()` to `Fl_Browser_` and all derived widgets
Diffstat (limited to 'FL/Fl_Browser_.H')
-rw-r--r--FL/Fl_Browser_.H12
1 files changed, 12 insertions, 0 deletions
diff --git a/FL/Fl_Browser_.H b/FL/Fl_Browser_.H
index d83f94ee0..37ae59c5e 100644
--- a/FL/Fl_Browser_.H
+++ b/FL/Fl_Browser_.H
@@ -96,6 +96,7 @@ class FL_EXPORT Fl_Browser_ : public Fl_Group {
void *redraw1,*redraw2; // minimal update pointers
void* max_width_item; // which item has max_width_
int scrollbar_size_; // size of scrollbar trough
+ int linespacing_;
void update_top();
@@ -400,6 +401,17 @@ public:
*/
void scrollbar_left() { scrollbar.align(FL_ALIGN_LEFT); }
void sort(int flags=0);
+
+ /**
+ Add some space between browser lines.
+ \param[in] pixels number of additional pixels between lines.
+ */
+ void linespacing(int pixels) { linespacing_ = pixels; }
+
+ /** Return the height of additional spacing between browser lines.
+ \return spacing height in pixel units.
+ */
+ int linespacing() const { return linespacing_; }
};
#endif