17#ifndef Fl_Copy_Surface_H
18#define Fl_Copy_Surface_H
20#include <FL/Fl_Widget_Surface.H>
51 class Fl_Copy_Surface_Driver *platform_surface;
89 Fl_Copy_Surface_Driver(
int w,
int h) :
Fl_Widget_Surface(NULL), width(w), height(h) {}
90 virtual ~Fl_Copy_Surface_Driver() {}
99 static Fl_Copy_Surface_Driver *newCopySurfaceDriver(
int w,
int h);
Supports copying of graphical data to the clipboard.
Definition Fl_Copy_Surface.H:49
int printable_rect(int *w, int *h) FL_OVERRIDE
Computes the width and height of the drawable area of the drawing surface.
Definition Fl_Copy_Surface.cxx:55
void untranslate() FL_OVERRIDE
Undoes the effect of a previous translate() call.
Definition Fl_Copy_Surface.cxx:47
int h()
Returns the pixel height of the copy surface.
Definition Fl_Copy_Surface.cxx:53
Fl_Copy_Surface(int w, int h)
the constructor
Definition Fl_Copy_Surface.cxx:21
bool is_current() FL_OVERRIDE
Is this surface the current drawing surface?
Definition Fl_Copy_Surface.cxx:39
void origin(int *x, int *y) FL_OVERRIDE
Computes the coordinates of the current origin of graphics functions.
Definition Fl_Copy_Surface.cxx:31
int w()
Returns the pixel width of the copy surface.
Definition Fl_Copy_Surface.cxx:51
void set_current() FL_OVERRIDE
Make this surface the current drawing surface.
Definition Fl_Copy_Surface.cxx:35
void translate(int x, int y) FL_OVERRIDE
Translates the current graphics origin accounting for the current rotation.
Definition Fl_Copy_Surface.cxx:43
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46