FLTK 1.3.4
Fl_Display_Device Class Reference

A display to which the computer can draw. More...

#include <Fl_Device.H>

Inheritance diagram for Fl_Display_Device:
Fl_Surface_Device Fl_Device

Public Member Functions

const char * class_name ()
 Returns the name of the class of this object. More...
 
 Fl_Display_Device (Fl_Graphics_Driver *graphics_driver)
 A constructor that sets the graphics driver used by the display.
 
- Public Member Functions inherited from Fl_Surface_Device
void driver (Fl_Graphics_Driver *graphics_driver)
 Sets the graphics driver of this drawing surface. More...
 
Fl_Graphics_Driverdriver ()
 Returns the graphics driver of this drawing surface. More...
 
virtual void set_current (void)
 Make this surface the current drawing surface. More...
 
virtual ~Fl_Surface_Device ()
 The destructor. More...
 
- Public Member Functions inherited from Fl_Device
virtual ~Fl_Device ()
 Virtual destructor. More...
 

Static Public Member Functions

static Fl_Display_Devicedisplay_device ()
 Returns the platform display device. More...
 
- Static Public Member Functions inherited from Fl_Surface_Device
static Fl_Surface_Devicesurface ()
 The current drawing surface. More...
 

Static Public Attributes

static const char * class_id = "Fl_Display_Device"
 
- Static Public Attributes inherited from Fl_Surface_Device
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...
 

Additional Inherited Members

- Protected Member Functions inherited from Fl_Surface_Device
 Fl_Surface_Device (Fl_Graphics_Driver *graphics_driver)
 Constructor that sets the graphics driver to use for the created surface. More...
 

Detailed Description

A display to which the computer can draw.

When the program begins running, an Fl_Display_Device instance has been created and made the current drawing surface. There is no need to create any other object of this class.

Member Function Documentation

const char* Fl_Display_Device::class_name ( )
inlinevirtual

Returns the name of the class of this object.

Use of the class_name() function is discouraged because it will be removed from future FLTK versions.

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_Surface_Device.

Fl_Display_Device * Fl_Display_Device::display_device ( )
static

Returns the platform display device.


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