Eneboo - Documentación para desarrolladores
Métodos públicos | Métodos protegidos
Referencia de la Clase QSvgDevice

The QSvgDevice class provides a paint device for SVG vector graphics.XML. Más...

#include <qsvgdevice_p.h>

Diagrama de herencias de QSvgDevice
QPaintDevice QPaintDevice

Lista de todos los miembros.

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

Descripción detallada

The QSvgDevice class provides a paint device for SVG vector graphics.

XML.


Documentación del constructor y destructor

QSvgDevice::QSvgDevice ( )

Creates a QSvgDevice object.

QSvgDevice::~QSvgDevice ( )

Destroys the QSvgDevice object and frees the resources it used.

QSvgDevice::QSvgDevice ( )
QSvgDevice::~QSvgDevice ( )

Documentación de las funciones miembro

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.

bool QSvgDevice::load ( QIODevice dev)
bool QSvgDevice::load ( QIODevice dev)

Loads and parses a SVG from dev into the device. Returns TRUE on success (i.e. loaded and parsed without error); otherwise returns FALSE.

int QSvgDevice::metric ( int  m) const [protected, virtual]

Internal implementation of the virtual QPaintDevice::metric() function.

Atención:
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.

Reimplementado de QPaintDevice.

virtual int QSvgDevice::metric ( int  ) const [protected, virtual]

Internal virtual function that returns paint device metrics.

Please use the QPaintDeviceMetrics class instead.

Reimplementado de QPaintDevice.

bool QSvgDevice::play ( QPainter p)
bool QSvgDevice::play ( QPainter painter)

Renders (replays) the SVG on the painter and returns TRUE if successful (i.e. it is a valid SVG); otherwise returns FALSE.

bool QSvgDevice::save ( QIODevice dev)
bool QSvgDevice::save ( const QString fileName)

Saves the SVG to fileName.

bool QSvgDevice::save ( const QString fileName)
bool QSvgDevice::save ( QIODevice dev)

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.


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'