diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-04 15:40:29 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-04 15:41:00 +0100 |
| commit | 3718effc431f5622a23c55b254153efdfe4e72c4 (patch) | |
| tree | d8a805870c6a3785022e2f52f0c3715410e29a37 /FL/wayland.H | |
| parent | a773fdc44bfb818f1830e9e48ba765881e68c942 (diff) | |
Add the Wayland platform to FLTK 1.4
Diffstat (limited to 'FL/wayland.H')
| -rwxr-xr-x | FL/wayland.H | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/FL/wayland.H b/FL/wayland.H new file mode 100755 index 000000000..af0851da7 --- /dev/null +++ b/FL/wayland.H @@ -0,0 +1,31 @@ +// +// Wayland platform header file for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998-2021 by Bill Spitzak and others. +// +// This library is free software. Distribution and use rights are outlined in +// the file "COPYING" which should have been included with this file. If this +// file is missing or damaged, see the license at: +// +// https://www.fltk.org/COPYING.php +// +// Please see the following page on how to report bugs and issues: +// +// https://www.fltk.org/bugs.php +// + +#if !defined(FL_PLATFORM_H) +# error "Never use <FL/wayland.H> directly; include <FL/platform.H> instead." +#endif // !FL_PLATFORM_H + +typedef struct wld_window *Window; + +extern struct wl_display *fl_display; + +struct flWaylandRegion { + int count; + struct _cairo_rectangle *rects; +}; // a region is the union of a series of rectangles + +#include <stdint.h> +extern FL_EXPORT uint32_t fl_event_time; |
