Albrecht Schlosser
719642b5d6
Fix Doxygen warning for older Doxygen versions
...
Note: doxygen versions < 1.9.6 are not recommended for PDF docs
but *may* work for HTML documentation.
2025-04-29 20:16:11 +02:00
Matthias Melcher
f4978a0149
Adding the FL_MENU_CHATTY flag to Fl_Menu_Item.
...
If set, menu items will also call the callback when highlighting changes.
The reason is given with Fl::callback_reason(). #941
2025-04-01 17:00:56 +02:00
Matthias Melcher
5dd1062df5
Adding FL_BEFORE_MENU event to classes derived from Fl_Menu_
2025-03-29 23:36:19 +01:00
Matthias Melcher
b7189192e2
Adds a new event FL_TOOLTIP_EVENT...
...
... and Fl_Tootip::override_text() to allow users to dynamically
generate tooltips.
2025-03-29 22:40:18 +01:00
Albrecht Schlosser
cb86a37676
Allow FL_ABI_VERSION = FL_API_VERSION + 1
...
Build and Test / build-linux (push) Waiting to run
Build and Test / build-wayland (push) Waiting to run
Build and Test / build-macos (push) Waiting to run
Build and Test / build-windows (push) Waiting to run
... so users can enable ABI features designated for the *next* release
when using FLTK from Git (or snapshots) before the API version has
been raised for that release.
2025-03-29 21:03:18 +01:00
Greg Ercolano
9e1e043af3
Changed two connector methods to virtual
...
Build and Test / build-linux (push) Waiting to run
Build and Test / build-wayland (push) Waiting to run
Build and Test / build-macos (push) Waiting to run
Build and Test / build-windows (push) Waiting to run
For reference, see fltk.general thread started Mar 26 2025, entitled:
"Make some Fl_Tree_Item methods virtual?"
2025-03-28 12:54:16 -07:00
Albrecht Schlosser
1ccafa83b2
Remove obsolete build option 'FLTK_OPTION_STD'
...
This option is no longer needed since FLTK 1.5 always requires C++11.
2025-03-19 14:44:16 +01:00
Albrecht Schlosser
b252e5e45c
Remove libfltk_cairo (fltk::cairo)
...
Build and Test / build-linux (push) Waiting to run
Build and Test / build-wayland (push) Waiting to run
Build and Test / build-macos (push) Waiting to run
Build and Test / build-windows (push) Waiting to run
This library is no longer needed and was "empty" for backwards
compatibility since FLTK 1.4.0.
2025-03-16 00:10:53 +01:00
Matthias Melcher
1186b4e255
Making fl_filename_... public for std::string.
...
New functions append "_str" to the function name to
avoid ambiguities when calling them. So
'char *fl_filename_name(const char *)' becomes
'std::string fl_filename_name_str(const std::string &)'
2025-03-07 20:26:03 +01:00
Matthias Melcher
3068c7a0af
Fl_String is now just an alias for std::string.
...
All mentions of Fl_String will be replaced with std::string
and the Fl_String implementation will be removed.
2025-03-07 00:12:40 +01:00
Albrecht Schlosser
27101536f6
Define FL_OVERRIDE unconditionally as 'override'
...
Build and Test / build-linux (push) Waiting to run
Build and Test / build-wayland (push) Waiting to run
Build and Test / build-macos (push) Waiting to run
Build and Test / build-windows (push) Waiting to run
FLTK 1.5 requires at least C++11, hence we can always use 'override'.
To do: the FL_OVERRIDE macro can be replaced by 'override' everywhere
in the FLTK code. There are more than 2400 occurrences and this
would be a large commit. Therefore it's not done right now...
Note: user code may continue to use FL_OVERRIDE.
2025-03-06 19:23:25 +01:00
Albrecht Schlosser
dc07f927f1
Fl_Group: convert array of children to std::vector
...
Note: this is only a hidden implementation detail: all concerned
variables are private, and the code is simplified (less error prone).
Size of Fl_Group on 64-bit Linux: 168 -> 176 Bytes (+8 Bytes).
test/group.cxx: test for Fl_Group::{add, insert, remove} etc.
2025-03-06 18:31:31 +01:00
Albrecht Schlosser
191b33e0de
Update version numbers to 1.5.0
2025-03-06 18:16:03 +01:00
Albrecht Schlosser
e2ca1a39c8
Remove autotools (configure/make) support
2025-03-06 17:12:52 +01:00
ManoloFLTK
880636eb12
Fix "Windows: dotted lines may be drawn solid when GUI is rescaled" ( #1214 )
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2025-03-04 16:04:10 +01:00
Albrecht Schlosser
02af6a57eb
Bump version numbers to 1.4.2
Build and Test / build-linux (push) Waiting to run
Build and Test / build-wayland (push) Waiting to run
Build and Test / build-macos (push) Waiting to run
Build and Test / build-windows (push) Waiting to run
2025-02-21 16:25:39 +01:00
Albrecht Schlosser
18ea5bcb20
Improve documentation of Fl_Box constructors ( #1194 )
...
Build and Test / build-linux (push) Waiting to run
Build and Test / build-wayland (push) Waiting to run
Build and Test / build-macos (push) Waiting to run
Build and Test / build-windows (push) Waiting to run
Separate both constructor types and document parameters.
2025-01-29 14:33:07 +01:00
Albrecht Schlosser
a6f51105d0
Improve and reorder Fl_Tabs documentation
...
Note: this also removes the (not working) suggestion to add an invisible
box to an Fl_Scroll-type child of Fl_Tabs.
2025-01-16 15:42:45 +01:00
Albrecht Schlosser
d5461c55a7
Document issues with Fl_Scroll as children of Fl_Tabs ( #1175 )
...
Unfortunately this *appears* to be a new constraint caused by the great
new features of Fl_Tabs like overflow handling etc. and fixing drawing
issues in the tab area (since FLTK 1.4).
However, this conflict has already been there in 1.3 but didn't cause
visual artifacts in normal use.
2025-01-15 16:11:15 +01:00
Albrecht Schlosser
546a3168f6
Fix typos in documentation of Fl_Tabs
2025-01-15 16:05:01 +01:00
Albrecht Schlosser
a48ebc5db0
Fix return value of Fl_Table_Row::row_selected(int) (PR #1187 )
...
As discussed in the context of PR #1187 the previous return value '-1'
was misleading and undocumented. The docs mentioned only '1' and '0'.
User code that used the return value as documented (like a `bool`)
would make the wrong decision if the return value was '-1': true
(selected) instead false (out of range).
This commit fixes the code by doing what the docs define and clarifies
the documentation.
Further documentation improvements of Fl_Table (example code used a
method that is not defined in Fl_Table) and of Fl_Table_Row are
included as well.
Doxygen docs of two methods of Fl_Table_Row moved to the .cxx file
where they belong according to the CMP.
2025-01-14 15:21:42 +01:00
Matthias Melcher
ca786597f7
Add Fl_Valuator destructor.
...
Build and Test / build-linux (push) Waiting to run
Build and Test / build-wayland (push) Waiting to run
Build and Test / build-macos (push) Waiting to run
Build and Test / build-windows (push) Waiting to run
This is required by Swig to generate code for wrapping
FLTK for Python and potentially other languages. It has
no impact on the API or ABI.
2025-01-03 14:40:59 -06:00
ManoloFLTK
6c7b005a95
Remove duplication and typo in documentation of Fl::copy()
Build and Test / build-linux (push) Waiting to run
Build and Test / build-wayland (push) Waiting to run
Build and Test / build-macos (push) Waiting to run
Build and Test / build-windows (push) Waiting to run
2025-01-02 15:47:35 +01:00
Albrecht Schlosser
0e6b20d957
Put ABI breaking changes under ABI guards ( #1139 )
...
This reverts the improvement of #1139 in the default build which is
now only available with FL_ABI_VERSION=10401 or higher.
Users that need this improvement need to build with the required
ABI version by setting it with configure or CMake.
2024-12-12 16:40:11 +01:00
Albrecht Schlosser
fe8177ea2c
Update Fluid (.fl) files for release 1.4.1
2024-12-09 20:46:01 +01:00
Albrecht Schlosser
99a6286288
Bump version numbers for release 1.4.1
...
To do: update CHANGES.txt with real info.
2024-12-09 20:46:01 +01:00
Matthias Melcher
d1ba7fbf50
Giving access to some Fl_Text_Display member variables ( #1153 )
...
And typos in FLUID source code docs.
2024-12-07 17:31:14 +01:00
ManoloFLTK
be6966bda6
Add missing FL_EXPORT qualifier
2024-11-27 08:38:37 +01:00
ManoloFLTK
3633b342fd
Restore pixmap drawing under X11-noCairo broken by 0952d59
2024-11-27 08:23:35 +01:00
Albrecht Schlosser
403981a293
Fix compiler warning (g++ 14) [-Wstringop-overflow]
...
New compiler warning detected by g++ 14.2.0 building with CMake
in Release mode. This *temporary* fix suppresses the warning but uses
even larger fixed size buffers.
Todo: these nasty warnings caused by using fixed buffer sizes should
be removed by using std::string in FLTK 1.5.0.
2024-11-24 19:53:23 +01:00
Albrecht Schlosser
801125b9a4
Increase clipping stack size ( #1139 )
2024-11-23 16:01:59 +01:00
ManoloFLTK
1f05a0df44
Fix fl_draw_image sometimes crashes when window is scaled - cont'd ( #1134 )
2024-11-20 08:01:40 +01:00
ManoloFLTK
c6d480352b
Add 2 other missing FL_EXPORT qualifiers
2024-11-19 15:47:23 +01:00
ManoloFLTK
e6d18cf713
Add 2 missing FL_EXPORT qualifiers
2024-11-19 15:37:05 +01:00
ManoloFLTK
619677b75c
Fix fl_draw_image sometimes crashes when window is scaled ( #1134 )
2024-11-19 15:26:47 +01:00
ManoloFLTK
2337214e4e
Fix for Windows and X11: Rounding issues with Fl_RGB_Image::draw() ( #1120 )
2024-11-12 10:56:19 +01:00
ManoloFLTK
37144c06a1
Undo 6f6a375 that does not properly support macOS SDK 15.x ( #1103 )
2024-11-04 04:50:31 +01:00
ManoloFLTK
6f6a375fca
Recent macOS SDKs badly define MAC_OS_X_VERSION_MAX_ALLOWED
...
and the correct information is in __MAC_OS_X_VERSION_MAX_ALLOWED
2024-11-03 14:27:28 +01:00
Albrecht Schlosser
abf28f0b70
Improve and clarify documentation
2024-11-01 18:24:06 +01:00
ManoloFLTK
818e2b77d1
Wayland: Fix issue in maximization of a borderless window ( #1099 )
...
Also fixes scenarios mixing fullscreen and maximization:
- maximize
- set fullscreen
- unset fullscreen
- un-maximize
with and without window border.
2024-11-01 15:43:18 +01:00
Albrecht Schlosser
56cf5684dc
Make Fl_Window::flush() public for consistency with subclasses
...
... as discussed on fltk.general recently
Note: this method was already public in all subclasses of Fl_Window.
2024-10-30 14:30:08 +01:00
Albrecht Schlosser
c0e07d3452
Add range check to Fl_Group::child(int)
...
Returns NULL if n is out of range to prevent accessing undefined
memory.
2024-10-25 02:39:47 +02:00
Albrecht Schlosser
74d827f71f
Remove FL_MENU_RESERVED bit mask in favor of better documentation
...
This bit mask was added in commit 53b40f4138 in an attempt
to *document* reserved bits but it turned out that this mask could
have negative side effects on some newer compilers by propagating
the enum to an 'unsigned int' and issuing compiler warnings.
See this comment and follow-up's in fltk.general:
https://groups.google.com/g/fltkgeneral/c/7xrDkbkxiyw/m/rzEIJ7XhAgAJ
2024-10-19 15:58:51 +02:00
Matthias Melcher
737137cf78
Fixes Fl_Text_Display line number calculation. ( #1088 )
2024-10-19 15:53:29 +02:00
Albrecht Schlosser
04c8dd9d26
Add forgotten FL_OVERRIDE attribute
2024-10-18 19:18:23 +02:00
Albrecht Schlosser
89309ebbf2
Add missing *public* methods of Fl_Single_Window
...
- void make_current()
- void flush()
2024-10-18 16:30:23 +02:00
ManoloFLTK
f269367d41
Clarify the documentation of class Fl_Callback_User_Data
2024-10-17 14:10:38 +02:00
Albrecht Schlosser
d589c05b17
Fix documentation typos and trailing whitespace
2024-10-15 18:59:28 +02:00
Matthias Melcher
a0f1d5bc5e
Fl_Preferences documentation update.
2024-10-10 11:46:31 +02:00
Albrecht Schlosser
05d78e8ebd
Improve documentation on mouse and keyboard events
2024-10-07 16:13:11 +02:00