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
This commit is contained in:
Matthias Melcher
2008-08-15 20:32:01 +00:00
parent 358af515f7
commit 3d6201a610
15 changed files with 224 additions and 226 deletions
+4 -4
View File
@@ -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