Commit Graph

12458 Commits

Author SHA1 Message Date
Matthias Melcher 9fe0496f3b Fix missing pen event name and a warning 2026-04-24 20:34:25 +02:00
Matthias Melcher bcefcdae25 Fix Fl_ICO_Image reading from memory block, #1420 2026-04-24 19:24:09 +02:00
ManoloFLTK a004d6cb2c Add a macOS icon to the glpuzzle test program.
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-04-24 11:52:44 +02:00
ManoloFLTK 6dd2f81ae6 Documentation: refer to image-saving functions when describing images (#1419) 2026-04-24 07:37:05 +02:00
ManoloFLTK 3f1a524f5f utf8 test program: use example of emoji character encoded via an emoji sequence. 2026-04-24 07:37:05 +02:00
ManoloFLTK 45e1309c62 macOS: remove duplicated code. 2026-04-24 07:37:05 +02:00
Albrecht Schlosser 3c8bc27458 macOS: yet another fix of line drawing (#1409)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
The call to fixloop() had been accidentally removed by previous commits.

This commit fixes it to prevent potential regressions in *other* code
(not directly related to symbol drawing).
2026-04-23 20:41:35 +02:00
Matthias Melcher e19bc59ec1 Fix line loop drawing on macOS (#1409)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-04-22 21:10:43 +02:00
ManoloFLTK a4c98526d9 macOS: remove method process_keydown:(NSEvent*) of class FLView that's no longer useful.
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-04-21 18:42:40 +02:00
ManoloFLTK a35f76a256 macOS: remove text-related code present only to support macOS versions older than 10.7. 2026-04-21 18:07:32 +02:00
ManoloFLTK 7cedc41de3 Update description of the gl_image example program. 2026-04-20 18:18:47 +02:00
ManoloFLTK 71c26d47f5 Discussion "More built-in named colors for FLTK 1.5?" (#1259).
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
A new file FL/rgb_colors.H is created to define 490 color names.
This file derives from Xorg's rgb.txt list of color names.
The purpose and use of this file is documented.
2026-04-20 16:34:07 +02:00
ManoloFLTK d62138eb41 Fix: Wrapped Multiline Input/Output scrolls horizontally at the edges - cont'd (#1414) 2026-04-20 15:33:07 +02:00
ManoloFLTK de5eed9847 Fix: Wrapped Multiline Input/Output scrolls horizontally at the edges (#1414)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-04-20 13:03:51 +02:00
Albrecht Schlosser d8c7c72899 Fix "Wrapped Multiline Input/Output scrolls hor. ..." (#1414)
Note: I added 5 pixels space for the cursor rather than 4 as proposed.

See also related commit b2399e393f
  from Sep 28, 2011 to STR 2684
2026-04-20 12:37:13 +02:00
ManoloFLTK 4533eaa5c6 Wayland: simplify procedure to compute the size of the screen's work area.
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-04-15 15:45:38 +02:00
ManoloFLTK 2b68861ea6 macOS: add fluid icon to the fluid bundle app. 2026-04-14 19:21:17 +02:00
Albrecht Schlosser 4ff83a34c3 Add icon to fluid (STR 2952)
This update consists of three parts:

1. update icons/fluid.ico to the one provided by STR 2952
2. Windows: add resource file fluid/fluid.rc using 'fluid.ico'
3. Cross-platform: add icon using 'icons/fluid-128.png' to fluid executable

Note: file 'fluid/fluid_icon.cxx' is generated by fluid using fluid_icon.fl.
2026-04-14 17:57:42 +02:00
dannye dde8ef8c87 Fix Hold Browser callback with FL_WHEN_NOT_CHANGED when up/down is pressed 2026-04-14 17:16:17 +02:00
dannye 9b9bfee348 Fix Select/Hold Browser callback with FL_WHEN_CHANGED when mouse is dragged 2026-04-14 17:05:23 +02:00
dannye 079f29ca5a Fix Select/Hold Browser callback with FL_WHEN_RELEASE when mouse is dragged 2026-04-14 16:59:22 +02:00
ManoloFLTK 99648c047c Fix "fl_add_symbol() *always* increments symbnumb" (#1410). 2026-04-14 16:33:44 +02:00
ManoloFLTK ea1b1bddd9 Fix "Mac: Most fl_symbols missing corner pixels" (#1409). 2026-04-14 16:10:48 +02:00
ManoloFLTK 2b3cb9be65 Fix "Mac: Stubborn tooltips when menu window is open" (#1408)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
The fix extends to all platforms the check that doesn't post a tooltip window if
a menu window is active.
Therefore, virtual member function Fl_System_Driver::use_tooltip_timeout_condition()
is no longer necessary.
2026-04-14 12:17:13 +02:00
Matthias Melcher 34c7120330 Fluid: write code files only when the actually change (STR 1859) (#1406)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
This prevents unnecessary file updates when content hasn't changed,
reducing recompilation time in projects that depend on fluid-generated files.
Uses std::ostringstream before deciding if file differs.
2026-04-13 17:11:15 +02:00
Matthias Melcher 15448c45b0 Add fl_write_jpeg function (STR 460) (#1405)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-04-12 23:49:20 +02:00
ManoloFLTK 1ad5777c6a Wayland: use libdecor_dispatch() instead of wl_display_dispatch().
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-04-09 19:11:45 +02:00
ManoloFLTK dfc930d346 Wayland: partial implementation of multi-screen fullscreen windows (#1397)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
Wayland doesn't seem to allow creation of true multi-screen fullscreen windows.
This commit implements an approximation of a multi-screen fullscreen window.
It resizes a window to the total width and the total height of targetted screens.
Under Mutter, this produces a window that covers all screens except the
main screen's menubar.
Other compositors may reply differently to this request.
KWin produces a multi-screen fullscreen window only if the window is initially
decorated and in the main screen.
2026-04-08 10:45:50 +02:00
ManoloFLTK 24b66b2b31 Wayland: fix computation of workarea and screen positions when fractional scaling.
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-04-08 08:57:59 +02:00
Albrecht Schlosser 1377c60100 Fl_Tree: make automatic resizing of children optional (STR 3030)
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
- add getter and setter methods:
  - int Fl_Tree::auto_resize_children()
  - void Fl_Tree::auto_resize_children(int mode)

Note: the default in 1.5.0 is "OFF", i.e. no automatic resizing.
  The methods above can be used to switch it on if required.

This is a behavioral change to fix a bug in 1.4 and lower. It will not
be backported because it would break the ABI.
2026-04-07 20:41:08 +02:00
BlueCannonBall 49f3aaf4a1 Add null check for child window in callback
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
Fixes issue #1401
2026-04-06 08:01:17 +02:00
ManoloFLTK 12f90c87d6 Wayland: set the "application identifier" of non bordered, toplevel windows also (#1391).
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-04-04 09:13:06 +02:00
ManoloFLTK ad537eddce Fix Fl_Image::fail() that reported always failure for Fl_Bitmap's. 2026-04-03 15:27:00 +02:00
ManoloFLTK 1e2d7d2a95 Fix typo in documentation. 2026-04-03 15:06:12 +02:00
ManoloFLTK f315573a26 Implement Fl_Window::xclass(const char*) for the Wayland platform (#1391).
Also, improve the document of this member function for the Windows platform.
2026-04-03 09:43:36 +02:00
ManoloFLTK d816da57b8 Wayland: restore usability of fl_close_display(). 2026-04-02 14:24:31 +02:00
ManoloFLTK e8e5e61505 Wayland: polish operations performed in atexit callback. 2026-04-02 12:58:36 +02:00
ManoloFLTK f121bc1c7e Wayland: call libdecor_unref() at end of program as required by libdecor. 2026-04-02 12:21:21 +02:00
ManoloFLTK 8e9e2b7818 Wayland: dispatch socket data with function libdecor_dispatch() as required by libdecor.
Many thanks to Jonas Ådahl for pointing out FLTK didn't follow this requirement
and suggesting code changes (#1390).
2026-04-02 09:17:23 +02:00
ManoloFLTK 1120eb96cd Fl_OpenGL_Graphics_Driver: improve partial image drawing. 2026-04-01 11:52:52 +02:00
ManoloFLTK 0279cd6691 Fl_OpenGL_Graphics_Driver: add support of depth-2 Fl_RGB_Image's. 2026-03-31 16:37:47 +02:00
ManoloFLTK 2b04b00f6e Fl_OpenGL_Graphics_Driver: add support of depth-1 Fl_RGB_Image's. 2026-03-31 09:36:11 +02:00
ManoloFLTK d6a89246a0 Fix typo in function Fl_RGB_Image *bitmap_to_rgb1(Fl_Bitmap*) in Fl_OpenGL_Graphics_Driver 2026-03-30 16:55:48 +02:00
ManoloFLTK 3d4be2470c Fl_OpenGL_Graphics_Driver: add support of Fl_Bitmap and a cache of textures. 2026-03-30 16:31:26 +02:00
Albrecht Schlosser 33609ba730 Fl_Scroll: replace two local structs with Fl_Rect
- replace struct Fl_Region_XYWH with Fl_Rect
- replace struct Fl_Region_LRTB with Fl_Rect
- rename  struct Fl_Scrollbar_Data to Scrollbar_Data

Note: these local structs were created before Fl_Rect existed and
are now obsolete.
2026-03-28 19:25:38 +01:00
ManoloFLTK a0d9a3aa22 Fl_OpenGL_Graphics_Driver: create file Fl_OpenGL_Graphics_Driver_image.cxx
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
2026-03-28 10:21:21 +01:00
ManoloFLTK 3806717f6f Add gl_image example program to illustrate drawing images to an Fl_Gl_Window. 2026-03-28 08:20:31 +01:00
ManoloFLTK 578b91d490 Wayland: fix creation of toplevel Fl_Gl_Window 2026-03-28 07:25:34 +01:00
ManoloFLTK a692c91524 Add support of RGB image and Pixmap drawing to class Fl_OpenGL_Graphics_Driver.
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled
This allows to add RGB (and derived classes) or Pixmap images to widgets
layed over a GL scene.
2026-03-27 17:29:25 +01:00
ManoloFLTK ed2238bc2a Override virtual function Fl_Image::scale(int,int) for class Fl_SVG_Image.
An SVG image has no intrinsic size, so it makes no sense to prohibit enlarging it beyond an intrinsic size.
2026-03-27 17:10:35 +01:00