diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-01-03 19:40:37 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-01-05 01:06:25 +0100 |
| commit | 4d1a508c7e4d28fd53129da79f068a275d7160bd (patch) | |
| tree | aa34c8312fc197f5bfd18a16b6537ddce380afbc /FL | |
| parent | b5b88d5f0dcb682df1ad80ac8939fcfc1f6671da (diff) | |
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.
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/fl_draw.H | 5 |
1 files changed, 4 insertions, 1 deletions
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: /** |
