diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-10 15:05:26 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-10 15:05:26 +0100 |
| commit | 9d869d73c1ca8f6c884f528a3ad4f623f25dffb1 (patch) | |
| tree | eac9ea00fe50b10b054519a9f9775734a0a5b9b2 /src | |
| parent | 9e4c7aa77cc9e68afe1d6865662410664eed02f7 (diff) | |
Begin documenting the Wayland platform, new in FLTK version 1.4
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx index 9a02cff95..6241d5af8 100644 --- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx @@ -1588,3 +1588,12 @@ void Fl_Wayland_Window_Driver::menu_window_area(int &X, int &Y, int &W, int &H, //printf("menu_window_area: %dx%d - %dx%d\n",X,Y,W,H); } else Fl_Window_Driver::menu_window_area(X, Y, W, H, nscreen); } + + +FL_EXPORT struct wl_surface *fl_wl_surface(Window xid) { + return xid->wl_surface; +} + +FL_EXPORT struct _cairo *fl_wl_cairo() { + return ((Fl_Cairo_Graphics_Driver*)fl_graphics_driver)->cr(); +} |
