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_oxy.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/fl_oxy.h (limited to 'src/fl_oxy.h') diff --git a/src/fl_oxy.h b/src/fl_oxy.h new file mode 100644 index 000000000..94a33f7b4 --- /dev/null +++ b/src/fl_oxy.h @@ -0,0 +1,40 @@ +// +// "Oxy" Scheme drawing routines for the Fast Light Tool Kit (FLTK). +// +// Copyright 2011 by Dmitrij K. e-mail: kdiman at live dot ru +// Copyright 2012-2022 by Bill Spitzak and others. +// +// This library is free software. Distribution and use rights are outlined in +// the file "COPYING" which should have been included with this file. If this +// file is missing or damaged, see the license at: +// +// https://www.fltk.org/COPYING.php +// +// Please report all bugs and problems on the following page: +// +// https://www.fltk.org/str.php +// + +#ifndef fl_oxy_h +#define fl_oxy_h + +#include + +// draw an arrow GUI element for the 'oxy' scheme +// bb bounding box +// t arrow type +// o orientation +// ac widget is active (true) or inactive (false) +// c arrow color +// hc "highlight" color + +extern FL_EXPORT void oxy_arrow(Fl_Rect bb, + Fl_Arrow_Type t, Fl_Orientation o, + bool ac, + Fl_Color c, Fl_Color hc = FL_BLACK); + +extern FL_EXPORT void oxy_arrow(Fl_Rect bb, + Fl_Arrow_Type t, Fl_Orientation o, + Fl_Color col); + +#endif // fl_oxy_h -- cgit v1.2.3