From 4d1a508c7e4d28fd53129da79f068a275d7160bd Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 3 Jan 2023 19:40:37 +0100 Subject: Refactor drawing small circles: add fl_draw_circle() This method can be used to draw small circles as part of the GUI. It is independent of the current scheme. Very small circles are approximated by drawing several rectangles. --- FL/fl_draw.H | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/fl_draw.H b/FL/fl_draw.H index 33c1f716f..2c08fe6c3 100644 --- a/FL/fl_draw.H +++ b/FL/fl_draw.H @@ -1,7 +1,7 @@ // // Portable drawing function header file for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2022 by Bill Spitzak and others. +// Copyright 1998-2023 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 @@ -972,6 +972,9 @@ void fl_draw_check(Fl_Rect bb, Fl_Color col); // Draw one or more "arrows" (triangles) FL_EXPORT void fl_draw_arrow(Fl_Rect bb, Fl_Arrow_Type t, Fl_Orientation o, Fl_Color color); +// Draw a potentially small, filled circle +FL_EXPORT void fl_draw_circle(int x0, int y0, int d, Fl_Color color); + // images: /** -- cgit v1.2.3