From b549cfaaea11ce5e881e2151a838c91a031ad9ba Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 13 Mar 2022 08:56:23 +0100 Subject: Separate platform init functions from platform-specific driver files --- src/drivers/Xlib/Fl_Xlib_Copy_Surface_Driver.H | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/drivers/Xlib/Fl_Xlib_Copy_Surface_Driver.H (limited to 'src/drivers/Xlib/Fl_Xlib_Copy_Surface_Driver.H') diff --git a/src/drivers/Xlib/Fl_Xlib_Copy_Surface_Driver.H b/src/drivers/Xlib/Fl_Xlib_Copy_Surface_Driver.H new file mode 100644 index 000000000..a0b0db171 --- /dev/null +++ b/src/drivers/Xlib/Fl_Xlib_Copy_Surface_Driver.H @@ -0,0 +1,36 @@ +// +// Copy-to-clipboard code for the Fast Light Tool Kit (FLTK). +// +// Copyright 2022 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_XLIB_COPY_SURFACE_DRIVER_H +#define FL_XLIB_COPY_SURFACE_DRIVER_H + +#include +#include + +class Fl_Xlib_Copy_Surface_Driver : public Fl_Copy_Surface_Driver { + friend class Fl_Copy_Surface_Driver; + virtual void end_current(); +protected: + Fl_Offscreen xid; + Window oldwindow; + Fl_Xlib_Copy_Surface_Driver(int w, int h); + ~Fl_Xlib_Copy_Surface_Driver(); + void set_current(); + void translate(int x, int y); + void untranslate(); +}; + +#endif // FL_XLIB_COPY_SURFACE_DRIVER_H -- cgit v1.2.3