From 6ed54124bbff402944085568bb2fa2148a2eff62 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 13 Dec 2008 18:31:54 +0000 Subject: Fixed typos and doxygen documentation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6582 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_labeltype.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/fl_labeltype.cxx') diff --git a/src/fl_labeltype.cxx b/src/fl_labeltype.cxx index c7116855e..0c3ecd894 100644 --- a/src/fl_labeltype.cxx +++ b/src/fl_labeltype.cxx @@ -102,7 +102,9 @@ void Fl_Label::measure(int& W, int& H) const { f(this, W, H); } -/** The normal call for a draw() method */ +/** Draws the widget's label at the defined label position. + This is the normal call for a widget's draw() method. + */ void Fl_Widget::draw_label() const { int X = x_+Fl::box_dx(box()); int W = w_-Fl::box_dw(box()); @@ -110,14 +112,18 @@ void Fl_Widget::draw_label() const { draw_label(X, y_+Fl::box_dy(box()), W, h_-Fl::box_dh(box())); } -/** draw() can use this instead to change the bounding box */ +/** Draws the label in an arbitrary bounding box. + draw() can use this instead of draw_label(void) to change the bounding box + */ void Fl_Widget::draw_label(int X, int Y, int W, int H) const { // quit if we are not drawing a label inside the widget: if ((align()&15) && !(align() & FL_ALIGN_INSIDE)) return; draw_label(X,Y,W,H,align()); } -/** Anybody can call this to force the label to draw anywhere */ +/** Draws the label in an arbitrary bounding box with an arbitrary alignment. + Anybody can call this to force the label to draw anywhere. + */ void Fl_Widget::draw_label(int X, int Y, int W, int H, Fl_Align a) const { if (flags()&SHORTCUT_LABEL) fl_draw_shortcut = 1; Fl_Label l1 = label_; -- cgit v1.2.3