diff options
| author | Matthias Melcher <github@matthiasm.com> | 2024-08-14 01:45:20 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2024-08-14 01:52:37 +0200 |
| commit | cfc54a3b190dd7e85d6e2a313ab67d3ded4a4ab8 (patch) | |
| tree | e3c619c02f391079bbf0fba72032e05ff1b25421 /src/Fl_Widget.cxx | |
| parent | 325ac336c74e27037c3bfe0d8517be369f632aa9 (diff) | |
Adding Fl_Widget::label_image_spacing() (#1039)
- May need a better method name.
- This makes the gap between the image in a label and
the label text user settable.
- Can be tested using test/label app
Diffstat (limited to 'src/Fl_Widget.cxx')
| -rw-r--r-- | src/Fl_Widget.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx index bf2ff03d0..d5adb5a08 100644 --- a/src/Fl_Widget.cxx +++ b/src/Fl_Widget.cxx @@ -118,6 +118,7 @@ Fl_Widget::Fl_Widget(int X, int Y, int W, int H, const char* L) { label_.size = FL_NORMAL_SIZE; label_.color = FL_FOREGROUND_COLOR; label_.align_ = FL_ALIGN_CENTER; + label_.spacing = 0; tooltip_ = 0; callback_ = default_callback; user_data_ = 0; |
