summaryrefslogtreecommitdiff
path: root/src/Fl_Check_Button.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2014-10-19 20:17:17 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2014-10-19 20:17:17 +0000
commit92ff2e30bc595fb470d3d78bed9578a7376550a3 (patch)
tree973b4a7d8a80a175cac0775a7178b9585f311c81 /src/Fl_Check_Button.cxx
parent25cf93b4cbd3e54c75b76b860e68a578f808c8af (diff)
Update docs related to buttons and update Fl_Check_Button.png.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10386 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Check_Button.cxx')
-rw-r--r--src/Fl_Check_Button.cxx34
1 files changed, 26 insertions, 8 deletions
diff --git a/src/Fl_Check_Button.cxx b/src/Fl_Check_Button.cxx
index 63dabddb8..56ef3160b 100644
--- a/src/Fl_Check_Button.cxx
+++ b/src/Fl_Check_Button.cxx
@@ -3,10 +3,10 @@
//
// Check button widget for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2014 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
-// the file "COPYING" which should have been included with this file. If this
+// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
// http://www.fltk.org/COPYING.php
@@ -19,14 +19,32 @@
#include <FL/Fl.H>
#include <FL/Fl_Check_Button.H>
-// TODO Correct incorrect Fl_Check_Button comments.
-// A subclass of Fl_Button that always draws as a diamond box. This
-// diamond is smaller than the widget size and can be surchecked by
-// another box type, for compatibility with Forms.
+/**
+ \class Fl_Check_Button
+ \brief A button with a "checkmark" to show its status.
+
+ \image html Fl_Check_Button.png
+ \image latex Fl_Check_Button.png "Fl_Check_Button" width=4cm
+
+ Buttons generate callbacks when they are clicked by the user. You control
+ exactly when and how by changing the values for type() and when().
+
+ The Fl_Check_Button subclass displays its "ON" state by showing a "checkmark"
+ rather than drawing itself pushed in.
+ */
/**
- Creates a new Fl_Check_Button widget using the given position, size and
- label string.
+ Creates a new Fl_Check_Button widget using the given position, size, and label string.
+
+ The default box type is FL_NO_BOX, which draws the label w/o a box
+ right of the checkmark.
+
+ The selection_color() sets the color of the checkmark.
+ Default is FL_FOREGROUND_COLOR (usually black).
+
+ You can use down_box() to change the box type of the checkmark.
+ Default is FL_DOWN_BOX.
+
\param[in] X, Y, W, H position and size of the widget
\param[in] L widget label, default is no label
*/