summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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-15Wayland mouse wheel support: compositors can behave differentlyManoloFLTK
2023-08-14Handle shift + mousewheel event on Wayland (STR 3521)Albrecht Schlosser
Pressing the shift key while using the mousewheel changes horizontal to vertical scrolling and vice versa. This allows users with a standard mouse with only one scrollwheel to use it for both scrolling directions. This concludes "handling shift + mousewheel" for all supported platforms.
2023-08-13Handle shift + mousewheel event on Windows (STR 3521)Albrecht Schlosser
Pressing the shift key while using the mousewheel changes horizontal to vertical scrolling and vice versa. This allows users with a standard mouse with only one scrollwheel to use it for both scrolling directions. Note: other mice that have either two buttons or a scroll ball can generate both horizontal and vertical scrolling in one action. This commit does not affect such behavior. This patch is different than the one in file 'scroll.patch' (STR 3521). It takes care of distinct mousewheel delta calculation for vertical and horizontal mousewheels and avoids the "fallthrough" case. Note: macOS takes care of this, there's no special handling required. To do: the Wayland platform still needs to be updated.
2023-08-13Handle shift + mousewheel event on Linux (STR 3521)Albrecht Schlosser
Pressing the shift key while using the mousewheel changes horizontal to vertical scrolling and vice versa. This allows users with a standard mouse with only one scroll button to use it for both scrolling directions. Note: other mice that have either two buttons or a scroll ball can generate both horizontal and vertical scrolling in one action. This commit does not affect such behavior. This patch has been provided by Manolo in file 'scroll.patch' (see STR 3521).
2023-08-13Fl_Tabs now supports horizontal mouse wheel events.Matthias Melcher
2023-08-12Fix access to Cairo context.Aditya Siram
2023-08-10Reformat code, remove obsolete commentsAlbrecht Schlosser
No effective code changes, i.e. only formatting, indents and comments.
2023-08-10Improve docs of Fl::hide_all_windows()Albrecht Schlosser
+ update fluid dependencies No code changes.
2023-08-09macOS: add extra comment explaining need for PPC-specific source codeManoloFLTK
2023-08-09Fl_cocoa.mm: fix Apple macro for PPC caseSergey Fedorov
2023-08-09Wayland: fix fl_read_image() from offscreen bufferManoloFLTK
2023-08-08Wayland: improve layout of struct fl_wld_draw_bufferManoloFLTK
2023-08-08Move repeated code to Fl_Wayland_Graphics_Driver::cairo_init()ManoloFLTK
2023-08-07Fix for Broken "cube" demo (#762)ManoloFLTK
This commit fixes an error in the cube demo appearing specifically with the AMD Radeon GPU.
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-05Let FLTK give more detailed description of a Wayland fatal errorManoloFLTK
Wayland protocol error messages now give the protocol name and the error code.
2023-08-04Fix typos in documentation of fl_overlay_rect() etc. (#735)Albrecht Schlosser
Thanks to Matt for the improved docs, I just fixed some typos and added '()'s for better doxygen comments of functions.
2023-08-04#735: better comments on fl_overlay_rect()Matthias Melcher
2023-08-04Improve procedure to close decorated Wayland windowManoloFLTK
Libdecor complicates what should be simple, to close a decorated window, because it uses the titlebar after return from the closing callback function. Thus, FLTK delays the sending of the FL_CLOSE event to the window, only when libdecor runs in CSD mode.
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-08-03Slightly improve Fl_Wayland_Screen_Driver::poll_or_select_with_delay()ManoloFLTK
2023-08-02#762: saves all frequently used OpenGL attributesMatthias Melcher
When rendering the OpenGL layer, this prepares the FLTK rendering parameters and restores them after FLTK rendering.
2023-08-02Fix Fl_Wayland_Image_Surface_Driver::end_current()ManoloFLTK
2023-08-02Wayland: fix window closing with Sway's kill command or app menuManoloFLTK
2023-07-31Wayland: add test to avoid null pointer dereferencingManoloFLTK
2023-07-31Implement Fl_Wayland_Screen_Driver::poll_or_select_with_delay(double)ManoloFLTK
2023-07-29Wayland: simpler use of function eglChooseConfig()ManoloFLTK
2023-07-28Fl_Shortcut_Button: Silence compiler warningsAlbrecht Schlosser
Part 1: [-Wreorder] 'shortcut_value’ will be initialized after ... Part 2: [-Wunused] unused variable 'Y'
2023-07-28Wayland.dox: add info about the xdg decoration protocolManoloFLTK
Also, use KWin to name the KDE desktop's Wayland compositor.
2023-07-22Adds default shortcut to Fl_Shortcut_Button.Matthias Melcher
2023-07-21Wayland: slightly improve procedure to close toplevel windowManoloFLTK
2023-07-19Fix missing (new) source file in fluid and dependenciesAlbrecht Schlosser
New file: Fl_Button_Type.cxx
2023-07-19Fix textcolor of transient scale display (#756)Albrecht Schlosser
Make background color and text (label) color of the transient scale display consistent with tooltip colors.
2023-07-15Documentation: add detail about primary monitorManoloFLTK
2023-07-14Keep sending FL_DRAG until all mouse buttons are releasedAlbrecht Schlosser
The old version would send FL_MOVE events after dragging with more than one mouse buttons pressed, as soon as the first button was released. The new version sends FL_DRAG until the last mouse button is released and then FL_MOVE, as usual. This change affects dragging only if more than one mouse button is pushed and held while dragging. The order of pushing and releasing mouse buttons does not affect the behavior.
2023-07-13Wayland: add control of targeted screen by fullscreen windowsManoloFLTK
2023-07-13Clamp input values of Fl_Color_Chooser (#749)Albrecht Schlosser
Note: this may be somewhat confusing if the user enters out-of-range values manually because they are overwritten immediately with valid input but the effects seen in issue #749 are IMHO worse.
2023-07-12Wayland: keep mouse button state across push/release eventsAlbrecht Schlosser
Notes: (1) Fl::e_state holds the current state of all mouse buttons which is returned by Fl::event_buttons() - "plural form". (2) Fl::e_keysym holds the "key" of the current event which can be a mouse button, returned by Fl::event_button() - "singular form".
2023-07-12Fix Wayland FL_RELEASE events reporting wrong buttonAlbrecht Schlosser
... in Fl::event_button(). This can be seen when two buttons have been pressed simultaneously and then released (see test/handle_events.cxx).
2023-07-12corrects default popup menu box type for Fl_Choice (#748)Matthias Melcher
2023-07-10More detailed documentation of Fl::screen_xywh()ManoloFLTK
2023-07-09Update CMakeLists.txtMohammed Alyousef
2023-07-07Improve documentation of Fl::screen_num(int x, int y)ManoloFLTK
2023-06-28Clarify documentation of Fl_Window::size_range()Albrecht Schlosser
Document typical (recommended) usage and platform specific behavior.
2023-06-28Have Fl_Wayland_Window_Driver use Fl::add_check() when adequateManoloFLTK
2023-06-27Slight simplification of Fl_Wayland_Gl_Window_Driver::swap_buffers()ManoloFLTK
Also, reorder members of class Fl_Wayland_Gl_Window_Driver
2023-06-26Fix Fl_Cocoa_Gl_Window_Driver::resize()ManoloFLTK
The additional [NSOpenGLContext flushBuffer] messages appear necessary when an Fl_Tile contains 2 or more GL subwindows.
2023-06-24Wayland: improve mapping and hiding of GL (subs)windowsManoloFLTK