Eneboo - Documentación para desarrolladores
|
The QSvgDevice class provides a paint device for SVG vector graphics.XML. Más...
#include <qsvgdevice_p.h>
Métodos públicos | |
QSvgDevice () | |
~QSvgDevice () | |
bool | play (QPainter *p) |
QString | toString () const |
bool | load (QIODevice *dev) |
bool | save (QIODevice *dev) |
bool | save (const QString &fileName) |
QRect | boundingRect () const |
void | setBoundingRect (const QRect &r) |
QSvgDevice () | |
~QSvgDevice () | |
bool | play (QPainter *p) |
QString | toString () const |
bool | load (QIODevice *dev) |
bool | save (QIODevice *dev) |
bool | save (const QString &fileName) |
QRect | boundingRect () const |
void | setBoundingRect (const QRect &r) |
Métodos protegidos | |
virtual bool | cmd (int, QPainter *, QPDevCmdParam *) |
virtual int | metric (int) const |
virtual bool | cmd (int, QPainter *, QPDevCmdParam *) |
virtual int | metric (int) const |
The QSvgDevice class provides a paint device for SVG vector graphics.
XML.
QSvgDevice::QSvgDevice | ( | ) |
Creates a QSvgDevice object.
QSvgDevice::~QSvgDevice | ( | ) |
Destroys the QSvgDevice object and frees the resources it used.
QSvgDevice::QSvgDevice | ( | ) |
QSvgDevice::~QSvgDevice | ( | ) |
QRect QSvgDevice::boundingRect | ( | ) | const [inline] |
Returns the bounding rectangle of the SVG.
QRect QSvgDevice::boundingRect | ( | ) | const |
bool QSvgDevice::cmd | ( | int | , |
QPainter * | , | ||
QPDevCmdParam * | |||
) | [protected, virtual] |
Internal virtual function that interprets drawing commands from the painter.
Implemented by subclasses that have no direct support for drawing graphics (external paint devices, for example QPicture).
Internal virtual function that interprets drawing commands from the painter.
Implemented by subclasses that have no direct support for drawing graphics (external paint devices, for example, QPicture).
Reimplementado de QPaintDevice.
virtual bool QSvgDevice::cmd | ( | int | , |
QPainter * | , | ||
QPDevCmdParam * | |||
) | [protected, virtual] |
Internal virtual function that interprets drawing commands from the painter.
Implemented by subclasses that have no direct support for drawing graphics (external paint devices, for example QPicture).
Internal virtual function that interprets drawing commands from the painter.
Implemented by subclasses that have no direct support for drawing graphics (external paint devices, for example, QPicture).
Reimplementado de QPaintDevice.
Loads and parses a SVG from dev into the device. Returns TRUE on success (i.e. loaded and parsed without error); otherwise returns FALSE.
Internal implementation of the virtual QPaintDevice::metric() function.
A QSvgDevice has the following hard coded values: dpi=72, numcolors=16777216 and depth=24. m is the metric to get.
Reimplementado de QPaintDevice.
Internal virtual function that returns paint device metrics.
Please use the QPaintDeviceMetrics class instead.
Reimplementado de QPaintDevice.
Renders (replays) the SVG on the painter and returns TRUE if successful (i.e. it is a valid SVG); otherwise returns FALSE.
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. dev is the device to use for saving.
void QSvgDevice::setBoundingRect | ( | const QRect & | r | ) |
void QSvgDevice::setBoundingRect | ( | const QRect & | r | ) |
Sets the bounding rectangle of the SVG to rectangle r.
QString QSvgDevice::toString | ( | ) | const |
QString QSvgDevice::toString | ( | ) | const |
Returns the SVG as a single string of XML.