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.
 
KoFilterEffectStackfilterEffectStack
 stack of filter effects applied to the shape
 
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 runThrough: 16
 
int selectable: 1
 
KoShapeShadowshadow
 the current shape shadow
 
QString shapeId
 
QSizeF size
 
QSharedPointer< KoShapeStrokeModelstroke
 points to a stroke, or 0 if there is no stroke
 
KoShape::TextRunAroundContour textRunAroundContour
 
qreal textRunAroundDistanceBottom
 
qreal textRunAroundDistanceLeft
 
qreal textRunAroundDistanceRight
 
qreal textRunAroundDistanceTop
 
KoShape::TextRunAroundSide textRunAroundSide
 
qreal textRunAroundThreshold
 
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 57 of file KoShape.cpp.

58 : QSharedData()
59 , size(50, 50)
60 , shadow(0)
62 , transparency(0.0)
63 , zIndex(0)
64 , runThrough(0)
65 , visible(true)
66 , printable(true)
67 , geometryProtected(false)
68 , keepAspect(false)
69 , selectable(true)
70 , protectContent(false)
79 , inheritPaintOrder(true)
80{ }
KoShapeShadow * shadow
the current shape shadow
Definition KoShape_p.h:46
KoFilterEffectStack * filterEffectStack
stack of filter effects applied to the shape
Definition KoShape_p.h:52
qreal textRunAroundDistanceTop
Definition KoShape_p.h:67
qreal transparency
the shapes transparency
Definition KoShape_p.h:53
qreal textRunAroundThreshold
Definition KoShape_p.h:70
KoShape::TextRunAroundContour textRunAroundContour
Definition KoShape_p.h:71
QVector< PaintOrder > paintOrder
Definition KoShape_p.h:73
qreal textRunAroundDistanceBottom
Definition KoShape_p.h:69
KoShape::TextRunAroundSide textRunAroundSide
Definition KoShape_p.h:65
qreal textRunAroundDistanceRight
Definition KoShape_p.h:68
qreal textRunAroundDistanceLeft
Definition KoShape_p.h:66
static QVector< PaintOrder > defaultPaintOrder()
default paint order as per SVG specification
Definition KoShape.cpp:784
@ ContourFull
Run other text around a bounding rect of the outline.
Definition KoShape.h:133
@ BiggestRunAroundSide
Run other text around the side that has the most space.
Definition KoShape.h:121

◆ ~SharedData()

KoShape::SharedData::~SharedData ( )
virtual

◆ SharedData() [2/2]

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

Definition at line 82 of file KoShape.cpp.

83 : QSharedData()
84 , size(rhs.size)
85 , shapeId(rhs.shapeId)
86 , name(rhs.name)
87 , localMatrix(rhs.localMatrix)
88 , userData(rhs.userData ? rhs.userData->clone() : 0)
89 , stroke(rhs.stroke)
90 , fill(rhs.fill)
93 , shadow(0) // WARNING: not implemented in Krita
94 , clipPath(rhs.clipPath ? rhs.clipPath->clone() : 0)
95 , clipMask(rhs.clipMask ? rhs.clipMask->clone() : 0)
98 , filterEffectStack(0) // WARNING: not implemented in Krita
100 , hyperLink(rhs.hyperLink)
101
102 , zIndex(rhs.zIndex)
104 , visible(rhs.visible)
105 , printable(rhs.visible)
110
118
121{
122}
QMap< QByteArray, QString > additionalStyleAttributes
Definition KoShape_p.h:51
QString name
the shapes names
Definition KoShape_p.h:37
QScopedPointer< KoClipMask > clipMask
the current clip mask
Definition KoShape_p.h:49
QScopedPointer< KoShapeUserData > userData
Definition KoShape_p.h:41
QMap< QString, QString > additionalAttributes
Definition KoShape_p.h:50
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:48
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 50 of file KoShape_p.h.

◆ additionalStyleAttributes

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

Definition at line 51 of file KoShape_p.h.

◆ clipMask

QScopedPointer<KoClipMask> KoShape::SharedData::clipMask

the current clip mask

Definition at line 49 of file KoShape_p.h.

◆ clipPath

QScopedPointer<KoClipPath> KoShape::SharedData::clipPath

the current clip path

Definition at line 48 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.

◆ filterEffectStack

KoFilterEffectStack* KoShape::SharedData::filterEffectStack

stack of filter effects applied to the shape

Definition at line 52 of file KoShape_p.h.

◆ geometryProtected

int KoShape::SharedData::geometryProtected

Definition at line 60 of file KoShape_p.h.

◆ hyperLink

QString KoShape::SharedData::hyperLink

Definition at line 54 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 74 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 61 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 73 of file KoShape_p.h.

@ Stroke
Definition KoShape.h:147
@ Markers
Definition KoShape.h:148

◆ printable

int KoShape::SharedData::printable

Definition at line 59 of file KoShape_p.h.

◆ protectContent

int KoShape::SharedData::protectContent

Definition at line 63 of file KoShape_p.h.

◆ runThrough

int KoShape::SharedData::runThrough

Definition at line 57 of file KoShape_p.h.

◆ selectable

int KoShape::SharedData::selectable

Definition at line 62 of file KoShape_p.h.

◆ shadow

KoShapeShadow* KoShape::SharedData::shadow

the current shape shadow

Definition at line 46 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.

◆ textRunAroundContour

KoShape::TextRunAroundContour KoShape::SharedData::textRunAroundContour

Definition at line 71 of file KoShape_p.h.

◆ textRunAroundDistanceBottom

qreal KoShape::SharedData::textRunAroundDistanceBottom

Definition at line 69 of file KoShape_p.h.

◆ textRunAroundDistanceLeft

qreal KoShape::SharedData::textRunAroundDistanceLeft

Definition at line 66 of file KoShape_p.h.

◆ textRunAroundDistanceRight

qreal KoShape::SharedData::textRunAroundDistanceRight

Definition at line 68 of file KoShape_p.h.

◆ textRunAroundDistanceTop

qreal KoShape::SharedData::textRunAroundDistanceTop

Definition at line 67 of file KoShape_p.h.

◆ textRunAroundSide

KoShape::TextRunAroundSide KoShape::SharedData::textRunAroundSide

Definition at line 65 of file KoShape_p.h.

◆ textRunAroundThreshold

qreal KoShape::SharedData::textRunAroundThreshold

Definition at line 70 of file KoShape_p.h.

◆ transparency

qreal KoShape::SharedData::transparency

the shapes transparency

Definition at line 53 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 58 of file KoShape_p.h.

◆ zIndex

int KoShape::SharedData::zIndex

Definition at line 56 of file KoShape_p.h.


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