Qt:Документация 4.3.2/qsvggenerator
Материал из Wiki.crossplatform.ru
Внимание: Актуальная версия перевода документации находится здесь |
__NOTOC__
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции |
[править] QSvgGenerator Class Reference
[модуль QtSvg ]
The QSvgGenerator class provides a paint device that is used to create SVG drawings. More...
#include <QSvgGenerator>
Inherits QPaintDevice.
This class was introduced in Qt 4.3.
[править] Открытые функции
- QSvgGenerator ()
- ~QSvgGenerator ()
- QString fileName () const
- QIODevice * outputDevice () const
- int resolution () const
- void setFileName ( const QString & fileName )
- void setOutputDevice ( QIODevice * outputDevice )
- void setResolution ( int resolution )
- void setSize ( const QSize & size )
- QSize size () const
- 12 открытых функций унаследованных от QPaintDevice
[править] Защищенные функции
- virtual QPaintEngine * paintEngine () const
- 1 защищенная функция унаследованна от QPaintDevice
[править] Подробное описание
The QSvgGenerator class provides a paint device that is used to create SVG drawings.
See also QSvgRenderer and QSvgWidget.
[править] Описание функций-членов
[править] QSvgGenerator::QSvgGenerator ()
Constructs a new generator.
[править] QSvgGenerator::~QSvgGenerator ()
Destroys the generator.
[править] QString QSvgGenerator::fileName () const
Returns the name of the file to be created by the generator.
See also setFileName().
[править] QIODevice * QSvgGenerator::outputDevice () const
Returns the target output device for generated SVGs.
See also setOutputDevice().
[править] QPaintEngine * QSvgGenerator::paintEngine () const [virtual protected]
Returns the paint engine used to render graphics to be converted to SVG format information.
Reimplemented from QPaintDevice.
[править] int QSvgGenerator::resolution () const
Returns the resolution of the generated output in dots per inch.
See also setResolution().
[править] void QSvgGenerator::setFileName ( const QString & fileName )
Sets the target filename for generated SVGs to fileName.
See also fileName() and setOutputDevice().
[править] void QSvgGenerator::setOutputDevice ( QIODevice * outputDevice )
Sets the output device for generated SVGs to outputDevice.
If both output device and file name are specified, the output device will have precedence.
See also outputDevice().
[править] void QSvgGenerator::setResolution ( int resolution )
Sets the resolution of the generated output to resolution. The argument is specified in dots per inch.
The resolution is used to calculate the physical size of an SVG drawing.
See also resolution().
[править] void QSvgGenerator::setSize ( const QSize & size )
Sets the size of the generated SVG to size.
It is not possible to set the size while the SVG is being generated.
See also size().
[править] QSize QSvgGenerator::size () const
Returns the size of the generated SVG.
See also setSize().
Copyright © 2007 Trolltech | Trademarks | Qt 4.3.2
|