QSvgDevice Class Reference
[XML module]
The QSvgDevice class provides a paint device for SVG vector graphics.
More...
#include <qsvgdevice_p.h>
Inherits QPaintDevice.
List of all member functions.
Public Members
bool
play ( QPainter * painter )
bool
load ( const QString & fileName )
bool
save ( const QString & fileName )
Protected Members
virtual int
metric ( int m ) const
Detailed Description
The QSvgDevice class provides a paint device for SVG vector graphics.
###
See also QPaintDevice and QPainter.
Member Function Documentation
QSvgDevice::QSvgDevice ()
Creates a QSvgDevice object.
QSvgDevice::~QSvgDevice ()
Destructor.
QRect QSvgDevice::boundingRect () const
###
Returns the bounding rectangle of the vector graphic.
bool QSvgDevice::load ( const QString & fileName )
Loads and parses fileName into the device. Returns TRUE on success,
FALSE if errors were encountered.
int QSvgDevice::metric ( int m ) const [virtual protected]
Internal implementation of the virtual QPaintDevice::metric() function.
Use the QPaintDeviceMetrics class instead.
A QSvgDevice has the following hard coded values:
dpi = 72, numcolors=16777216 and depth=24.
m is the metric to get.
Reimplemented from QPaintDevice.
bool QSvgDevice::play ( QPainter * painter )
Replays the graphic using painter and returns TRUE if successful, or
FALSE if the document format is not valid.
bool QSvgDevice::save ( const QString & fileName )
Saves the current document to fileName.
void QSvgDevice::setBoundingRect ( const QRect & r )
Sets the bounding rectangle of the vector graphic to r.
QString QSvgDevice::toString () const
Returns the XML as a single string.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit,
copyright © 1995-2001
Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks
| Qt version 3.0.0-beta2
|