mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 23:42:15 +08:00
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:
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user