25 #include <FL/Fl_Plugin.H> 29 class Fl_Graphics_Driver;
67 Fl_Graphics_Driver *pGraphicsDriver;
73 virtual void end_current() { surface_ = 0;}
75 Fl_Surface_Device(Fl_Graphics_Driver *graphics_driver) {pGraphicsDriver = graphics_driver; }
77 inline void driver(Fl_Graphics_Driver *graphics_driver) {pGraphicsDriver = graphics_driver;};
79 virtual void set_current(
void);
80 virtual bool is_current();
82 inline Fl_Graphics_Driver *
driver() {
return pGraphicsDriver; };
86 return surface_ ? surface_ : default_surface();
101 static Fl_Display_Device *display_device();
117 virtual const char *
klass() {
return "fltk:device"; }
119 virtual const char *name() = 0;
130 #endif // Fl_Device_H
virtual const char * klass()
Returns the class name.
Definition: Fl_Device.H:117
A drawing surface that's susceptible to receive graphical output.
Definition: Fl_Device.H:65
void driver(Fl_Graphics_Driver *graphics_driver)
Sets the graphics driver of this drawing surface.
Definition: Fl_Device.H:77
The Fl_RGB_Image class supports caching and drawing of full-color images with 1 to 4 channels of colo...
Definition: Fl_Image.H:287
This plugin socket allows the integration of new device drivers for special window or screen types...
Definition: Fl_Device.H:111
Fl_Surface_Device(Fl_Graphics_Driver *graphics_driver)
Constructor that sets the graphics driver to use for the created surface.
Definition: Fl_Device.H:75
static Fl_Surface_Device * surface()
The current drawing surface.
Definition: Fl_Device.H:85
Fl_Plugin allows link-time and run-time integration of binary modules.
Definition: Fl_Plugin.H:59
Fl_Device_Plugin(const char *pluginName)
The constructor.
Definition: Fl_Device.H:114
A display to which the computer can draw.
Definition: Fl_Device.H:98
Fl_Graphics_Driver * driver()
Returns the graphics driver of this drawing surface.
Definition: Fl_Device.H:82