|
|
Le mercredi 22 mars 2023 à 08:33:42 UTC+1, Manolo a écrit :
Under Wayland, the adequate API already exists : #include <FL/platform.H>
#ifdef FLTK_USE_WAYLAND if (fl_wl_display()) { // to avoid when the hybrid library is in x11 mode
cairo_t *cr = fl_wl_cairo(); cairo_rectangle(cr, x, y, w, h); // for example
}
#endif
returns the cairo_t* quantity that is used in all cairo fiunction calls. This function can be called as soon as the image surface has been made current.
I should have written "This function can be called as soon as the target window or image surface has been made current."
--
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/59fb7c46-0028-4075-ba42-c4ea40e5b249n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |