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 /src/drivers/Wayland/Fl_Wayland_System_Driver.H | |
| parent | a773fdc44bfb818f1830e9e48ba765881e68c942 (diff) | |
Add the Wayland platform to FLTK 1.4
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_System_Driver.H')
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_System_Driver.H | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_System_Driver.H b/src/drivers/Wayland/Fl_Wayland_System_Driver.H new file mode 100644 index 000000000..d117f3823 --- /dev/null +++ b/src/drivers/Wayland/Fl_Wayland_System_Driver.H @@ -0,0 +1,34 @@ +// +// Definition of Wayland system driver +// for the Fast Light Tool Kit (FLTK). +// +// Copyright 2010-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 +// + +#ifndef FL_WAYLAND_SYSTEM_DRIVER_H +#define FL_WAYLAND_SYSTEM_DRIVER_H + +#include "../Unix/Fl_Unix_System_Driver.H" + +class FL_EXPORT Fl_Wayland_System_Driver : public Fl_Unix_System_Driver { +public: + Fl_Wayland_System_Driver() : Fl_Unix_System_Driver() { + // Wayland system driver uses the default key table + } + virtual int need_menu_handle_part2() {return 0;} + int event_key(int k); + int get_key(int k); + virtual void *control_maximize_button(void *data); +}; + +#endif /* FL_WAYLAND_SYSTEM_DRIVER_H */ |
