|
Krita Source Code Documentation
|
#include <SvgGraphicContext.h>
Public Types | |
| enum | StyleType { None , Solid , Complex , Inherit } |
Public Member Functions | |
| SvgGraphicsContext () | |
| SvgGraphicsContext (const SvgGraphicsContext &gc) | |
| void | workaroundClearInheritedFillProperties () |
Public Attributes | |
| bool | autoFillMarkers {false} |
| QString | clipMaskId |
| the current clip mask id | |
| QString | clipPathId |
| the current clip path id | |
| Qt::FillRule | clipRule {Qt::WindingFill} |
| the current clip rule | |
| QRectF | currentBoundingBox |
| the current bound box used for bounding box units | |
| QColor | currentColor {Qt::black} |
| the current color | |
| bool | display {true} |
| controls display of shape | |
| QColor | fillColor {QColor(Qt::black)} |
| the current fill color. Default is black fill as per svg spec | |
| QString | fillId |
| the current fill id (used for gradient/pattern fills) | |
| Qt::FillRule | fillRule {Qt::WindingFill} |
| the current fill rule | |
| StyleType | fillType {Solid} |
| the current fill type | |
| QString | filterId |
| the current filter id | |
| bool | forcePercentage {false} |
| force parsing coordinates/length as percentages of currentBoundbox | |
| bool | isResolutionFrame {false} |
| QString | markerEndId |
| QString | markerMidId |
| QString | markerStartId |
| QTransform | matrix |
| the current transformation matrix | |
| qreal | opacity {1.0} |
| the shapes opacity | |
| QString | paintOrder |
| String list indicating paint order;. | |
| qreal | pixelsPerInch {72.0} |
| controls the resolution of the image raster | |
| bool | preserveWhitespace {false} |
| preserve whitespace in element text | |
| QString | shapeInsideValue |
| String of value shape-inside, will be parsed later. | |
| QString | shapeSubtractValue |
| String of value shape-subtract, will be parsed later. | |
| KoShapeStrokeSP | stroke |
| the current stroke | |
| QString | strokeId |
| the current stroke id (used for gradient strokes) | |
| StyleType | strokeType {None} |
| the current stroke type | |
| KoSvgTextProperties | textProperties |
| Stores textProperties. | |
| QTransform | viewboxTransform |
| view box transformation | |
| bool | visible {true} |
| controls visibility of the shape (inherited) | |
| QString | xmlBaseDir |
| the current base directory (used for loading external content) | |
Private Member Functions | |
| SvgGraphicsContext & | operator= (const SvgGraphicsContext &gc)=default |
| used by copy constructor, shouldn't be public | |
Definition at line 16 of file SvgGraphicContext.h.
| SvgGraphicsContext::SvgGraphicsContext | ( | ) |
Definition at line 13 of file SvgGraphicContext.cpp.
References stroke.
| SvgGraphicsContext::SvgGraphicsContext | ( | const SvgGraphicsContext & | gc | ) |
Definition at line 23 of file SvgGraphicContext.cpp.
References stroke.
|
privatedefault |
used by copy constructor, shouldn't be public
| void SvgGraphicsContext::workaroundClearInheritedFillProperties | ( | ) |
HACK ALERT: according to SVG patterns, clip paths and clip masks must not inherit any properties from the referencing element. We still don't support it, therefore we reset only fill/stroke properties to avoid cyclic fill inheritance, which may cause infinite recursion.
Definition at line 31 of file SvgGraphicContext.cpp.
References currentColor, fillColor, fillRule, fillType, None, opacity, Solid, stroke, strokeType, and toQShared().
| bool SvgGraphicsContext::autoFillMarkers {false} |
Definition at line 65 of file SvgGraphicContext.h.
| QString SvgGraphicsContext::clipMaskId |
the current clip mask id
Definition at line 43 of file SvgGraphicContext.h.
| QString SvgGraphicsContext::clipPathId |
the current clip path id
Definition at line 42 of file SvgGraphicContext.h.
| Qt::FillRule SvgGraphicsContext::clipRule {Qt::WindingFill} |
| QRectF SvgGraphicsContext::currentBoundingBox |
the current bound box used for bounding box units
Definition at line 52 of file SvgGraphicContext.h.
| QColor SvgGraphicsContext::currentColor {Qt::black} |
| bool SvgGraphicsContext::display {true} |
| QColor SvgGraphicsContext::fillColor {QColor(Qt::black)} |
the current fill color. Default is black fill as per svg spec
Definition at line 34 of file SvgGraphicContext.h.
| QString SvgGraphicsContext::fillId |
the current fill id (used for gradient/pattern fills)
Definition at line 35 of file SvgGraphicContext.h.
| Qt::FillRule SvgGraphicsContext::fillRule {Qt::WindingFill} |
| QString SvgGraphicsContext::filterId |
the current filter id
Definition at line 41 of file SvgGraphicContext.h.
| bool SvgGraphicsContext::forcePercentage {false} |
force parsing coordinates/length as percentages of currentBoundbox
Definition at line 53 of file SvgGraphicContext.h.
| bool SvgGraphicsContext::isResolutionFrame {false} |
Definition at line 58 of file SvgGraphicContext.h.
| QString SvgGraphicsContext::markerEndId |
Definition at line 63 of file SvgGraphicContext.h.
| QString SvgGraphicsContext::markerMidId |
Definition at line 62 of file SvgGraphicContext.h.
| QString SvgGraphicsContext::markerStartId |
Definition at line 61 of file SvgGraphicContext.h.
| QTransform SvgGraphicsContext::matrix |
the current transformation matrix
Definition at line 47 of file SvgGraphicContext.h.
| qreal SvgGraphicsContext::opacity {1.0} |
| QString SvgGraphicsContext::paintOrder |
String list indicating paint order;.
Definition at line 71 of file SvgGraphicContext.h.
| qreal SvgGraphicsContext::pixelsPerInch {72.0} |
controls the resolution of the image raster
Definition at line 59 of file SvgGraphicContext.h.
| bool SvgGraphicsContext::preserveWhitespace {false} |
| QString SvgGraphicsContext::shapeInsideValue |
String of value shape-inside, will be parsed later.
Definition at line 68 of file SvgGraphicContext.h.
| QString SvgGraphicsContext::shapeSubtractValue |
String of value shape-subtract, will be parsed later.
Definition at line 69 of file SvgGraphicContext.h.
| KoShapeStrokeSP SvgGraphicsContext::stroke |
the current stroke
Definition at line 39 of file SvgGraphicContext.h.
| QString SvgGraphicsContext::strokeId |
the current stroke id (used for gradient strokes)
Definition at line 38 of file SvgGraphicContext.h.
| KoSvgTextProperties SvgGraphicsContext::textProperties |
Stores textProperties.
Definition at line 67 of file SvgGraphicContext.h.
| QTransform SvgGraphicsContext::viewboxTransform |
view box transformation
Definition at line 54 of file SvgGraphicContext.h.
| bool SvgGraphicsContext::visible {true} |
controls visibility of the shape (inherited)
Definition at line 57 of file SvgGraphicContext.h.
| QString SvgGraphicsContext::xmlBaseDir |
the current base directory (used for loading external content)
Definition at line 49 of file SvgGraphicContext.h.