From ec05f78d98d8e38ea34eb1bd73647fa5b8b35f81 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 27 Aug 2024 15:13:32 +0200 Subject: Adding horiizonatl and vertical label margin - sizeof(Fl_Widget) not increased - label positions can be adjusted - try it out in test/label app - full support in FLUD --- src/Fl_Widget.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Fl_Widget.cxx') diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx index d5adb5a08..3a583ca4d 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_.h_margin_ = label_.v_margin_ = 0; label_.spacing = 0; tooltip_ = 0; callback_ = default_callback; -- cgit v1.2.3