From b16309f13e732e566c1beb4a02a2165ebb3ab4ab Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 24 Nov 2022 12:47:49 +0100 Subject: Refactor code to make rounded rectangles accessible (#553) This adds fl_rounded_rect and fl_rounded_rectf so the user can draw rounded rectangles. This uses existing and optimised code that is rearranged. --- documentation/src/drawing.dox | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'documentation/src') diff --git a/documentation/src/drawing.dox b/documentation/src/drawing.dox index a80286f68..f69796d24 100644 --- a/documentation/src/drawing.dox +++ b/documentation/src/drawing.dox @@ -461,6 +461,12 @@ void fl_rect(int x, int y, int w, int h, Fl_Color c) \par Draw a 1-pixel border \e inside this bounding box. +void fl_rounded_rect(int x, int y, int w, int h, int radius) +void fl_rounded_rectf(int x, int y, int w, int h, int radius) + +\par +Draw an outlined or filled rectangle with rounded corners. + void fl_line(int x, int y, int x1, int y1)
void fl_line(int x, int y, int x1, int y1, int x2, int y2) -- cgit v1.2.3