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
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 (QSvgPaintStyleProperty *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)
 
QSvgPaintStylePropertystyle () const
 
void setPaintStyleId (const QString &Id)
 
QString paintStyleId () const
 
void setPaintStyleResolved (bool resolved)
 
bool isPaintStyleResolved () const
 
QPen stroke () const
 
- Public Member Functions inherited from QSvgStyleProperty
virtual ~QSvgStyleProperty ()
 
bool isDefault () const
 
- 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 , PATTERN ,
  TRANSFORM , ANIMATE_TRANSFORM , ANIMATE_COLOR , OPACITY ,
  COMP_OP
}
 

Detailed Description

Definition at line 389 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(), QSvgPaintStyleProperty::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(), 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:

◆ isPaintStyleResolved()

bool QSvgStrokeStyle::isPaintStyleResolved ( ) const
inline

Definition at line 486 of file qsvgstyle_p.h.

◆ paintStyleId()

QString QSvgStrokeStyle::paintStyleId ( ) const
inline

Definition at line 476 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 412 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 418 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 424 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 430 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 436 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 442 of file qsvgstyle_p.h.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ setPaintStyleId()

void QSvgStrokeStyle::setPaintStyleId ( const QString & Id)
inline

Definition at line 471 of file qsvgstyle_p.h.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ setPaintStyleResolved()

void QSvgStrokeStyle::setPaintStyleResolved ( bool resolved)
inline

Definition at line 481 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 397 of file qsvgstyle_p.h.

Referenced by parsePen().

+ Here is the caller graph for this function:

◆ setStyle()

void QSvgStrokeStyle::setStyle ( QSvgPaintStyleProperty * style)
inline

Definition at line 404 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 460 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 448 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 491 of file qsvgstyle_p.h.

◆ style()

QSvgPaintStyleProperty * QSvgStrokeStyle::style ( ) const
inline

Definition at line 466 of file qsvgstyle_p.h.

◆ type()

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

Implements QSvgStyleProperty.

Definition at line 463 of file qsvgstyle.cpp.

References QSvgStyleProperty::STROKE.

◆ width()

qreal QSvgStrokeStyle::width ( )
inline

Definition at line 455 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: