From b1ba37c5ba1df543baa87d328805af34da4bd2b1 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 24 Nov 2022 19:00:00 +0100 Subject: 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. --- src/fl_draw_arrow.cxx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/fl_draw_arrow.cxx') 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 #include #include +#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: -- cgit v1.2.3