31    Q_PROPERTY( qreal aspectRatio READ aspectRatio )
 
   32    Q_PROPERTY( QRectF viewBox READ viewBox WRITE setViewBox )
 
   33    Q_PROPERTY( QRectF boundingRect READ boundingRect )
 
   34    Q_PROPERTY( QRectF controlPointRect READ controlPointRect )
 
   35    Q_PROPERTY( QSizeF defaultSize READ defaultSize )
 
   36    Q_PROPERTY( quint64 modificationId READ modificationId )
 
   38    using Inherited = QPaintDevice;
 
   41    enum RenderHint : quint8
 
   43        RenderPensUnscaled = 1 << 0
 
   46    typedef QFlags< RenderHint > RenderHints;
 
   48    enum CommandType : quint8
 
   52        Transformation = 1 << 2
 
   55    typedef QFlags< CommandType > CommandTypes;
 
   74    CommandTypes commandTypes() 
const;
 
   76    void render( QPainter* ) 
const;
 
   78        QTransform* initialTransform = 
nullptr ) 
const;
 
   80    void render( QPainter*, 
const QSizeF&,
 
   81        Qt::AspectRatioMode = Qt::IgnoreAspectRatio ) 
const;
 
   83    void render( QPainter*, 
const QPointF&,
 
   84        Qt::Alignment = Qt::AlignTop | Qt::AlignLeft ) 
const;
 
   86    void render( QPainter*, 
const QRectF&,
 
   87        Qt::AspectRatioMode = Qt::IgnoreAspectRatio ) 
const;
 
   90        Qt::AspectRatioMode = Qt::IgnoreAspectRatio ) 
const;
 
   92    QPixmap toPixmap( qreal devicePixelRatio = 0.0 ) 
const;
 
   94    QPixmap toPixmap( 
const QSize&,
 
   95        Qt::AspectRatioMode = Qt::IgnoreAspectRatio,
 
   96        qreal devicePixelRatio = 0.0 ) 
const;
 
   98    QImage toImage( qreal devicePixelRatio = 0.0 ) 
const;
 
  100    QImage toImage( 
const QSize&,
 
  101        Qt::AspectRatioMode = Qt::IgnoreAspectRatio,
 
  102        qreal devicePixelRatio = 0.0 ) 
const;
 
  104    QRectF scaledBoundingRect( qreal sx, qreal sy ) 
const;
 
  106    QRectF boundingRect() 
const;
 
  107    QRectF controlPointRect() 
const;
 
  109    const QVector< QskPainterCommand >& commands() 
const;
 
  110    void setCommands( 
const QVector< QskPainterCommand >& );
 
  112    QSizeF defaultSize() 
const;
 
  114    void setViewBox( 
const QRectF& );
 
  115    QRectF viewBox() 
const;
 
  117    qreal aspectRatio() 
const;
 
  119    qreal heightForWidth( qreal width ) 
const;
 
  120    qreal widthForHeight( qreal height ) 
const;
 
  122    void setRenderHint( RenderHint, 
bool on = 
true );
 
  123    bool testRenderHint( RenderHint ) 
const;
 
  125    RenderHints renderHints() 
const;
 
  127    QPaintEngine* paintEngine() 
const override;
 
  128    int metric( PaintDeviceMetric metric ) 
const override;
 
  131    static QskGraphic fromPixmap( 
const QPixmap& );
 
  132    static QskGraphic fromPixmapAsImage( 
const QPixmap& );
 
  135    quint64 modificationId() 
const;
 
  136    QskHashValue hash( QskHashValue seed ) 
const;
 
  139    virtual QSize sizeMetrics() 
const;
 
  141    virtual void drawPath( 
const QPainterPath& );
 
  143    virtual void drawPixmap( 
const QRectF&,
 
  144        const QPixmap&, 
const QRectF& );
 
  146    virtual void drawImage( 
const QRectF&,
 
  147        const QImage&, 
const QRectF&, Qt::ImageConversionFlags );
 
  149    virtual void updateState( 
const QPaintEngineState& );
 
  154    void updateBoundingRect( 
const QRectF& );
 
  155    void updateControlPointRect( 
const QRectF& );
 
  158    QSharedDataPointer< PrivateData > m_data;