diff --git a/CHANGES b/CHANGES index 708e084ae..f689dcc34 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/FL/Enumerations.H b/FL/Enumerations.H index aabf1baf8..c86c42166 100644 --- a/FL/Enumerations.H +++ b/FL/Enumerations.H @@ -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)((b1)?b:(b-2)); +} +inline Fl_Boxtype fl_down(Fl_Boxtype b) { + return (Fl_Boxtype)((badd(s); } - int changed() const { - return inp_->changed(); - } + int changed() const { + return inp_->changed(); + } void clear() { menu_->clear(); } diff --git a/documentation/common.html b/documentation/common.html index f25477f99..18fbc22c5 100644 --- a/documentation/common.html +++ b/documentation/common.html @@ -335,6 +335,13 @@ If no frame version of a given box exists, the behavior of this function is undefined and some random box or frame is returned. See also: fl_frame drawing. +

Fl_Boxtype fl_box(Fl_Boxtype)

+ +

fl_box 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: fl_frame. +

Adding Your Box Type

The Fl::set_boxtype() method adds or replaces the diff --git a/documentation/functions.html b/documentation/functions.html index aaf8789e9..bcd4d099d 100644 --- a/documentation/functions.html +++ b/documentation/functions.html @@ -29,6 +29,7 @@ A.

  • fl_begin_offscreen
  • fl_begin_points
  • fl_begin_polygon
  • +
  • fl_box
  • fl_brush (WIN32)
  • fl_can_do_alpha_blending
  • fl_casealphasort