summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2023-10-09Fix " Wayland compilation warnings" (#788)ManoloFLTK
2023-10-07Fix STR 3458: "GLUT compatibility mode segfaults"Albrecht Schlosser
... "when there's no current window". Silently ignore GLUT function calls that need a current window if the current window is NULL, return 0 from functions that return an 'int'. Check if window is shown in Fl_X11_Gl_Window_Driver::swap_buffers(). This would issue "XRequest.nnn: GLXBadDrawable 0x0" on X11 otherwise. Note: the chosen implementation to ignore GLUT calls silently appears to be compatible with GLUT (3.7) whereas FreeGLUT 3.0 would issue error messages and exit. The latter could be implemented as well but would be much more work.
2023-10-06Fix: macOS runtime warning makeKeyWindow... (#785)ManoloFLTK
2023-10-06Change prototype to Fl::now(double offset = 0)ManoloFLTK
2023-10-05Wayland: whitespace only changesManoloFLTK
2023-10-04Wayland: remove useless codeManoloFLTK
2023-10-03Fix fltk.coredev: mandelbrot demo segfault under WaylandManoloFLTK
2023-10-03Avoid integer overflow on Windows in delta time calculationAlbrecht Schlosser
See comment in the code. This makes the implementation more future proof although it's still problematic starting around 2038.
2023-10-03Wayland: add security test to avoid NULL pointer dereferencingManoloFLTK
2023-09-30Fixes Fl_Tabs clipping offsetMatthias Melcher
2023-09-29Remove unused variable, silence compiler warningAlbrecht Schlosser
warning: unused variable ‘dy’ [-Wunused-variable]
2023-09-29Adds Fl_Menu_::prev_mvalue() (#685)Matthias Melcher
2023-09-29Fixes overlapping tabs (#718)Matthias Melcher
* corrects clipping of overlapping tabs * fixes some issues with exotic box types like rounded boxes
2023-09-29Draw parent window backdrop on Fl_Tabs (#718)Matthias Melcher
2023-09-29Wayland: throttle window redraws during interactive resizes (#776)ManoloFLTK
2023-09-27Fix for CLEAR flag in Fl_PreferencesMatthias Melcher
Fixed warning in new Fl_Preferences constructor
2023-09-26FLUID: adds greatly enhanced Shell Commands (#774)Matthias Melcher
The user can add an arbitrary number of highly configurable shell commands through the setting panel. The commands can be saved as user preferences, inside the .fl file, or exported to an external file. Shell scripts can be limited to individual platforms, can have shortcut keys, etc. . * documentation will follow * support to call `fltk-config` will follow
2023-09-26Remove "warning: extended initializer lists only available with …"ManoloFLTK
2023-09-26Add Fl_Timestamp Fl::distant_past()ManoloFLTK
Can be handy when Fl::seconds_since() is used early at program startup
2023-09-26FLUID: Fixes regression #777Matthias Melcher
Wrote wrong path in #inlude statement under certain conditions. Also removed 'snap' tag if not needed.
2023-09-25New member function Fl_Wayland_Graphics_Driver::create_wld_buffer()ManoloFLTK
The previous member Fl_Wayland_Graphics_Driver::create_shm_buffer() is now renamed to create_wld_buffer() and divided in 2 parts: - one is related to the draw buffer; - the other is related to the wl_buffer and is what is now called create_shm_buffer(). This allows to delay creation of the wl_buffer until absolutely necessary, done inside Fl_Wayland_Graphics_Driver::buffer_commit().
2023-09-24Slightly simpler Fl_Wayland_Window_Driver::flush()ManoloFLTK
and beef up description of Wayland's mechanism to throttle screen redrawing.
2023-09-22Regenerate src/Fl_File_Chooser.cxx from its fluid source fileAlbrecht Schlosser
2023-09-22Update dependenciesAlbrecht Schlosser
2023-09-22Increase reuse of mmap'ed data by FLTK Wayland buffer factoryManoloFLTK
2023-09-20Small FNFC doc clarification; "pilots" -> "presets"Greg Ercolano
2023-09-18Step back commit 8248183 that's unsatisfactory while resizing windowsManoloFLTK
2023-09-17Improve reuse of mmap'ed data by Wayland buffersManoloFLTK
2023-09-17Restore Doxygen doc of fl_graphics_driverManoloFLTK
2023-09-12Fix Visual Studio shared library buildAlbrecht Schlosser
Todo: fluid-shared can't (yet) be built agains the shared fltk lib because of some linker errors. Needs investigation. Note: fluid-shared is basically a test program to demonstrate linking against the shared FLTK libs but doesn't work yet using VS (MSVC). This is no problem for the functionality.
2023-09-06Fixes Fl_Tabs to be more robust.Matthias Melcher
No children in Fl_Tabs should no longer crash the draw method. Also, drawing an Fl_Tabs with no children inside is now defined and documented.
2023-09-05Adds some convenience methods.Matthias Melcher
fl_filename_absolute can no generate a path using arbitrary source paths. Fl_Menu_ adds find_item_with_user_data and find_item_with_argument Fl_String adds find(string, start)
2023-09-04Introduce Fl_Flex::need_layout() to optimize layout calculationAlbrecht Schlosser
This is intended to reduce layout calculation and resizing of child widgets until necessary before the Fl_Flex widget and all its children are drawn in Fl_Flex::draw(). With this commit users no longer need to call layout() to layout the Fl_Flex widget and its children properly unless they change widget sizes or show/hide children.
2023-09-03Adds compact buttons feature to create keypads.Matthias Melcher
See test/buttons for an example.
2023-09-02#718: Fixes drawing issues for Fl_TabsMatthias Melcher
Tabs were drawn incorrectly when children's box was not FL_NO_BOX Current solution is cleaned up and always redraws tabs area without leaving breadcrumbs behind
2023-08-31Remove Doxygen warnings in processing of class Fl_TabsManoloFLTK
2023-08-30#718: Fixes Fl_Tabs overlapping calculationsMatthias Melcher
This method should greatly improve the overlapping calculations. Tested with super wide and super many tabs. Also documented every method in the class.
2023-08-29FLUID: minor fixesMatthias Melcher
2023-08-29Document some protected methods and variables of Fl_TabsAlbrecht Schlosser
Todo: There are more protected methods that should be documented, particularly the virtual ones that might be overridden by subclasses.
2023-08-29FLUID: simplified worker handlingMatthias Melcher
2023-08-28CMake: Make compile definitions 'FL_LIBRARY' and 'FL_DLL' privateAlbrecht Schlosser
... so they are not inherited by consumers of the library. Remove 'add_definitions(-DFL_LIBRARY)' from src/CMakeLists.txt This is not necessary, see CMake/fl_add_library.cmake Don't set obsolete property 'CLEAN_DIRECT_OUTPUT' which was removed in CMake 2.8.0.
2023-08-28Wayland.dox: some rephrasingManoloFLTK
2023-08-27Slightly simpler handle_close() in Fl_Wayland_Window_Driver.cxxManoloFLTK
2023-08-27Remove useless function prototype declarationManoloFLTK
2023-08-26Fix typos in Doxygen text for fl_filename_absolute/relative()ManoloFLTK
2023-08-26Adds safe versions of fl_filename_*, returning Fl_StringMatthias Melcher
2023-08-26FLUID: fixes file path calculation bugMatthias Melcher
2023-08-23Undo commit 5ea7a04 which requires Mutter V12ManoloFLTK
That commit's goal was to use an algorithm that does not assume that number keys are at keycodes 10-19, which may not hold with "special" keyboards. Unfortunately, the new algorithm requires Mutter V12 and fails with Mutter V11, used by Debian 12.
2023-08-22Wayland: fix regression in menu positioning brought by c43cf2fManoloFLTK
2023-08-20Undo commit 0a31225 which killed "caps lock"ManoloFLTK