FLTK logo

Re: [fltk.coredev] Exploration: FLTK platform compatible with both Wayland and X11

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

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



On Tue, Apr 5, 2022 at 6:14 AM Manolo <manolo.gouy@gmail.com> wrote:


 [...]

CMake OPTION_USE_WAYLAND produces a hybrid Wayland/X11 library
whose X11 leg draws with Cairo.

The new OPTION_CAIROXLIB produces a X11 library using Cairo to draw
to X11 windows and to offscreen buffers.

OPTION_USE_PANGO produces a X11 library using Xlib to draw and Pango to draw text.

The default run produces a X11 library using Xlib to draw and Xft to draw text.

My proposal would be to use that for FLTK 1.4.
 

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/6ba43148-5318-5b15-b05b-b60518b4fb8c%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.