#include <Fl_Device.H>
Public Member Functions | |
const char * | type () |
An RTTI emulation of device classes. | |
Protected Attributes | |
const char * | type_ |
The device type. | |
Static Protected Attributes | |
static const char * | device_type = "Fl_Device" |
A string that identifies each subclass of Fl_Device. |
const char* Fl_Device::type | ( | ) | [inline] |
An RTTI emulation of device classes.
The type of an instance of an Fl_Device subclass can be checked with code such as:
if ( instance->type() == Fl_Printer::device_type ) { ... }
const char * Fl_Device::device_type = "Fl_Device" [static, protected] |
A string that identifies each subclass of Fl_Device.
Function type() applied to a device of this class returns this string.
Reimplemented in Fl_Graphics_Driver, Fl_Quartz_Graphics_Driver, Fl_GDI_Graphics_Driver, Fl_Xlib_Graphics_Driver, Fl_Surface_Device, Fl_Display_Device, Fl_Paged_Device, Fl_PostScript_Graphics_Driver, Fl_PostScript_File_Device, Fl_System_Printer, Fl_PostScript_Printer, and Fl_Printer.