summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-04-27 16:50:27 +0000
committerManolo Gouy <Manolo>2018-04-27 16:50:27 +0000
commit929efec8555ef27b5bbe8c6f8b0948eade02792a (patch)
treeafd2ff533582ec03c74fda5d50134eda3be8b752
parentcd3d1f9dd512441fa3ef79daf93d6a8a6876eee7 (diff)
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
-rw-r--r--FL/Fl_Graphics_Driver.H9
1 files changed, 6 insertions, 3 deletions
diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H
index 0d181f68e..3184dd5d2 100644
--- a/FL/Fl_Graphics_Driver.H
+++ b/FL/Fl_Graphics_Driver.H
@@ -66,9 +66,12 @@ struct Fl_Fontdesc;
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.
- An example would be to draw to a PDF file. This would involve creating a new Fl_Graphics_Driver derived
- class. This new class should implement all virtual methods of the Fl_Graphics_Driver class
- to support all FLTK drawing functions.
+ An example would be to draw to an SVG file. This would require to create a new class,
+ say SVG_Graphics_Driver, derived from class Fl_Graphics_Driver, and another new class,
+ 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.
Each platform supported by FLTK requires to create a derived class of Fl_Graphics_Driver that