diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-11-24 19:00:00 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-11-25 00:00:48 +0100 |
| commit | b1ba37c5ba1df543baa87d328805af34da4bd2b1 (patch) | |
| tree | 01d6ff63843cd9ed1f58fd2ab201f462bf11a385 /src/fl_draw_arrow.cxx | |
| parent | 40f376a6f707e6c5ae69c0f73300575bd79e28e3 (diff) | |
Add "Oxy" scheme (STR 2675, STR 3477)
This commit is similar to the patch given in STR 3477, oxy_v5.diff:
https://www.fltk.org/strfiles/3477/oxy_v5.diff
... with modifications, and updated to current FLTK code.
Diffstat (limited to 'src/fl_draw_arrow.cxx')
| -rw-r--r-- | src/fl_draw_arrow.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/fl_draw_arrow.cxx b/src/fl_draw_arrow.cxx index 0bee12226..16ee4361d 100644 --- a/src/fl_draw_arrow.cxx +++ b/src/fl_draw_arrow.cxx @@ -22,6 +22,11 @@ #include <FL/Fl.H> #include <FL/fl_draw.H> #include <FL/fl_utf8.h> +#include "fl_oxy.h" + +// Debug mode: if you design a widget or want to check its layout, +// then enable one or both flags of DEBUG_ARROW (below) so you can +// see where the arrows (i.e. their bounding boxes) are positioned #ifndef DEBUG_ARROW #define DEBUG_ARROW (0) // 0 = off, 1 = green background, 2 = red frame, 3 = both @@ -224,7 +229,14 @@ void fl_draw_arrow(Fl_Rect r, Fl_Arrow_Type t, Fl_Orientation o, Fl_Color col) { debug_arrow(r); - // implementation of all arrow types + // special case: arrows for the "oxy" scheme + + if (Fl::is_scheme("oxy")) { + oxy_arrow(r, t, o, col); + return; + } + + // implementation of all arrow types for other schemes switch(t) { case FL_ARROW_SINGLE: |
