|
Krita Source Code Documentation
|
#include <SvgInlineSizeHelper.h>
Public Member Functions | |
| QLineF | baselineLine () const |
| Gets a line representing the first line baseline. This always goes from left to right by the inline-base direction, then mapped by the editor and the shape transformation. | |
| QLineF | baselineLineLocal () const |
| Gets a shape-local line representing the first line baseline. This always goes from left to right by the inline-base direction, then mapped by the editor transformation. | |
| QRectF | boundingRect () const |
| QLineF | endLine () const |
| QLineF | endLineDashes () const |
| QPolygonF | endLineGrabRect (double grabThreshold) const |
| QLineF | endLineLocal () const |
| Side | endLineSide () const |
| QLineF | startLine () const |
| QLineF | startLineDashes () const |
| QPolygonF | startLineGrabRect (double grabThreshold) const |
| QLineF | startLineLocal () const |
| Side | startLineSide () const |
Static Public Member Functions | |
| static std::optional< InlineSizeInfo > | fromShape (KoSvgTextShape *const shape, qreal dashesLength=36.0) |
Public Attributes | |
| VisualAnchor | anchor |
| double | baseline |
| Baseline coord along the block-flow direction. | |
| double | bottom |
| Bottom coord along the block-flow direction (left for h-rl, right for h-lr) | |
| double | dashesLength |
| Length of the dashes at the end. | |
| QTransform | editorTransform |
| Transformation from inline-size editor (writing-mode transformation) to shape. | |
| double | inlineSize |
| double | left |
| Left coord (vertical mode) or top coord (horizontal mode) | |
| double | right |
| Right coord (vertical mode) or bottom coord (horizontal mode) | |
| QTransform | shapeTransform |
| Transformation from shape local to document. | |
| double | top |
| Top coord along the block-flow direction (right for h-rl, left for h-lr) | |
Private Member Functions | |
| QRectF | boundingRectRaw () const |
| QLineF | generateDashLine (const QLineF line, const qreal dashLength=4.0) const |
| QLineF | leftLineRaw () const |
| QLineF | rightLineRaw () const |
Definition at line 40 of file SvgInlineSizeHelper.h.
|
inline |
Gets a line representing the first line baseline. This always goes from left to right by the inline-base direction, then mapped by the editor and the shape transformation.
Definition at line 206 of file SvgInlineSizeHelper.h.
|
inline |
Gets a shape-local line representing the first line baseline. This always goes from left to right by the inline-base direction, then mapped by the editor transformation.
Definition at line 195 of file SvgInlineSizeHelper.h.
|
inline |
Definition at line 329 of file SvgInlineSizeHelper.h.
|
inlineprivate |
Definition at line 174 of file SvgInlineSizeHelper.h.
|
inline |
Definition at line 245 of file SvgInlineSizeHelper.h.
|
inline |
Definition at line 234 of file SvgInlineSizeHelper.h.
|
inline |
Definition at line 289 of file SvgInlineSizeHelper.h.
|
inline |
Definition at line 223 of file SvgInlineSizeHelper.h.
|
inline |
Definition at line 211 of file SvgInlineSizeHelper.h.
|
inlinestatic |
Definition at line 60 of file SvgInlineSizeHelper.h.
References KoShape::absoluteTransformation(), KoSvgText::AnchorEnd, KoSvgText::AnchorMiddle, KoSvgText::AnchorStart, KoSvgTextShape::cursorForPos(), KoSvgTextProperties::DirectionId, KoSvgText::DirectionLeftToRight, SvgInlineSizeHelper::getInlineSizePt(), KoSvgText::HorizontalTB, KoSvgTextShape::initialTextPosition, KoSvgTextShape::outlineRect(), KoSvgTextShape::propertiesForPos(), KoSvgTextProperties::propertyOrDefault(), KoSvgTextProperties::TextAnchorId, KoSvgText::VerticalLR, KoSvgText::VerticalRL, and KoSvgTextProperties::WritingModeId.
|
inlineprivate |
Definition at line 179 of file SvgInlineSizeHelper.h.
|
inlineprivate |
|
inlineprivate |
|
inline |
Definition at line 284 of file SvgInlineSizeHelper.h.
|
inline |
Definition at line 273 of file SvgInlineSizeHelper.h.
|
inline |
Definition at line 309 of file SvgInlineSizeHelper.h.
|
inline |
Definition at line 262 of file SvgInlineSizeHelper.h.
|
inline |
Definition at line 250 of file SvgInlineSizeHelper.h.
| VisualAnchor SvgInlineSizeHelper::InlineSizeInfo::anchor |
Definition at line 54 of file SvgInlineSizeHelper.h.
| double SvgInlineSizeHelper::InlineSizeInfo::baseline |
Baseline coord along the block-flow direction.
Definition at line 43 of file SvgInlineSizeHelper.h.
| double SvgInlineSizeHelper::InlineSizeInfo::bottom |
Bottom coord along the block-flow direction (left for h-rl, right for h-lr)
Definition at line 51 of file SvgInlineSizeHelper.h.
| double SvgInlineSizeHelper::InlineSizeInfo::dashesLength |
Length of the dashes at the end.
Definition at line 53 of file SvgInlineSizeHelper.h.
| QTransform SvgInlineSizeHelper::InlineSizeInfo::editorTransform |
Transformation from inline-size editor (writing-mode transformation) to shape.
Definition at line 56 of file SvgInlineSizeHelper.h.
| double SvgInlineSizeHelper::InlineSizeInfo::inlineSize |
Definition at line 41 of file SvgInlineSizeHelper.h.
| double SvgInlineSizeHelper::InlineSizeInfo::left |
Left coord (vertical mode) or top coord (horizontal mode)
Definition at line 45 of file SvgInlineSizeHelper.h.
| double SvgInlineSizeHelper::InlineSizeInfo::right |
Right coord (vertical mode) or bottom coord (horizontal mode)
Definition at line 47 of file SvgInlineSizeHelper.h.
| QTransform SvgInlineSizeHelper::InlineSizeInfo::shapeTransform |
Transformation from shape local to document.
Definition at line 58 of file SvgInlineSizeHelper.h.
| double SvgInlineSizeHelper::InlineSizeInfo::top |
Top coord along the block-flow direction (right for h-rl, left for h-lr)
Definition at line 49 of file SvgInlineSizeHelper.h.