summaryrefslogtreecommitdiff
path: root/src/fl_labeltype.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2008-12-13 18:31:54 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2008-12-13 18:31:54 +0000
commit6ed54124bbff402944085568bb2fa2148a2eff62 (patch)
tree1ad472de357454762751be0585d33a9d716eb5de /src/fl_labeltype.cxx
parentd9801ae479dfc9aa82f5121b3cbb74f875dd690a (diff)
Fixed typos and doxygen documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6582 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_labeltype.cxx')
-rw-r--r--src/fl_labeltype.cxx12
1 files changed, 9 insertions, 3 deletions
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_;