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);
61
~
Fl_SVG_File_Surface
();
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 */
Fl_SVG_File_Surface
A drawing surface producing a Scalable Vector Graphics (SVG) file.
Definition:
Fl_SVG_File_Surface.H:47
Fl_Widget_Surface::untranslate
virtual void untranslate()
Undoes the effect of a previous translate() call.
Definition:
Fl_Widget_Surface.cxx:121
Fl_Widget_Surface::printable_rect
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
Fl_Widget_Surface
A surface on which any FLTK widget can be drawn.
Definition:
Fl_Widget_Surface.H:25
Fl_Widget_Surface::translate
virtual void translate(int x, int y)
Translates the current graphics origin accounting for the current rotation.
Definition:
Fl_Widget_Surface.cxx:114
Fl_Widget_Surface::origin
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
© 1998-2020 by Bill Spitzak and others.