diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2008-08-15 20:32:01 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2008-08-15 20:32:01 +0000 |
| commit | 3d6201a610acd8f0a83b2e985370d455cff57735 (patch) | |
| tree | eff57b9f3f0f5ecd10fe4d5cf824d0edeb238330 /FL/Fl_Widget.H | |
| parent | 358af515f7ebfc7c45d9ca5c1c38b604d9817bff (diff) | |
Made the 'align' flags somewhat more typesafe and the associated functions more self explenatory. The large commit results from a new run of Fluid of the Fluid .fl files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6160 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Widget.H')
| -rw-r--r-- | FL/Fl_Widget.H | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H index 0ed466de2..6f198971f 100644 --- a/FL/Fl_Widget.H +++ b/FL/Fl_Widget.H @@ -103,7 +103,7 @@ class FL_EXPORT Fl_Widget { uchar type_; uchar damage_; uchar box_; - uchar align_; + Fl_Align align_:8; uchar when_; const char *tooltip_; @@ -264,12 +264,12 @@ public: /** Gets the label alignment. * \return label alignment - * \see label(), align(uchar), Fl_Align + * \see label(), align(Fl_Align), Fl_Align * \todo This function should not take ucahr as an argument. Apart from the fact that ucahr is too short * with only 8 bits, it does not provide type safety (in which case we don't need to declare Fl_Type * an enum to begin with). */ - Fl_Align align() const {return (Fl_Align)align_;} + Fl_Align align() const {return align_;} /** Sets the label alignment. * This controls how the label is displayed next to or inside the widget. @@ -277,7 +277,7 @@ public: * \param[in] alignment new label alignment * \see align(), Fl_Align */ - void align(uchar alignment) {align_ = alignment;} + void align(Fl_Align alignment) {align_ = alignment;} /** Gets the box type for the widget. * \return the current box type |
