NTK 1.3.0
Fl_Surface_Device Class Reference

A surface that's susceptible to receive graphical output. More...

#include <Fl_Device.H>

Inheritance diagram for Fl_Surface_Device:
Fl_Device Fl_Display_Device Fl_Paged_Device Fl_PostScript_File_Device Fl_Printer Fl_System_Printer Fl_PostScript_Printer

Public Member Functions

const char * class_name ()
 Returns the name of the class of this object. More...
 
Fl_Graphics_Driverdriver ()
 Returns the graphics driver of this drawing surface.
 
void driver (Fl_Graphics_Driver *graphics_driver)
 Sets the graphics driver of this drawing surface.
 
virtual void set_current (void)
 Use this drawing surface for future graphics requests. More...
 
virtual ~Fl_Surface_Device ()
 The destructor.
 
- Public Member Functions inherited from Fl_Device
virtual const char * class_name ()
 Returns the name of the class of this object. More...
 
virtual ~Fl_Device ()
 Virtual destructor. More...
 

Static Public Member Functions

static Fl_Surface_Devicesurface ()
 the surface that currently receives graphics output
 

Static Public Attributes

static Fl_Surface_Device_surface
 
static const char * class_id = "Fl_Surface_Device"
 
- Static Public Attributes inherited from Fl_Device
static const char * class_id = "Fl_Device"
 A string that identifies each subclass of Fl_Device. More...
 

Protected Member Functions

 Fl_Surface_Device (Fl_Graphics_Driver *graphics_driver)
 Constructor that sets the graphics driver to use for the created surface.
 

Detailed Description

A surface that's susceptible to receive graphical output.

Member Function Documentation

◆ class_name()

const char * Fl_Surface_Device::class_name ( )
inlinevirtual

Returns the name of the class of this object.

The class of an instance of an Fl_Device subclass can be checked with code such as:

if ( instance->class_name() == Fl_Printer::class_id ) { ... }

Reimplemented from Fl_Device.

Reimplemented in Fl_Display_Device, Fl_Paged_Device, Fl_PostScript_File_Device, Fl_System_Printer, Fl_PostScript_Printer, and Fl_Printer.

◆ set_current()

void Fl_Surface_Device::set_current ( void  )
virtual

Use this drawing surface for future graphics requests.

Reimplemented in Fl_Printer.


The documentation for this class was generated from the following files: