Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSvgStyleResolver Class Reference
+ Collaboration diagram for QSvgStyleResolver:

Public Member Functions

 QSvgStyleResolver ()
 
 ~QSvgStyleResolver ()
 
QPainterpainter ()
 
QSvgExtraStatesstates ()
 
QColor currentFillColor () const
 
qreal currentFillOpacity () const
 
const QGradientcurrentFillGradient () const
 
QColor currentStrokeColor () const
 
float currentStrokeWidth () const
 
QPen currentStroke () const
 

Static Public Member Functions

static QGradient applyOpacityToGradient (const QGradient &gradient, float opacity)
 

Protected Attributes

QPainter m_dummyPainter
 
QImage m_dummyImage
 
QSvgExtraStates m_svgState
 

Detailed Description

Definition at line 37 of file qsvgvisitorimpl.cpp.

Constructor & Destructor Documentation

◆ QSvgStyleResolver()

QSvgStyleResolver::QSvgStyleResolver ( )
inline

Definition at line 40 of file qsvgvisitorimpl.cpp.

References Qt::black, Qt::FlatCap, QImage::Format_RGB32, Qt::NoBrush, QPen::setMiterLimit(), Qt::SolidLine, and Qt::SvgMiterJoin.

+ Here is the call graph for this function:

◆ ~QSvgStyleResolver()

QSvgStyleResolver::~QSvgStyleResolver ( )
inline

Definition at line 50 of file qsvgvisitorimpl.cpp.

Member Function Documentation

◆ applyOpacityToGradient()

static QGradient QSvgStyleResolver::applyOpacityToGradient ( const QGradient & gradient,
float opacity )
inlinestatic

Definition at line 98 of file qsvgvisitorimpl.cpp.

References QList< T >::append(), QGradient::setStops(), and QGradient::stops().

+ Here is the call graph for this function:

◆ currentFillColor()

QColor QSvgStyleResolver::currentFillColor ( ) const
inline

Definition at line 58 of file qsvgvisitorimpl.cpp.

References Qt::NoBrush, QColor::setAlphaF(), and QColorConstants::Transparent.

+ Here is the call graph for this function:

◆ currentFillGradient()

const QGradient * QSvgStyleResolver::currentFillGradient ( ) const
inline

◆ currentFillOpacity()

qreal QSvgStyleResolver::currentFillOpacity ( ) const
inline

Definition at line 72 of file qsvgvisitorimpl.cpp.

◆ currentStroke()

QPen QSvgStyleResolver::currentStroke ( ) const
inline

Definition at line 118 of file qsvgvisitorimpl.cpp.

◆ currentStrokeColor()

QColor QSvgStyleResolver::currentStrokeColor ( ) const
inline

Definition at line 84 of file qsvgvisitorimpl.cpp.

References Qt::NoBrush, QColor::setAlphaF(), and QColorConstants::Transparent.

+ Here is the call graph for this function:

◆ currentStrokeWidth()

float QSvgStyleResolver::currentStrokeWidth ( ) const
inline

Definition at line 112 of file qsvgvisitorimpl.cpp.

◆ painter()

QPainter & QSvgStyleResolver::painter ( )
inline

Definition at line 55 of file qsvgvisitorimpl.cpp.

◆ states()

QSvgExtraStates & QSvgStyleResolver::states ( )
inline

Definition at line 56 of file qsvgvisitorimpl.cpp.

Member Data Documentation

◆ m_dummyImage

QImage QSvgStyleResolver::m_dummyImage
protected

Definition at line 125 of file qsvgvisitorimpl.cpp.

◆ m_dummyPainter

QPainter QSvgStyleResolver::m_dummyPainter
protected

Definition at line 124 of file qsvgvisitorimpl.cpp.

◆ m_svgState

QSvgExtraStates QSvgStyleResolver::m_svgState
protected

Definition at line 126 of file qsvgvisitorimpl.cpp.


The documentation for this class was generated from the following file: