Re: Exploration: FLTK platform compatible with both Wayland and X11
Albrecht Schlosser
Apr 06, 2022
On 4/5/22 21:04 Bill Spitzak wrote:
This sounds like exactly what is needed and wanted.
I might change the second option name to OPTION_USE_CAIRO for
consistency with the others
I agree with Bill that OPTION_USE_CAIRO would be a better name for
the option to use Cairo drawing ((currently) in Xlib context (only))
[1] as he said, for consistency.
The "other" existing Cairo options 'OPTION_CAIRO'
and 'OPTION_CAIROEXT' are the same as
these for configure:
--enable-cairo use Cairo library
--enable-cairoext use FLTK code instrumentation for cairo
extended use
which, as Ian said, are used to feature Fl_Cairo_Window (--enable-cairo) and Cairo usage in all
window types (--enable-cairoext) if
requested on all platforms (not only Unix/X11/Wayland).
We need to keep those because they are useful on all platforms,
although the are probably rarely used. I'm not keen on having these
configure/CMake options because they can only be used if users build
their own FLTK libs (I don't think they would be configured in stock
Linux distros, for instance). I would prefer another way to support
users that need such Cairo integration (w/o configuring the FLTK
library) but that is not going to work in 1.4.0, hence we need to
stick with these for now.
Good (better) documentation for these three options ('OPTION_CAIRO', 'OPTION_CAIROEXT',
'OPTION_USE_CAIRO') would be necessary.
[1] I wrote "(currently) in Xlib context (only) because this could
be used on other platforms too if we wanted. Although the native
(Windows, macOS) drawing would likely be more efficient
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.