Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShape::SharedData Class Reference

#include <KoShape_p.h>

+ Inheritance diagram for KoShape::SharedData:

Public Member Functions

 SharedData ()
 
 SharedData (const SharedData &rhs)
 
virtual ~SharedData ()
 

Public Attributes

QMap< QString, QString > additionalAttributes
 
QMap< QByteArray, QString > additionalStyleAttributes
 
QScopedPointer< KoClipMaskclipMask
 the current clip mask
 
QScopedPointer< KoClipPathclipPath
 the current clip path
 
QSharedPointer< KoShapeBackgroundfill
 Stands for the background color / fill etc.
 
int geometryProtected: 1
 
QString hyperLink
 
bool inheritBackground = false
 
bool inheritPaintOrder = true
 
bool inheritStroke = false
 
int keepAspect: 1
 
QTransform localMatrix
 the shapes local transformation matrix
 
QString name
 the shapes names
 
QVector< PaintOrderpaintOrder {Fill, Stroke, Markers}
 
int printable: 1
 
int protectContent: 1
 
int selectable: 1
 
QString shapeId
 
QSizeF size
 
QSharedPointer< KoShapeStrokeModelstroke
 points to a stroke, or 0 if there is no stroke
 
qreal transparency
 the shapes transparency
 
QScopedPointer< KoShapeUserDatauserData
 
int visible: 1
 
int zIndex: 16
 

Detailed Description

Definition at line 23 of file KoShape_p.h.

Constructor & Destructor Documentation

◆ SharedData() [1/2]

KoShape::SharedData::SharedData ( )
explicit

Definition at line 54 of file KoShape.cpp.

55 : QSharedData()
56 , size(50, 50)
57 , transparency(0.0)
58 , zIndex(0)
59 , visible(true)
60 , printable(true)
61 , geometryProtected(false)
62 , keepAspect(false)
63 , selectable(true)
64 , protectContent(false)
66 , inheritPaintOrder(true)
67{ }
qreal transparency
the shapes transparency
Definition KoShape_p.h:51
QVector< PaintOrder > paintOrder
Definition KoShape_p.h:62
static QVector< PaintOrder > defaultPaintOrder()
default paint order as per SVG specification
Definition KoShape.cpp:704

◆ ~SharedData()

KoShape::SharedData::~SharedData ( )
virtual

Definition at line 100 of file KoShape.cpp.

101{
102}

◆ SharedData() [2/2]

KoShape::SharedData::SharedData ( const SharedData & rhs)
explicit

Definition at line 69 of file KoShape.cpp.

70 : QSharedData()
71 , size(rhs.size)
72 , shapeId(rhs.shapeId)
73 , name(rhs.name)
74 , localMatrix(rhs.localMatrix)
75 , userData(rhs.userData ? rhs.userData->clone() : 0)
76 , stroke(rhs.stroke)
77 , fill(rhs.fill)
80 , clipPath(rhs.clipPath ? rhs.clipPath->clone() : 0)
81 , clipMask(rhs.clipMask ? rhs.clipMask->clone() : 0)
85 , hyperLink(rhs.hyperLink)
86
87 , zIndex(rhs.zIndex)
88 , visible(rhs.visible)
89 , printable(rhs.visible)
94
97{
98}
QMap< QByteArray, QString > additionalStyleAttributes
Definition KoShape_p.h:50
QString name
the shapes names
Definition KoShape_p.h:37
QScopedPointer< KoClipMask > clipMask
the current clip mask
Definition KoShape_p.h:48
QScopedPointer< KoShapeUserData > userData
Definition KoShape_p.h:41
QMap< QString, QString > additionalAttributes
Definition KoShape_p.h:49
QSharedPointer< KoShapeBackground > fill
Stands for the background color / fill etc.
Definition KoShape_p.h:43
QTransform localMatrix
the shapes local transformation matrix
Definition KoShape_p.h:39
QScopedPointer< KoClipPath > clipPath
the current clip path
Definition KoShape_p.h:47
QSharedPointer< KoShapeStrokeModel > stroke
points to a stroke, or 0 if there is no stroke
Definition KoShape_p.h:42

Member Data Documentation

◆ additionalAttributes

QMap<QString, QString> KoShape::SharedData::additionalAttributes

Definition at line 49 of file KoShape_p.h.

◆ additionalStyleAttributes

QMap<QByteArray, QString> KoShape::SharedData::additionalStyleAttributes

Definition at line 50 of file KoShape_p.h.

◆ clipMask

QScopedPointer<KoClipMask> KoShape::SharedData::clipMask

the current clip mask

Definition at line 48 of file KoShape_p.h.

◆ clipPath

QScopedPointer<KoClipPath> KoShape::SharedData::clipPath

the current clip path

Definition at line 47 of file KoShape_p.h.

◆ fill

QSharedPointer<KoShapeBackground> KoShape::SharedData::fill

Stands for the background color / fill etc.

Definition at line 43 of file KoShape_p.h.

◆ geometryProtected

int KoShape::SharedData::geometryProtected

Definition at line 57 of file KoShape_p.h.

◆ hyperLink

QString KoShape::SharedData::hyperLink

Definition at line 52 of file KoShape_p.h.

◆ inheritBackground

bool KoShape::SharedData::inheritBackground = false

Definition at line 44 of file KoShape_p.h.

◆ inheritPaintOrder

bool KoShape::SharedData::inheritPaintOrder = true

Definition at line 63 of file KoShape_p.h.

◆ inheritStroke

bool KoShape::SharedData::inheritStroke = false

Definition at line 45 of file KoShape_p.h.

◆ keepAspect

int KoShape::SharedData::keepAspect

Definition at line 58 of file KoShape_p.h.

◆ localMatrix

QTransform KoShape::SharedData::localMatrix

the shapes local transformation matrix

Definition at line 39 of file KoShape_p.h.

◆ name

QString KoShape::SharedData::name

the shapes names

Definition at line 37 of file KoShape_p.h.

◆ paintOrder

QVector<PaintOrder> KoShape::SharedData::paintOrder {Fill, Stroke, Markers}

Definition at line 62 of file KoShape_p.h.

@ Stroke
Definition KoShape.h:117
@ Markers
Definition KoShape.h:118

◆ printable

int KoShape::SharedData::printable

Definition at line 56 of file KoShape_p.h.

◆ protectContent

int KoShape::SharedData::protectContent

Definition at line 60 of file KoShape_p.h.

◆ selectable

int KoShape::SharedData::selectable

Definition at line 59 of file KoShape_p.h.

◆ shapeId

QString KoShape::SharedData::shapeId

Definition at line 36 of file KoShape_p.h.

◆ size

QSizeF KoShape::SharedData::size
mutable

Definition at line 35 of file KoShape_p.h.

◆ stroke

QSharedPointer<KoShapeStrokeModel> KoShape::SharedData::stroke

points to a stroke, or 0 if there is no stroke

Definition at line 42 of file KoShape_p.h.

◆ transparency

qreal KoShape::SharedData::transparency

the shapes transparency

Definition at line 51 of file KoShape_p.h.

◆ userData

QScopedPointer<KoShapeUserData> KoShape::SharedData::userData

Definition at line 41 of file KoShape_p.h.

◆ visible

int KoShape::SharedData::visible

Definition at line 55 of file KoShape_p.h.

◆ zIndex

int KoShape::SharedData::zIndex

Definition at line 54 of file KoShape_p.h.


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