Skip to content

Commit

Permalink
STR #1678: improved fl_down, fl_frame, added fl_box, updated document…
Browse files Browse the repository at this point in the history
…ation. Fixed indent in Fl_Input_Choice.H

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5834 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Matthias Melcher committed May 16, 2007
1 parent 1feb3ed commit 2c7bea9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -3,6 +3,7 @@ CHANGES IN FLTK 1.1.8
- Documentation fixes (STR #1454, STR #1455, STR #1456,
STR #1457, STR #1458, STR #1460, STR #1481, STR #1578,
STR #1639, STR #1645, STR #1644)
- Improved fl_down, fl_frame, added fl_box (STR #1678)
- Fixed selection of submenu items in
input_choice (STR #1676)
- Fixed calculation of stride for image scaling and
Expand Down
11 changes: 9 additions & 2 deletions FL/Enumerations.H
Expand Up @@ -229,8 +229,15 @@ extern FL_EXPORT Fl_Boxtype fl_define_FL_GTK_UP_BOX();
#define FL_GTK_ROUND_DOWN_BOX (Fl_Boxtype)(fl_define_FL_GTK_UP_BOX()+9)

// conversions of box types to other boxtypes:
inline Fl_Boxtype fl_down(Fl_Boxtype b) {return (Fl_Boxtype)(b|1);}
inline Fl_Boxtype fl_frame(Fl_Boxtype b) {return (Fl_Boxtype)(b|2);}
inline Fl_Boxtype fl_box(Fl_Boxtype b) {
return (Fl_Boxtype)((b<FL_UP_BOX||b%4>1)?b:(b-2));
}
inline Fl_Boxtype fl_down(Fl_Boxtype b) {
return (Fl_Boxtype)((b<FL_UP_BOX)?b:(b|1));
}
inline Fl_Boxtype fl_frame(Fl_Boxtype b) {
return (Fl_Boxtype)((b%4<2)?b:(b+2));
}

// back-compatability box types:
#define FL_FRAME FL_ENGRAVED_FRAME
Expand Down
6 changes: 3 additions & 3 deletions FL/Fl_Input_Choice.H
Expand Up @@ -98,9 +98,9 @@ public:
void add(const char *s) {
menu_->add(s);
}
int changed() const {
return inp_->changed();
}
int changed() const {
return inp_->changed();
}
void clear() {
menu_->clear();
}
Expand Down
7 changes: 7 additions & 0 deletions documentation/common.html
Expand Up @@ -335,6 +335,13 @@ <H4><A name="fl_frame">Fl_Boxtype fl_frame(Fl_Boxtype)</A></H4>
is undefined and some random box or frame is returned.
See also: <A HREF="drawing.html#fl_frame">fl_frame drawing</A>.

<H4><A name="fl_box">Fl_Boxtype fl_box(Fl_Boxtype)</A></H4>

<P><tt>fl_box</tt> returns the filled version of a frame.
If no filled version of a given frame exists, the behavior of this function
is undefined and some random box or frame is returned.
See also: <TT><A HREF="#fl_frame">fl_frame</A></TT>.

<H4>Adding Your Box Type</H4>

<P>The <TT>Fl::set_boxtype()</TT> method adds or replaces the
Expand Down
1 change: 1 addition & 0 deletions documentation/functions.html
Expand Up @@ -29,6 +29,7 @@ <H2>Function List by Name</H2>
<LI><A HREF="drawing.html#fl_begin_offscreen"><TT>fl_begin_offscreen</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_points"><TT>fl_begin_points</TT></A></LI>
<LI><A HREF="drawing.html#fl_begin_polygon"><TT>fl_begin_polygon</TT></A></LI>
<LI><A HREF="common.html#fl_box"><TT>fl_box</TT></A></LI>
<LI><A HREF="osissues.html#WIN32.gdi"><TT>fl_brush</TT></A> (WIN32)</LI>
<LI><A HREF="drawing.html#fl_can_do_alpha_blending"><TT>fl_can_do_alpha_blending</TT></A></LI>
<LI><A HREF="#fl_casealphasort"><TT>fl_casealphasort</TT></A></LI>
Expand Down

0 comments on commit 2c7bea9

Please sign in to comment.