From cfc54a3b190dd7e85d6e2a313ab67d3ded4a4ab8 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 14 Aug 2024 01:45:20 +0200 Subject: 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 --- FL/fl_draw.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FL/fl_draw.H') diff --git a/FL/fl_draw.H b/FL/fl_draw.H index b158f7253..efb0b4d15 100644 --- a/FL/fl_draw.H +++ b/FL/fl_draw.H @@ -977,10 +977,10 @@ inline void fl_rtl_draw(const char *str, int n, int x, int y) { FL_EXPORT void fl_measure(const char *str, int &x, int &y, int draw_symbols = 1); FL_EXPORT void fl_draw(const char *str, int x, int y, int w, int h, Fl_Align align, Fl_Image *img = 0, - int draw_symbols = 1, int gap = 0); + int draw_symbols = 1, int spacing = 0); FL_EXPORT void fl_draw(const char *str, int x, int y, int w, int h, Fl_Align align, void (*callthis)(const char *, int, int, int), - Fl_Image *img = 0, int draw_symbols = 1, int gap = 0); + Fl_Image *img = 0, int draw_symbols = 1, int spacing = 0); // boxtypes: -- cgit v1.2.3