summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2024-05-10Wayland: slightly improved fix for issue #878ManoloFLTK
2024-05-09Remove unused variables, fix compiler warningsAlbrecht Schlosser
2024-05-09Optimize "arrow" drawing and centeringAlbrecht Schlosser
- center (sub)menu arrow as good as possible - adjust arrow sizes in Fl_Counter widget - refactor "oxy" arrow drawing and centering in widgets
2024-05-09Wayland documentation: improve "Input Methods" and various detailsManoloFLTK
also fix typo mentionned -> mentioned
2024-05-09Followup: avoid dereference null pointer (#971)Greg Ercolano
Changing _root->find_clicked(..) to just find_clicked(..) includes the check of _root for NULL, which is probably better than doing a repeat explicit check and early exit.
2024-05-08macOS: Fix scaling subwindows - cont'd #927ManoloFLTK
2024-05-08Avoid possible dereferencing of null pointer (#971)ManoloFLTK
2024-05-08Have menu items drawn with same colors in all platforms (#969)ManoloFLTK
Also, remove this text from the doc of Fl_Menu_::down_box() "If this is FL_NO_BOX then it acts like FL_THIN_UP_BOX and selection_color() acts like FL_WHITE, for back compatibility." that was true only for the Windows platform and that required selection_color to be replaced by white for menu items which is not what FLTK 1.4 expects. The new state of menu item drawings is as follows : - all platforms draw menu items with the same symbolic colors - selected items and menu titles are drawn with the selection color as background color - menu items are drawn by default with no box but can be given one by Fl_Menu_::down_box(Fl_Boxtype) - the text of selected items is drawn with the menu's color unless fl_contrast() finds it does not make enough contrast with the background (selection color) and substitutes it with a more adapted color - the Windows platform uses a visibly different hue for its default selection color from what other platforms use
2024-05-07Improve arrow positions for 'oxy' schemeAlbrecht Schlosser
- improve centering the different arrows - fix one bug that prevented correct positioning
2024-05-07Limit (sub)menu arrow size as discussed in fltk.generalAlbrecht Schlosser
... in thread: "FLTK 1.4 Menu Bar Style", started on May 6, 2024 This is about the little triangle (or similar) pointing right when a submenu exists in a menu. The arrow form differs per scheme.
2024-05-06Wayland: simpler implementation of "GTK Shell" protocolManoloFLTK
2024-05-05Wayland: use frame_cb before redrawing GL subwins - cont'd (#967)ManoloFLTK
2024-05-03Wayland: use frame_cb before redrawing GL subwindows (#967)ManoloFLTK
2024-05-03macOS + CMake: fix use of optional framework UniformTypeIdentifiersManoloFLTK
2024-05-02macOS + GL: remove compilation error with old SDK versionsManoloFLTK
2024-04-30Remove (comment out) debug statement (kdialog)Albrecht Schlosser
2024-04-30Fix preset_file() and directory() in native file chooser for kdialogManoloFLTK
2024-04-30Implement and document new class Fl_PDF_File_SurfaceManoloFLTK
2024-04-29Fix potential NULL pointer dereferenceAlbrecht Schlosser
... as reported in thread "Windows 11 crash (still investigating)" of fltk.coredev, started on Apr 24, 2024. This bug could only be triggered if a /subwindow/ wss hidden but was not limited to Windows.
2024-04-27X11: simpler code to capture window decoration under xfceManoloFLTK
2024-04-26Fix repositioning subwindows.Matthias Melcher
The commit f288aea from Feb. 23rd introduced a regression where children of subwindows were moved inside the subwindow when only the subwindow itself was supposed to move. 
2024-04-26Box type focus frame graphics fixes.Matthias Melcher
2024-04-26X11: fix capture of window decoration under xfceManoloFLTK
2024-04-26Fixes warning.Matthias Melcher
2024-04-26Box types can now defined and draw their own focus frame, STR 2145, #659Matthias Melcher
2024-04-26Wayland: slightly simpler code for IM supportManoloFLTK
2024-04-25Fix problem in window titlebar capture under X11.ManoloFLTK
2024-04-25Fix error under KDE+Wayland where keystrokes tend to be repeatedManoloFLTK
see also: fltk-rs/fltk-rs#1539
2024-04-25Substantial fix for "IME problem under wayland" in fltk-rsManoloFLTK
see: fltk-rs/fltk-rs#1539
2024-04-24Very partial fix for "IME problem under wayland" in fltk-rsManoloFLTK
see: https://github.com/fltk-rs/fltk-rs/issues/1539
2024-04-23macOS: Fix scaling subwindows #927Matthias Melcher
Converting Cocoa coordinates into FLTK coordinates should be avoided as much as possible because the conversion loses precision for scaling != 100%.
2024-04-22 Fix for Fl_Native_File_Chooser::filter_value() - cont'd (#899)ManoloFLTK
2024-04-22 Fix: Fl_Native_File_Chooser::filter_value() [Kdialog] always returns 0 (#899)ManoloFLTK
- remove build option FLTK_USE_KDIALOG replaced by an Fl::option() option - new run-time option OPTION_FNFC_USES_KDIALOG - make options OPTION_FNFC_USES_KDIALOG and OPTION_FNFC_USES_ZENITY false by default - add mention of new program fltk-options in the doc of Fl::option() - change logic of choice of the native file chooser under X11/Wayland: the zenity and kdialog choosers are opt-in; otherwise the GTK file chooser is used, unless opted out with OPTION_FNFC_USES_GTK - document that zenity may be interesting for sandboxed apps - document that both zenity and kdialog make member functions Fl_Native_File_Chooser::filter_value() inoperable
2024-04-22 Fix: Wayland use of alpha in glClearColor/glClear (#957)ManoloFLTK
2024-04-21Fix build of test programs using shared FLTK libsAlbrecht Schlosser
2024-04-21CMake: add target_include_directories() for optional libs (#954)Albrecht Schlosser
This ensures that header files for libraries found by `pkg-config` (pkg_check_modules) in non-system directories will be found by the compiler during the compilation of the FLTK library. This issue has been reported in PR #954 related to builds with Conan where some header files are not in system locations.
2024-04-20Add "fl_" prefix to libdecor symbols when using the built-in copy of libdecorManoloFLTK
This allows client apps to use other versions of libdecor if they wish, just like what FLTK already does with libpng and libjpeg.
2024-04-20CMake/MSVC: Fix shared library build, add to GitHub CI buildAlbrecht Schlosser
Fault was a simple typo or copy-paste error
2024-04-19CMake: fix propagation of CMake targets to user projects (#954)Albrecht Schlosser
Unfortunately commit 5417ea5f1f33f62e2511bda74477da05dce900a3 broke simple user projects by propagating unknown CMake target names to linker requirements of user projects. This commit tries to fix this w/o breaking the intentions of PR #954.
2024-04-18Restore IMPORTED_TARGET in pkg_check_modules command for libdecorManoloFLTK
2024-04-18Allow libdecor package version ≥ 0.2.0 with FLTK_USE_SYSTEM_LIBDECORManoloFLTK
2024-04-17Fix 'int Fl_Menu_::value()' if item is in a submenu (STR 3241)Albrecht Schlosser
More precise: ... if the last picked item is in a "detached submenu", i.e. in one addressed by another menu item with the FL_SUBMENU_POINTER flag set. Also: document *why* this is the case, and what the result value is.
2024-04-17Separate FLUID user documentation, screen shot automation (#936)Matthias Melcher
* CMake integration, no autotiools * alignment panel is now correctly renamed to setting panel * source view is now correctly renamed to code view * Merge FLTK FLUID docs into FLUID user manual. * Add two simple entry tutorials * Remove FLUID chapter form FLTK docs. * GitHub action to generate HTML and PDF docs and make the available as artefacts
2024-04-14Fix and improve generation of fltk-config (#954 and more)Albrecht Schlosser
Parts of this commit fix the usage of CMake targets in the generation process of fltk-config modified by PR #954. The rest improves handling of variables used to generate fltk-config, removes obsolete comments, documents variables like GLLIBS etc. which had to be done anyway.
2024-04-14CMake: Use imported targets for PkgConfig packages (#954)Jordan Williams
This carries include directories and the required link flags. Several libraries brought in through pkg_check_modules aren't linked correctly using the _LDFLAGS variables. Instead, they link the libraries directly with `-l`. This is problematic because it doesn't properly pull in the actual directory of the library being linked when it is not in a system library directory. Likewise, the necessary include directories for several of these targets aren't properly set either. Linking against the imported targets automatically pulls in the necessary include directories.
2024-04-13Remove "MS" from "MS Windows" in docs code, and commentsAlbrecht Schlosser
The system (platform) is called "Windows", "MS Windows" doesn't make much sense. I removed "MS" for consistency.
2024-04-12CMake: Improve detection of the GLU library and GL/glu.h header file (#953)Jordan Williams
* CMake: Improve detection of the GLU library and GL/glu.h header file Locate the GLU library and header independent of the GL library and header locations. Add the GLU header location to necessary target_include_directory calls. * CMake: Locate and use the GL include directory Find the GL include directory and use it in target_include_directories calls.
2024-04-12Fix "Support for NetBSD", part 4 (#944)Albrecht Schlosser
Add missing return statement to replacement function for trunc(). Closes #944
2024-04-09Fix Fl_Terminal::handle_unknown_char() for plot_char() (#948)Albrecht Schlosser
- Add 'int Fl_Terminal::handle_unknown_char(int drow, int dcol)' to write the "unknown" character to the intended display position. - Define Fl_Terminal::unknown_char as a static variable to avoid redundancy. In the future this might be overridden by users.
2024-04-08Make Fl_GTK_Printer_Driver recognize more paper sizesManoloFLTK
also, make clear the B* paper size names are from JIS not ISO.