Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QSvgStrokeStyle Class Reference

#include <qsvgstyle_p.h>

+ Inheritance diagram for QSvgStrokeStyle:
+ Collaboration diagram for QSvgStrokeStyle:

Public Member Functions

 QSvgStrokeStyle ()
 
void apply (QPainter *p, const QSvgNode *node, QSvgExtraStates &states) override
 
void revert (QPainter *p, QSvgExtraStates &states) override
 
Type type () const override
 
void setStroke (QBrush brush)
 
void setStyle (QSvgFillStyleProperty *style)
 
void setDashArray (const QList< qreal > &dashes)
 
void setDashArrayNone ()
 
void setDashOffset (qreal offset)
 
void setLineCap (Qt::PenCapStyle cap)
 
void setLineJoin (Qt::PenJoinStyle join)
 
void setMiterLimit (qreal limit)
 
void setOpacity (qreal opacity)
 
void setWidth (qreal width)
 
qreal width ()
 
void setVectorEffect (bool nonScalingStroke)
 
QSvgFillStylePropertystyle () const
 
void setGradientId (const QString &Id)
 
QString gradientId () const
 
void setGradientResolved (bool resolved)
 
bool isGradientResolved () const
 
QPen stroke () const
 
- Public Member Functions inherited from QSvgStyleProperty
virtual ~QSvgStyleProperty ()
 
virtual void apply (QPainter *p, const QSvgNode *node, QSvgExtraStates &states)=0
 
virtual void revert (QPainter *p, QSvgExtraStates &states)=0
 
virtual Type type () const =0
 
- Public Member Functions inherited from QSvgRefCounted
 QSvgRefCounted ()
 
virtual ~QSvgRefCounted ()
 
void ref ()
 
void deref ()
 

Additional Inherited Members

- Public Types inherited from QSvgStyleProperty
enum  Type {
  QUALITY , FILL , VIEWPORT_FILL , FONT ,
  STROKE , SOLID_COLOR , GRADIENT , TRANSFORM ,
  ANIMATE_TRANSFORM , ANIMATE_COLOR , OPACITY , COMP_OP
}
 

Detailed Description

Definition at line 380 of file qsvgstyle_p.h.

Constructor & Destructor Documentation

◆ QSvgStrokeStyle()

QSvgStrokeStyle::QSvgStrokeStyle ( )

Definition at line 246 of file qsvgstyle.cpp.

Member Function Documentation

◆ apply()

void QSvgStrokeStyle::apply ( QPainter p,
const QSvgNode node,
QSvgExtraStates states 
)
overridevirtual

Implements QSvgStyleProperty.

Definition at line 267 of file qsvgstyle.cpp.

References QPen::brush(), QSvgFillStyleProperty::brush(), QPen::capStyle(), QPen::dashPattern(), i, QPen::joinStyle(), QPen::miterLimit(), QPen::setBrush(), QPen::setCapStyle(), QPen::setCosmetic(), QPen::setDashOffset(), QPen::setDashPattern(), QPen::setJoinStyle(), QPen::setMiterLimit(), QPen::setStyle(), QPen::setWidthF(), QList< T >::size(), Qt::SolidLine, QPen::style(), width(), and QPen::widthF().

Referenced by QSvgStyle::apply().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gradientId()

QString QSvgStrokeStyle::gradientId ( ) const
inline

Definition at line 467 of file qsvgstyle_p.h.

◆ isGradientResolved()

bool QSvgStrokeStyle::isGradientResolved ( ) const
inline

Definition at line 477 of file qsvgstyle_p.h.

◆ revert()

void QSvgStrokeStyle::revert ( QPainter p,
QSvgExtraStates states 
)
overridevirtual

Implements QSvgStyleProperty.

Definition at line 353 of file qsvgstyle.cpp.

Referenced by QSvgStyle::revert().

+ Here is the caller graph for this function:

◆ setDashArray()

void QSvgStrokeStyle::setDashArray ( const QList< qreal > &  dashes)

Definition at line 361 of file qsvgstyle.cpp.

References d, i, QPen::setDashPattern(), and QPen::widthF().

Referenced by parsePen().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setDashArrayNone()

void QSvgStrokeStyle::setDashArrayNone ( )
inline

Definition at line 403 of file qsvgstyle_p.h.

References Qt::SolidLine.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ setDashOffset()

void QSvgStrokeStyle::setDashOffset ( qreal  offset)
inline

Definition at line 409 of file qsvgstyle_p.h.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ setGradientId()

void QSvgStrokeStyle::setGradientId ( const QString Id)
inline

Definition at line 462 of file qsvgstyle_p.h.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ setGradientResolved()

void QSvgStrokeStyle::setGradientResolved ( bool  resolved)
inline

Definition at line 472 of file qsvgstyle_p.h.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ setLineCap()

void QSvgStrokeStyle::setLineCap ( Qt::PenCapStyle  cap)
inline

Definition at line 415 of file qsvgstyle_p.h.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ setLineJoin()

void QSvgStrokeStyle::setLineJoin ( Qt::PenJoinStyle  join)
inline

Definition at line 421 of file qsvgstyle_p.h.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ setMiterLimit()

void QSvgStrokeStyle::setMiterLimit ( qreal  limit)
inline

Definition at line 427 of file qsvgstyle_p.h.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ setOpacity()

void QSvgStrokeStyle::setOpacity ( qreal  opacity)
inline

Definition at line 433 of file qsvgstyle_p.h.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ setStroke()

void QSvgStrokeStyle::setStroke ( QBrush  brush)
inline

Definition at line 388 of file qsvgstyle_p.h.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ setStyle()

void QSvgStrokeStyle::setStyle ( QSvgFillStyleProperty style)
inline

Definition at line 395 of file qsvgstyle_p.h.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ setVectorEffect()

void QSvgStrokeStyle::setVectorEffect ( bool  nonScalingStroke)
inline

Definition at line 451 of file qsvgstyle_p.h.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ setWidth()

void QSvgStrokeStyle::setWidth ( qreal  width)
inline

Definition at line 439 of file qsvgstyle_p.h.

References Q_ASSERT.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ stroke()

QPen QSvgStrokeStyle::stroke ( ) const
inline

Definition at line 482 of file qsvgstyle_p.h.

◆ style()

QSvgFillStyleProperty * QSvgStrokeStyle::style ( ) const
inline

Definition at line 457 of file qsvgstyle_p.h.

◆ type()

QSvgStyleProperty::Type QSvgStrokeStyle::type ( ) const
overridevirtual

Implements QSvgStyleProperty.

Definition at line 449 of file qsvgstyle.cpp.

References QSvgStyleProperty::STROKE.

◆ width()

qreal QSvgStrokeStyle::width ( )
inline

Definition at line 446 of file qsvgstyle_p.h.

Referenced by apply().

+ Here is the caller graph for this function:

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