25#include <FL/Fl_Plugin.H>
28class Fl_Graphics_Driver;
59 Fl_Graphics_Driver *pGraphicsDriver;
69 Fl_Surface_Device(Fl_Graphics_Driver *graphics_driver) {pGraphicsDriver = graphics_driver; }
71 inline void driver(Fl_Graphics_Driver *graphics_driver) {pGraphicsDriver = graphics_driver;}
73 virtual void set_current(
void);
74 virtual bool is_current();
76 inline Fl_Graphics_Driver *
driver() {
return pGraphicsDriver; }
82 return surface_ ? surface_ : default_surface();
96 Fl_Display_Device(Fl_Graphics_Driver *graphics_driver);
114 virtual const char *
klass() {
return "fltk:device"; }
116 virtual const char *
name() = 0;
static Fl_Device_Plugin * opengl_plugin()
Returns the OpenGL plugin.
Definition Fl_Device.cxx:160
virtual int print(Fl_Widget *w)=0
Prints a widget.
Fl_Device_Plugin(const char *pluginName)
The constructor.
Definition Fl_Device.H:111
virtual const char * klass()
Returns the class name.
Definition Fl_Device.H:114
virtual const char * name()=0
Returns the plugin name.
virtual Fl_RGB_Image * rectangle_capture(Fl_Widget *widget, int x, int y, int w, int h)=0
Captures a rectangle of a widget as an image.
static Fl_Display_Device * display_device()
Returns a pointer to the unique display device.
Definition Fl_Device.cxx:119
Directs all graphics requests to an Fl_Image.
Definition Fl_Image_Surface.H:65
Fl_Plugin(const char *klass, const char *name)
Create a plugin.
Definition Fl_Preferences.cxx:1956
The Fl_RGB_Image class supports caching and drawing of full-color images with 1 to 4 channels of colo...
Definition Fl_Image.H:339
A drawing surface that's susceptible to receive graphical output.
Definition Fl_Device.H:57
void driver(Fl_Graphics_Driver *graphics_driver)
Sets the graphics driver of this drawing surface.
Definition Fl_Device.H:71
virtual void end_current()
FLTK calls this each time a surface ceases to be the current drawing surface.
Definition Fl_Device.H:67
Fl_Graphics_Driver * driver()
Returns the graphics driver of this drawing surface.
Definition Fl_Device.H:76
Fl_Surface_Device(Fl_Graphics_Driver *graphics_driver)
Constructor that sets the graphics driver to use for the created surface.
Definition Fl_Device.H:69
static Fl_Surface_Device * surface()
The current drawing surface.
Definition Fl_Device.H:81