diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2009-09-13 10:04:51 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2009-09-13 10:04:51 +0000 |
| commit | 9017c16ecd2ab6e2b8056054ffc89b4ecec0113a (patch) | |
| tree | 3b6191f4488a0968f1a89a43222bacf791fadd1f /FL | |
| parent | b863eed5eca84b876869612d2f33d5fb647b2034 (diff) | |
Improved documentation of Fl_Widget::clear_damage(uchar).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6861 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Widget.H | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H index 724e00e00..7c136dc4c 100644 --- a/FL/Fl_Widget.H +++ b/FL/Fl_Widget.H @@ -866,9 +866,16 @@ public: */ uchar damage() const {return damage_;} - /** Clears the damage flags. + /** Clears or sets the damage flags. Damage flags are cleared when parts of the widget drawing is repaired. - \param[in] c bitmask of flags to clear + + The optional argument \p c specifies the bits that <b>are set</b> + after the call (default: 0) and \b not the bits that are cleared! + + \note Therefore it is possible to set damage bits with this method, but + this should be avoided. Use damage(uchar) instead. + + \param[in] c new bitmask of damage flags (default: 0) \see damage(uchar), damage() */ void clear_damage(uchar c = 0) {damage_ = c;} |
