summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2024-08-14 00:35:55 +0200
committerMatthias Melcher <github@matthiasm.com>2024-08-14 00:35:55 +0200
commit325ac336c74e27037c3bfe0d8517be369f632aa9 (patch)
treede0e2bbe34f438e7e6e02327fecdde6868639035 /FL
parent9f04497d6ec999378f8c8fc0ba0da41b3270e346 (diff)
Adding gap parameter to fl_draw(...)
This allows the user to define the spacing between a possible imge and the text.
Diffstat (limited to 'FL')
-rw-r--r--FL/fl_draw.H8
1 files changed, 5 insertions, 3 deletions
diff --git a/FL/fl_draw.H b/FL/fl_draw.H
index 99fe1045f..b158f7253 100644
--- a/FL/fl_draw.H
+++ b/FL/fl_draw.H
@@ -975,10 +975,12 @@ inline void fl_rtl_draw(const char *str, int n, int x, int y) {
fl_graphics_driver->rtl_draw(str, n, x, 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);
+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);
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);
+ void (*callthis)(const char *, int, int, int),
+ Fl_Image *img = 0, int draw_symbols = 1, int gap = 0);
// boxtypes: