mirror of https://github.com/fltk/fltk
Cleaner declaration of public function fl_wl_cairo().
This commit is contained in:
parent
c02fba6bb9
commit
20c50312fc
|
@ -26,7 +26,8 @@ struct flCairoRegion {
|
||||||
}; // a region is the union of a series of rectangles
|
}; // a region is the union of a series of rectangles
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
typedef struct _cairo cairo_t;
|
||||||
|
|
||||||
FL_EXPORT struct wl_display *fl_wl_display();
|
FL_EXPORT struct wl_display *fl_wl_display();
|
||||||
FL_EXPORT struct wl_surface *fl_wl_surface(Window xid);
|
FL_EXPORT struct wl_surface *fl_wl_surface(Window xid);
|
||||||
FL_EXPORT struct _cairo *fl_wl_cairo();
|
FL_EXPORT cairo_t *fl_wl_cairo();
|
||||||
|
|
|
@ -964,13 +964,13 @@ struct wl_surface *fl_wl_surface(Window wld_win)
|
||||||
Returns a pointer to the struct wl_surface corresponding to a show()'n
|
Returns a pointer to the struct wl_surface corresponding to a show()'n
|
||||||
top-level window or subwindow.
|
top-level window or subwindow.
|
||||||
|
|
||||||
struct _cairo *fl_wl_cairo(void)
|
cairo_t *fl_wl_cairo(void)
|
||||||
\par
|
\par
|
||||||
Drawing natively to a Wayland window : Within an overridden Fl_Widget::draw() method,
|
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
|
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_cairo() returns the adequate
|
||||||
\c cairo_t* (equivalent to <tt>struct _cairo*</tt>) value. All FLTK-defined
|
\c cairo_t* value. Regular FLTK coordinates, with top-left origin, are to be used.
|
||||||
drawing functions (e.g., fl_rect(), fl_draw()) can be used too.
|
All FLTK-defined drawing functions (e.g., fl_rect(), fl_draw()) can be used too.
|
||||||
|
|
||||||
void fl_close_display()
|
void fl_close_display()
|
||||||
\par
|
\par
|
||||||
|
|
|
@ -1543,7 +1543,7 @@ struct wl_surface *fl_wl_surface(Window xid) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
struct _cairo *fl_wl_cairo() {
|
cairo_t *fl_wl_cairo() {
|
||||||
return ((Fl_Cairo_Graphics_Driver*)fl_graphics_driver)->cr();
|
return ((Fl_Cairo_Graphics_Driver*)fl_graphics_driver)->cr();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue