summaryrefslogtreecommitdiff
path: root/src/fl_oxy.h
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-11-24 19:00:00 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-11-25 00:00:48 +0100
commitb1ba37c5ba1df543baa87d328805af34da4bd2b1 (patch)
tree01d6ff63843cd9ed1f58fd2ab201f462bf11a385 /src/fl_oxy.h
parent40f376a6f707e6c5ae69c0f73300575bd79e28e3 (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_oxy.h')
-rw-r--r--src/fl_oxy.h40
1 files changed, 40 insertions, 0 deletions
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 <FL/Fl.H>
+
+// 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