Krita Source Code Documentation
Loading...
Searching...
No Matches
TypeSettingDecorInfo Struct Reference

Public Member Functions

QRectF boundingRect (qreal handleRadius)
 
bool testBaselines (Qt::KeyboardModifiers modifiers)
 

Public Attributes

QMap< SvgTextCursor::TypeSettingModeHandle, QPainterPath > baselines
 
QPointF closestBaselinePoint
 
QPainterPath edges
 
QPair< QPointF, QPointF > handles
 
bool handlesEnabled
 
QMap< SvgTextCursor::TypeSettingModeHandle, QPainterPath > parentBaselines
 
QMap< SvgTextCursor::TypeSettingModeHandle, QPainterPath > parentPaths
 
QMap< SvgTextCursor::TypeSettingModeHandle, QPainterPath > paths
 

Detailed Description

Definition at line 109 of file SvgTextCursor.cpp.

Member Function Documentation

◆ boundingRect()

QRectF TypeSettingDecorInfo::boundingRect ( qreal handleRadius)
inline

Definition at line 122 of file SvgTextCursor.cpp.

122 {
123 QRectF total;
124 for (int i = 0; i< paths.values().size(); i++) {
125 total |= paths.values().at(i).boundingRect();
126 }
127 for (int i = 0; i< baselines.values().size(); i++) {
128 total |= baselines.values().at(i).boundingRect();
129 }
130 for (int i = 0; i< parentPaths.values().size(); i++) {
131 total |= parentPaths.values().at(i).boundingRect();
132 }
133 for (int i = 0; i< parentBaselines.values().size(); i++) {
134 total |= parentBaselines.values().at(i).boundingRect();
135 }
136 total |= edges.boundingRect();
137 QRectF rect(0, 0, handleRadius, handleRadius);
138 rect.moveCenter(handles.first);
139 total |= rect;
140 rect.moveCenter(handles.second);
141 total |= rect;
142 return total;
143 }
int size(const Forest< T > &forest)
Definition KisForest.h:1232
QMap< SvgTextCursor::TypeSettingModeHandle, QPainterPath > paths
QMap< SvgTextCursor::TypeSettingModeHandle, QPainterPath > baselines
QMap< SvgTextCursor::TypeSettingModeHandle, QPainterPath > parentBaselines
QPair< QPointF, QPointF > handles
QMap< SvgTextCursor::TypeSettingModeHandle, QPainterPath > parentPaths

References baselines, edges, handles, parentBaselines, parentPaths, and paths.

◆ testBaselines()

bool TypeSettingDecorInfo::testBaselines ( Qt::KeyboardModifiers modifiers)
inline

Definition at line 145 of file SvgTextCursor.cpp.

145 {
146 return (modifiers & Qt::ShiftModifier);
147 }

Member Data Documentation

◆ baselines

QMap<SvgTextCursor::TypeSettingModeHandle, QPainterPath> TypeSettingDecorInfo::baselines

Definition at line 113 of file SvgTextCursor.cpp.

◆ closestBaselinePoint

QPointF TypeSettingDecorInfo::closestBaselinePoint

Definition at line 120 of file SvgTextCursor.cpp.

◆ edges

QPainterPath TypeSettingDecorInfo::edges

Definition at line 116 of file SvgTextCursor.cpp.

◆ handles

QPair<QPointF, QPointF> TypeSettingDecorInfo::handles

Definition at line 110 of file SvgTextCursor.cpp.

◆ handlesEnabled

bool TypeSettingDecorInfo::handlesEnabled

Definition at line 111 of file SvgTextCursor.cpp.

◆ parentBaselines

QMap<SvgTextCursor::TypeSettingModeHandle, QPainterPath> TypeSettingDecorInfo::parentBaselines

Definition at line 118 of file SvgTextCursor.cpp.

◆ parentPaths

QMap<SvgTextCursor::TypeSettingModeHandle, QPainterPath> TypeSettingDecorInfo::parentPaths

Definition at line 117 of file SvgTextCursor.cpp.

◆ paths

QMap<SvgTextCursor::TypeSettingModeHandle, QPainterPath> TypeSettingDecorInfo::paths

Definition at line 114 of file SvgTextCursor.cpp.


The documentation for this struct was generated from the following file: