mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 04:55:29 +08:00
Add support of Fl_Region to the Cairo graphics driver
and remove it from the Wayland graphics driver.
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ typedef struct HGLRC__ *GLContext;
|
||||
|
||||
#elif defined(FLTK_USE_WAYLAND)
|
||||
typedef struct fl_wld_buffer *Fl_Offscreen; /**< an offscreen drawing buffer */
|
||||
typedef struct flWaylandRegion* Fl_Region;
|
||||
typedef struct flCairoRegion* Fl_Region;
|
||||
typedef int FL_SOCKET; /**< socket or file descriptor */
|
||||
typedef void *EGLContext;
|
||||
typedef EGLContext GLContext;
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
|
||||
typedef struct wld_window *Window;
|
||||
|
||||
struct flWaylandRegion {
|
||||
struct flCairoRegion {
|
||||
int count;
|
||||
struct _cairo_rectangle *rects;
|
||||
}; // a region is the union of a series of rectangles
|
||||
|
||||
@@ -86,6 +86,13 @@ extern FL_EXPORT Fl_XFont_On_Demand fl_xfont;
|
||||
|
||||
extern FL_EXPORT char fl_override_redirect; // hack into Fl_X::make_xid()
|
||||
|
||||
#if USE_PANGO
|
||||
struct flCairoRegion {
|
||||
int count;
|
||||
struct _cairo_rectangle *rects;
|
||||
}; // a region is the union of a series of rectangles
|
||||
#endif
|
||||
|
||||
#endif // FL_LIBRARY || FL_INTERNALS
|
||||
|
||||
#endif // FL_DOXYGEN
|
||||
|
||||
Reference in New Issue
Block a user