summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-11-04Wayland DnD: make insertion cursor follow DnD cursor.ManoloFLTK
2022-11-04Wayland DnD: allow cancel with Fl::pushed(0) as under X11 (#525)ManoloFLTK
This is a partial fix of issue #525 that reproduces under Wayland the "unofficial", X11-specific way to cancel a Dnd operation by calling Fl::pushed(0).
2022-11-03Implement Fl_Scroll::on_insert()Albrecht Schlosser
This fixes the scrollbar order when children are inserted rather than at some indefinite time later, for instance in draw(). This commit will very likely make Fl_Scroll::fix_scrollbar_order() obsolete but this method is kept as is for tests and verification.
2022-11-03Implement destructor of Fl_Scroll and fix inconsistenciesAlbrecht Schlosser
2022-11-03libdecor: update from source git repo (commit e87dcfda)ManoloFLTK
This brings the GTK plugin inside the master libdecor git repo.
2022-11-01Added Fl_Group::on_insert/on_remove/on_move (#527)Matthias Melcher
2022-11-01Fix trailing whitespaceAlbrecht Schlosser
2022-11-01Remove unnecessary include files, update dependenciesAlbrecht Schlosser
2022-11-01Remove reversal of children in Fl_Group::clear()Albrecht Schlosser
See implementation note in src/Fl_Group.cxx: Fl_Group::clear().
2022-11-01Fluid support for Fl_Flex (#523) and some Fl_Flex improvementsMatthias Melcher
* Adding Fluid support for Fl_Flex, margins, and gap. * Fluid Fl_Flex mostly working. Fixed in Fl_Flex::set_size(). * Fluid Flex live mode works, interactive dragging works * Fluid Flex: adding check box for fixed children * Fluid Flex: visual flexibility indicator in guides. * Fluid Flex: bug in generated code. * Fix formatting * Fixing Tooltip, fixing resize issue PR #518. * Removing unused variables. Co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
2022-10-30Wayland platform: fix problem with fl_pie() (#512 - cont'd)ManoloFLTK
2022-10-30Wayland platform: fix problem with fl_pie() (#512 - cont'd)ManoloFLTK
2022-10-28Fix removal and deletion of the resizable() of Fl_GroupAlbrecht Schlosser
If the resizable() of an Fl_Group is deleted it is automatically removed from the group. New: to avoid dangling resizable() pointers the resizable widget is set to the group itself.
2022-10-25Repair commit e0c3fe9 to fix #521 which destroyed DnD from WaylandManoloFLTK
It turns out it's necessary to memorize 2 event serial numbers : - serial changed at each pointer and key event; - pointer_enter_serial changed when pointer enters a surface because this one and not any other is needed for exact cursor changes by wl_pointer_set_cursor() in do_set_cursor().
2022-10-25Fix drag-n-drop from X11 FLTK app to Wayland app (#519)ManoloFLTK
2022-10-25Fix problem with cursor point of action after FL_PUSH (#521)ManoloFLTK
2022-10-24Include stdint.h may be needed for uint32_t (#522)ManoloFLTK
2022-10-23Make Fl::display(const char *) active also for the Wayland platform.ManoloFLTK
2022-10-20Improve and clarify documentation of timeout functionsAlbrecht Schlosser
Some functions didn't document the handling of arguments properly, particularly Fl::has_timeout() and Fl::remove_timeout(). This is now fixed by documenting the correct behavior that was preserved (re-implemented) from FLTK 1.3.x in the new class Fl_Timeout. Unfortunately there have been some inconsistencies (likely unexpected behavior) which have been preserved and which are now documented.
2022-10-20Wayland drag-n-drop: send FL_DND_LEAVE when the dragging mouse leaves the windowManoloFLTK
2022-10-19Wayland drag-n-drop: handle subwindows as other platforms do (#516)ManoloFLTK
The d-n-d target window is now always the top-level window even if the mouse is over a subwindow. That's what all other platforms do. Global var fl_dnd_target_surface memorise what's the current d-n-d target surface and follows changes from top-window to subwindows.
2022-10-17Allow DnD from Wayland FLTK app to X11 FLTK app (#516)ManoloFLTK
2022-10-17Wayland drag-n-drop to Fl_Window: send necessary FL_ENTER event (#516)ManoloFLTK
Drag-n-drop under Wayland was OK in general except when the drop target is an Fl_Window because the belowmouse object is not set in this configuration. Processing an FL_ENTER event before the FL_DND_RELEASE event fixes that.
2022-10-16Fix "Fl::focus() changes Fl_Group::current() to null" (#515)Albrecht Schlosser
This issue is caused by setting `Fl_Group::current(0);` in Fl_Window::show(), i.e. in Fl_X::make_xid(..) in an attempt to fix a "very common user bug: forgot end()". As long as this is done, this commit fixes the issue. For details see GitHub issue #515.
2022-10-16macOS + homebrew: restore building with CMake's OPTION_APPLE_X11ManoloFLTK
These option combinations work: -DOPTION_APPLE_X11 -DOPTION_APPLE_X11 -DOPTION_USE_CAIRO But -DOPTION_APPLE_X11 -DOPTION_USE_PANGO is not possible because homebrew doesn't provide the pangoxft package.
2022-10-14Make sure display is open when using native file chooser (#514)ManoloFLTK
2022-10-13Fix regression in "configure --enable-shared" introduced at c96a4f3ManoloFLTK
2022-10-12Wayland platform: fix for issue #512 with fl_arc().ManoloFLTK
2022-10-10Remove duplications between Fl_Graphics_Driver and derived classes.ManoloFLTK
2022-10-10 Fl_Cairo_Graphics_Driver: fix Fl_Bitmap drawing whatever the endianness.ManoloFLTK
2022-10-10Fix for issue #511: allow fl_circle() even without calls to ↵ManoloFLTK
fl_begin/end_loop/polygon().
2022-10-09Fl_Cairo_Graphics_Driver: make image drawing correct whatever the host ↵ManoloFLTK
endianness.
2022-10-09Remove superfluous center alignment from imagesAlbrecht Schlosser
Doxygen uses a <div> with center alignment for images, hence adding HTML center alignment for image is not only superfluous but was also inconsistent. Also removed some more unnecessary HTML tags, updated copyright year.
2022-10-09Fix issue #510: image transparency is not properly processed.ManoloFLTK
2022-10-09Fix documentation of Fl_Timeout::insert()Albrecht Schlosser
2022-10-06Update window icon-related doc in platform-specific section.ManoloFLTK
2022-10-06Make Windows-specific HICON-using functions visible in doc.ManoloFLTK
2022-10-06Fix use of several FLTK widgets above an GL scene.ManoloFLTK
The code failed with 2 or more widgets when FLTK would trigger partial redraws of the widgets, unless the Fl_Gl_Window was FL_DAMAGE_ALL. This commit also adds a second FLTK widget to example/OpenGL3test to check this multiple widget situation, and fixes an error where operator ! was used instead of ~ .
2022-10-05Fix issue #509: Cairo drawing: unexpected behaviourManoloFLTK
This commit fixes " "drawing an fl_pie() with dimension 1x1". But it does not change "drawing fl_line() with begin position = end position does not show" because the same behaviour is observed with Windows and macOS.
2022-10-03Revert 75016cb because it doesn't work well with macOS < 13.0ManoloFLTK
The problem is visible with test/tile when moving the sub window's border. This also fixes issue #508
2022-10-02Add missing return value to Fl_WinAPI_Gl_Window_Driver::create_gl_context()ManoloFLTK
2022-10-02Clean use of virtual GLContext Fl_Gl_Window_Driver::create_gl_context().ManoloFLTK
2022-10-02macOS: simpler way to delete the GL1 context of widgets-using GL3 windows.ManoloFLTK
2022-10-01macOS: support 5 more keys as Fl_Sys_Menu_Bar item shortcuts.ManoloFLTK
2022-10-01macOS: fixed problem in resizing of widget-containing OpenGL 3 window.ManoloFLTK
2022-09-30FLTK widgets in OpenGL 3 windows: rewrite for driver system.ManoloFLTK
2022-09-30macOS: simpler code for auxiliary NSView supporting widgets on a GL3 window.ManoloFLTK
2022-09-30Support of FLTK widgets in OpenGL 3 windows under Windows.ManoloFLTK
2022-09-30macOS: implement (BOOL)[FLView isOpaque] to improve drawing performance.ManoloFLTK
2022-09-30macOS: support FL_Up,FL_Down,FL_Left,FL_Right system menu item shortcutsManoloFLTK