diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-15 06:42:06 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-08-29 12:15:32 +0200 |
| commit | c720aae51515907ae82ee02df80bd084f291d4b1 (patch) | |
| tree | 7fbf3569f35966891df68490b047b30c9ec20bcd /README.Cairo.txt | |
| parent | 28981f6fd3971aaf7ff6527ee1cdeb9d886c4a4a (diff) | |
Make hybrid Wayland/X11 platform.
Diffstat (limited to 'README.Cairo.txt')
| -rw-r--r-- | README.Cairo.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/README.Cairo.txt b/README.Cairo.txt index b2bfba0e7..6d70e9213 100644 --- a/README.Cairo.txt +++ b/README.Cairo.txt @@ -61,11 +61,19 @@ variable OPTION_CAIRO:BOOL=ON is set. transparently a Cairo context to your custom Fl_Window derived class. This function is intended to be used in your overloaded draw() method. -(3) Adding an optional Cairo autolink context mode support which permits +(3) FLTK instrumentation for cairo extended use : + Adding an optional Cairo autolink context mode support which permits complete and automatic synchronization of OS dependent graphical context and Cairo contexts, thus furthering a valid Cairo context anytime, in any current window. + Usage : + - Call Fl::cairo_autolink_context(true); before windows are shown. + - In an overridden widget draw method, do + cairo_t *cc = Fl::cairo_cc(); + and obtain the cairo context value adequate to draw with cairo to + the current window. + This feature should be only necessary in the following cases: - Intensive and almost systematic use of Cairo in an FLTK application - Creation of a new Cairo based scheme for FLTK |
