summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2025-12-08 14:45:31 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2025-12-08 14:45:31 +0100
commit1f6fda64a8195681e385acef2ec5fba740d85489 (patch)
tree6573c76256cfae01bc51ec247abec83fb842a03a
parent1dbca3db2f1b2aba39e26c212d6a1b2559c0d4f4 (diff)
Improve documentation generation for older Doxygen versions
Currently supported Doxygen versions: 1.9.1 and higher. Tested up to Doxygen 1.13.2 as of today. Older doxygen versions may generate bogus warnings or even fail to interpret correct C++ syntax.
-rw-r--r--documentation/src/migration_1_5.dox6
-rw-r--r--src/fl_boxtype.cxx7
2 files changed, 8 insertions, 5 deletions
diff --git a/documentation/src/migration_1_5.dox b/documentation/src/migration_1_5.dox
index 107bfe061..9282a1293 100644
--- a/documentation/src/migration_1_5.dox
+++ b/documentation/src/migration_1_5.dox
@@ -97,13 +97,13 @@ removed in the next minor FLTK version, presumably 1.6.0.
Please update your code!
-The following list is currently incomplete and will be extended later.
-
+\todo This table of deprecated functions since FLTK 1.5 may be incomplete and
+ should be completed before the release of FLTK 1.5.0.
Symbol To Be Removed In The Next Minor Release | Please Replace With ...
-------------------------------------------------------|-------------------------
void Fl_Window::icon(const void *ic) | void Fl_Window::icon(const Fl_RGB_Image *icon)
-const void *Fl_Window::icon() const | no replacement (was platform specific)
+const void * Fl_Window::icon() const | no replacement (Windows platform specific)
&nbsp; | &nbsp;
Fl_Tree::first_visible() | in 1.3.3 ABI
Fl_Tree::first_visible_item() | ?
diff --git a/src/fl_boxtype.cxx b/src/fl_boxtype.cxx
index 5d81fae10..8c6998344 100644
--- a/src/fl_boxtype.cxx
+++ b/src/fl_boxtype.cxx
@@ -396,14 +396,17 @@ void fl_oxy_round_down_box(int x, int y, int w, int h, Fl_Color col);
// See also Fl::box_bg() which returns true if bit 1 == zero.
// /////////////////////////////////////////////////////////////////////
-static struct {
+typedef struct {
Fl_Box_Draw_F *f;
uchar dx, dy, dw, dh;
int flags;
Fl_Box_Draw_Focus_F *ff;
bool set() { return flags & 1; }
bool bg() { return !(flags & 2); }
-} fl_box_table[FL_MAX_BOXTYPE+1] = {
+} boxtable_t;
+
+static boxtable_t fl_box_table[FL_MAX_BOXTYPE+1] = {
+
// must match list in Enumerations.H !!!
{ fl_no_box, 0, 0, 0, 0, 3 }, // FL_NO_BOX
{ fl_flat_box, 0, 0, 0, 0, 1 }, // FL_FLAT_BOX