FLTK
Fl_SVG_File_Surface.H
1 //
2 // Declaration of Fl_SVG_File_Surface in the Fast Light Tool Kit (FLTK).
3 //
4 // Copyright 2020 by Bill Spitzak and others.
5 //
6 // This library is free software. Distribution and use rights are outlined in
7 // the file "COPYING" which should have been included with this file. If this
8 // file is missing or damaged, see the license at:
9 //
10 // https://www.fltk.org/COPYING.php
11 //
12 // Please see the following page on how to report bugs and issues:
13 //
14 // https://www.fltk.org/bugs.php
15 //
16 
17 #ifndef Fl_SVG_File_Surface_H
18 #define Fl_SVG_File_Surface_H
19 
20 #include <FL/Fl_Widget_Surface.H>
21 #include <stdio.h>
22 
47 class FL_EXPORT Fl_SVG_File_Surface : public Fl_Widget_Surface {
48  int width_, height_;
49 public:
55  Fl_SVG_File_Surface(int width, int height, FILE *svg);
63  FILE *file();
64  virtual void origin(int x, int y);
65  virtual void translate(int x, int y);
66  virtual void untranslate();
67  virtual int printable_rect(int *w, int *h);
71  int close();
72 };
73 
74 #endif /* Fl_SVG_File_Surface_H */
A drawing surface producing a Scalable Vector Graphics (SVG) file.
Definition: Fl_SVG_File_Surface.H:47
virtual void untranslate()
Undoes the effect of a previous translate() call.
Definition: Fl_Widget_Surface.cxx:121
virtual int printable_rect(int *w, int *h)
Computes the width and height of the drawable area of the drawing surface.
Definition: Fl_Widget_Surface.cxx:190
A surface on which any FLTK widget can be drawn.
Definition: Fl_Widget_Surface.H:25
virtual void translate(int x, int y)
Translates the current graphics origin accounting for the current rotation.
Definition: Fl_Widget_Surface.cxx:114
virtual void origin(int x, int y)
Sets the position of the origin of graphics in the drawable part of the drawing surface.
Definition: Fl_Widget_Surface.cxx:145