diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-12-01 18:36:04 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-12-01 23:06:37 +0100 |
| commit | 5a6a7eb009cde5c0613418a11b0fb637f0cd9468 (patch) | |
| tree | 87c694ec64091c02af916a7b959f16127c8c52e2 /FL/Fl.H | |
| parent | 2e169770396fed12b3b9200b3354322924b36537 (diff) | |
Add background (`bg`) attribute to table of boxtypes
This is a first step to fix some background (re-)drawing issues in
widgets. A new bit in the array of boxtypes can be used to determine
if a particular boxtype uses a solid background (e.g. all FL_*_BOX
types) or if the parent widget is responsible for drawing it (FL_NO_BOX
and all FL_*_FRAME) types, and maybe more ...
The old struct member `set` in the struct of boxtypes has been
renamed to `flags` and is now used as a bit field.
Except these changes, this first commit fixes the focus box drawing
of specific boxtypes, as seen in unittest_schemes.cxx in the
Fl_Check_Button with label "Check", and very likely more.
Diffstat (limited to 'FL/Fl.H')
| -rw-r--r-- | FL/Fl.H | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -689,6 +689,8 @@ FL_EXPORT extern int box_dy(Fl_Boxtype); FL_EXPORT extern int box_dw(Fl_Boxtype); FL_EXPORT extern int box_dh(Fl_Boxtype); +FL_EXPORT extern bool box_bg(Fl_Boxtype); + FL_EXPORT extern int draw_box_active(); FL_EXPORT extern Fl_Color box_color(Fl_Color); FL_EXPORT extern void set_box_color(Fl_Color); |
