summaryrefslogtreecommitdiff
path: root/FL
AgeCommit message (Collapse)Author
2023-10-13#748: Adds option to choose menu window boxtypeMatthias Melcher
...independently from the menu button or menu bar boxtype
2023-10-11Fixes fl_filename_relative on Linux, Mac, and Windows (#787)Matthias Melcher
* fixed filename_relative for Linux * Fixing fl_filename_relative for MSWindows. * Update documentation * Fixed docs. * Fixes Linux and macOS builds
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-06Change prototype to Fl::now(double offset = 0) - cont'dManoloFLTK
2023-10-06Change prototype to Fl::now(double offset = 0)ManoloFLTK
2023-09-29Adds Fl_Menu_::prev_mvalue() (#685)Matthias Melcher
2023-09-29Draw parent window backdrop on Fl_Tabs (#718)Matthias Melcher
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-26Add Fl_Timestamp Fl::distant_past()ManoloFLTK
Can be handy when Fl::seconds_since() is used early at program startup
2023-09-20Small FNFC doc clarification; "pilots" -> "presets"Greg Ercolano
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-07Fix doxygen "undocumented parameter" warningsAlbrecht Schlosser
... and argument order in FL_INLINE_CALLBACK_2 macro
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-31Special (UTF-8) characters in PDF docs maybe not rendered correctly (#772)ManoloFLTK
Use an image to display the table of the detailed description of class Fl_PostScript_File_Device in PDF format, and keep using a dynamic table for the HTML format. Replace use of the '⌘' character in file drawing.dox by text 'cmd'.
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-26Add missing FL_EXPORT for Windows shared lib buildAlbrecht Schlosser
2023-08-26Adds safe versions of fl_filename_*, returning Fl_StringMatthias Melcher
2023-08-26Fixes a bunch of typos in comments.Matthias Melcher
2023-08-18Improve handling of type Fl_Offscreen under WaylandManoloFLTK
Type Fl_Offscreen is now to be cast to cairo_t*. Also, make sure the dimensions of GL windows are multiples of the screen scale factor.
2023-08-17Fix typos in names of Doxygen items (#729)ManoloFLTK
2023-08-15Improved, yet compatible, widget callback system using macros (#729)Matthias Melcher
* adds FL/fl_callback.macros.H * adds FL_FUNCTION_CALLBACK_n(widget, function, [type, data]) * adds FL_METHOD_CALLBACK_n(widget, class, instance, method, [type, data]) * adds FL_INLINE_CALLBACK_n(widget, [type, name, data], callback_body) * adds `examples/callback` * full documentation
2023-08-13Fl_Tabs now supports horizontal mouse wheel events.Matthias Melcher
2023-08-09Wayland: fix fl_read_image() from offscreen bufferManoloFLTK
2023-08-08Wayland: improve layout of struct fl_wld_draw_bufferManoloFLTK
2023-08-05Revert "#733 partial: Adds rotation gesture event on MacOS"Albrecht Schlosser
This reverts commit 3049e6394a3376f7fff1c8cde19fd7bb1a9252ec as agreed upon in GitHub Issue #733.
2023-08-05#733 partial: Adds rotation gesture event on MacOSMatthias Melcher
2023-08-03#211: adds optional parameter for Fl_Input_::drawtext()Matthias Melcher
Does not change the original API but adds a function and keeps the original automatic.
2023-07-22Adds default shortcut to Fl_Shortcut_Button.Matthias Melcher
2023-07-19Enable compilation with VS 2022 and clang (#752)Albrecht Schlosser
Ensure that <stdint.h> is included in Visual Studio 2010 and later (_MSC_VER >= 1600).
2023-07-14Documentation: screenshot updatesMatthias Melcher
2023-07-14Documentation: correct spelling errorsManoloFLTK
2023-07-13Documentation: details about how to position a window in screensManoloFLTK
2023-07-10More detailed documentation of Fl::screen_xywh()ManoloFLTK
2023-07-09Documentation: explain how to refresh GUI while printingManoloFLTK
2023-05-19 Fix Fl_Simple_Terminal::append(str, len) assumes a null terminated string ↵ManoloFLTK
(#728)
2023-04-17Add const qualifiers to can_undo and can_redo (#720)ZJUGKC
2023-04-15Fix compiler warning [-Wunused-parameter]Albrecht Schlosser
2023-04-14Fixed leak in Fl_Text_Buffer #716Matthias Melcher
2023-04-14Memory leak in Input_ #716Matthias Melcher
2023-04-13Fix trailing comma in enums of public headersAlbrecht Schlosser
Compiler warning: comma at end of enumerator list [-Wpedantic] Note 1: I decided to fix these warnings although trailing commas in enums are allowed at least since C++11. Note 2: I fixed only public headers because these headers may be compiled in user code. To do: check internal headers.
2023-04-13Fix misplaced 'const' [-Wignored-qualifiers]Albrecht Schlosser
warning: type qualifiers ignored on function return type