mirror of
https://github.com/fltk/fltk.git
synced 2026-05-29 20:45:33 +08:00
Expand the doc of class Fl_Graphics_Driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12876 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -66,9 +66,12 @@ struct Fl_Fontdesc;
|
|||||||
Fl_Surface_Device::pop_current() / Fl_Surface_Device::set_current().
|
Fl_Surface_Device::pop_current() / Fl_Surface_Device::set_current().
|
||||||
|
|
||||||
\p The Fl_Graphics_Driver class is of interest if one wants to perform new kinds of drawing operations.
|
\p The Fl_Graphics_Driver class is of interest if one wants to perform new kinds of drawing operations.
|
||||||
An example would be to draw to a PDF file. This would involve creating a new Fl_Graphics_Driver derived
|
An example would be to draw to an SVG file. This would require to create a new class,
|
||||||
class. This new class should implement all virtual methods of the Fl_Graphics_Driver class
|
say SVG_Graphics_Driver, derived from class Fl_Graphics_Driver, and another new class,
|
||||||
to support all FLTK drawing functions.
|
say SVG_Surface, derived from class Fl_Surface_Device. The new SVG_Graphics_Driver class should
|
||||||
|
implement all virtual methods of the Fl_Graphics_Driver class to support all FLTK drawing functions
|
||||||
|
and have them draw into SVG files. Alternatively, class SVG_Graphics_Driver could implement only some
|
||||||
|
virtual methods, and only part of FLTK drawing functions would be usable when drawing to SVG files.
|
||||||
|
|
||||||
\p The Fl_Graphics_Driver class is essential for developers of the FLTK library.
|
\p The Fl_Graphics_Driver class is essential for developers of the FLTK library.
|
||||||
Each platform supported by FLTK requires to create a derived class of Fl_Graphics_Driver that
|
Each platform supported by FLTK requires to create a derived class of Fl_Graphics_Driver that
|
||||||
|
|||||||
Reference in New Issue
Block a user