summaryrefslogtreecommitdiff
path: root/src/fl_overlay.cxx
diff options
context:
space:
mode:
authorengelsman <engelsman>2009-03-15 20:52:46 +0000
committerengelsman <engelsman>2009-03-15 20:52:46 +0000
commit4bcf3e531183b0533baa114b8456d89cdb8ebcd6 (patch)
tree37897b3cfed5961e11cd5c75e419002142809498 /src/fl_overlay.cxx
parent3c56a23ba19a6df6e15bdfd290465a4478d63985 (diff)
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
Diffstat (limited to 'src/fl_overlay.cxx')
-rw-r--r--src/fl_overlay.cxx6
1 files changed, 6 insertions, 0 deletions
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;