diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2014-10-19 20:17:17 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2014-10-19 20:17:17 +0000 |
| commit | 92ff2e30bc595fb470d3d78bed9578a7376550a3 (patch) | |
| tree | 973b4a7d8a80a175cac0775a7178b9585f311c81 /FL/Fl_Button.H | |
| parent | 25cf93b4cbd3e54c75b76b860e68a578f808c8af (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 'FL/Fl_Button.H')
| -rw-r--r-- | FL/Fl_Button.H | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/FL/Fl_Button.H b/FL/Fl_Button.H index 9cfcc7d5d..33c684962 100644 --- a/FL/Fl_Button.H +++ b/FL/Fl_Button.H @@ -3,10 +3,10 @@ // // Button header file 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 @@ -27,7 +27,7 @@ #endif // values for type() -#define FL_NORMAL_BUTTON 0 /**< value() will be set to 1 during the press of the button and +#define FL_NORMAL_BUTTON 0 /**< value() will be set to 1 during the press of the button and reverts back to 0 when the button is released */ #define FL_TOGGLE_BUTTON 1 ///< value() toggles between 0 and 1 at every click of the button #define FL_RADIO_BUTTON (FL_RESERVED_TYPE+2) /**< is set to 1 at button press, and all other @@ -42,7 +42,7 @@ class Fl_Widget_Tracker; /** \class Fl_Button \brief Buttons generate callbacks when they are clicked by the user. - + You control exactly when and how by changing the values for type() and when(). Buttons can also generate callbacks in response to \c FL_SHORTCUT events. The button can either have an explicit shortcut(int s) value or a @@ -72,6 +72,7 @@ class Fl_Widget_Tracker; (when the user pushes and releases the button, and as the mouse is dragged around in and out of the button). */ + class FL_EXPORT Fl_Button : public Fl_Widget { int shortcut_; @@ -84,7 +85,7 @@ protected: static Fl_Widget_Tracker *key_release_tracker; static void key_release_timeout(void*); void simulate_key_action(); - + virtual void draw(); public: @@ -150,6 +151,10 @@ public: /** Sets the down box type. The default value of 0 causes FLTK to figure out the correct matching down version of box(). + + Some derived classes (e.g. Fl_Round_Button and Fl_Light_Button use + down_box() for special purposes. See docs of these classes. + \param[in] b down box type */ void down_box(Fl_Boxtype b) {down_box_ = b;} |
