From 4bcf3e531183b0533baa114b8456d89cdb8ebcd6 Mon Sep 17 00:00:00 2001 From: engelsman Date: Sun, 15 Mar 2009 20:52:46 +0000 Subject: added doxygen comments for more functions in fl_draw.H FL/fl_draw.H: see below src/fl_cursor.cxx: fl_cursor() src/fl_scroll_area.cxx: fl_scroll() src/fl_overlay.cxx: fl_overlay_clear(), fl_overlay_rect() documentation/src/drawing.dox: updated paragraph tag links git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_overlay.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/fl_overlay.cxx') diff --git a/src/fl_overlay.cxx b/src/fl_overlay.cxx index 7d09c4654..a482e4dee 100644 --- a/src/fl_overlay.cxx +++ b/src/fl_overlay.cxx @@ -103,10 +103,16 @@ static void erase_current_rect() { #endif } +/** + Erase a selection rectangle without drawing a new one + */ void fl_overlay_clear() { if (pw > 0) {erase_current_rect(); pw = 0;} } +/** + Draws a selection rectangle, erasing a previous one by XOR'ing it first. + */ void fl_overlay_rect(int x, int y, int w, int h) { if (w < 0) {x += w; w = -w;} else if (!w) w = 1; if (h < 0) {y += h; h = -h;} else if (!h) h = 1; -- cgit v1.2.3