From de04c108f886dfdf8e4acffc0efd587ba5b77272 Mon Sep 17 00:00:00 2001 From: engelsman Date: Mon, 13 Oct 2008 21:42:05 +0000 Subject: copied more doxygen comments from drawing.dox back to source code git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6421 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_rect.cxx | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'src/fl_rect.cxx') diff --git a/src/fl_rect.cxx b/src/fl_rect.cxx index 251e7751e..71937f507 100644 --- a/src/fl_rect.cxx +++ b/src/fl_rect.cxx @@ -45,6 +45,9 @@ extern float fl_quartz_line_width_; #endif +/** + Draw a 1-pixel border \e inside the given bounding box +*/ void fl_rect(int x, int y, int w, int h) { if (w<=0 || h<=0) return; #ifdef WIN32 @@ -67,6 +70,9 @@ void fl_rect(int x, int y, int w, int h) { #endif } +/** + Color a rectangle that exactly files the given bounding box +*/ void fl_rectf(int x, int y, int w, int h) { if (w<=0 || h<=0) return; #ifdef WIN32 @@ -88,6 +94,9 @@ void fl_rectf(int x, int y, int w, int h) { #endif } +/** + Draw horizontal line from x,y to x1,y +*/ void fl_xyline(int x, int y, int x1) { #ifdef WIN32 MoveToEx(fl_gc, x, y, 0L); LineTo(fl_gc, x1+1, y); @@ -104,6 +113,9 @@ void fl_xyline(int x, int y, int x1) { #endif } +/** + Draw horizontal line from x,y to x1,y, then vertical from x1,y to x1,y2 +*/ void fl_xyline(int x, int y, int x1, int y2) { #ifdef WIN32 if (y2 < y) y2--; @@ -130,6 +142,10 @@ void fl_xyline(int x, int y, int x1, int y2) { #endif } +/** + Draw horizontal line from x,y to x1,y then a vertical from x1,y to x1,y2 + and then another horizontal from x1,y2 to x3,y2 +*/ void fl_xyline(int x, int y, int x1, int y2, int x3) { #ifdef WIN32 if(x3 < x1) x3--; @@ -160,6 +176,9 @@ void fl_xyline(int x, int y, int x1, int y2, int x3) { #endif } +/** + Draw a vertical line from x,y to x,y1 +*/ void fl_yxline(int x, int y, int y1) { #ifdef WIN32 if (y1 < y) y1--; @@ -178,6 +197,9 @@ void fl_yxline(int x, int y, int y1) { #endif } +/** + Draw a vertical line from x,y to x,y1 then a horizontal from x,y1 to x2,y1 +*/ void fl_yxline(int x, int y, int y1, int x2) { #ifdef WIN32 if (x2 > x) x2++; @@ -204,6 +226,10 @@ void fl_yxline(int x, int y, int y1, int x2) { #endif } +/** + Draw a vertical line from x,y to x,y1 then a horizontal from x,y1 to x2,y1 + then another vertical from x2,y1 to x2,y3 +*/ void fl_yxline(int x, int y, int y1, int x2, int y3) { #ifdef WIN32 if(y3