diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-04-13 10:02:40 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-04-13 10:02:40 +0200 |
| commit | caaa11a96f8448bd78cb270e4861f5e9ff1a6763 (patch) | |
| tree | 1d3e10cce9d26b62ca053f8d911dcd81d098942c /documentation/src | |
| parent | e6c9deb4a4fca8e7f0241e74ec242213628de6b6 (diff) | |
Standardize API to "graphics context" across platforms
Rename fl_wl_cairo() to fl_wl_gc()
Add function cairo_t* fl_cairo_gc() under OPTION_USE_CAIRO
Diffstat (limited to 'documentation/src')
| -rw-r--r-- | documentation/src/osissues.dox | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/documentation/src/osissues.dox b/documentation/src/osissues.dox index fe25ca2b4..998a8a54d 100644 --- a/documentation/src/osissues.dox +++ b/documentation/src/osissues.dox @@ -1013,11 +1013,11 @@ struct wl_surface *fl_wl_surface(struct wld_window *wld_win) Returns a pointer to the struct wl_surface corresponding to a show()'n top-level window or subwindow. -cairo_t *fl_wl_cairo(void) +cairo_t *fl_wl_gc() \par Drawing natively to a Wayland window : Within an overridden Fl_Widget::draw() method, or after a call to Fl_Window::make_current(), it's possible to draw -<u>using the Cairo library</u>. Function \c fl_wl_cairo() returns the adequate +<u>using the Cairo library</u>. Function \c fl_wl_gc() returns the adequate \c cairo_t* value. Regular FLTK coordinates, with top-left origin, are to be used. All FLTK-defined drawing functions (e.g., fl_rect(), fl_draw()) can be used too. |
