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 113 of file SvgTextCursor.cpp.

Member Function Documentation

◆ boundingRect()

QRectF TypeSettingDecorInfo::boundingRect ( qreal handleRadius)
inline

Definition at line 126 of file SvgTextCursor.cpp.

126 {
127 QRectF total;
128 for (int i = 0; i< paths.values().size(); i++) {
129 total |= paths.values().at(i).boundingRect();
130 }
131 for (int i = 0; i< baselines.values().size(); i++) {
132 total |= baselines.values().at(i).boundingRect();
133 }
134 for (int i = 0; i< parentPaths.values().size(); i++) {
135 total |= parentPaths.values().at(i).boundingRect();
136 }
137 for (int i = 0; i< parentBaselines.values().size(); i++) {
138 total |= parentBaselines.values().at(i).boundingRect();
139 }
140 total |= edges.boundingRect();
141 QRectF rect(0, 0, handleRadius, handleRadius);
142 rect.moveCenter(handles.first);
143 total |= rect;
144 rect.moveCenter(handles.second);
145 total |= rect;
146 return total;
147 }
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 149 of file SvgTextCursor.cpp.

149 {
150 return (modifiers & Qt::ShiftModifier);
151 }

Member Data Documentation

◆ baselines

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

Definition at line 117 of file SvgTextCursor.cpp.

◆ closestBaselinePoint

QPointF TypeSettingDecorInfo::closestBaselinePoint

Definition at line 124 of file SvgTextCursor.cpp.

◆ edges

QPainterPath TypeSettingDecorInfo::edges

Definition at line 120 of file SvgTextCursor.cpp.

◆ handles

QPair<QPointF, QPointF> TypeSettingDecorInfo::handles

Definition at line 114 of file SvgTextCursor.cpp.

◆ handlesEnabled

bool TypeSettingDecorInfo::handlesEnabled

Definition at line 115 of file SvgTextCursor.cpp.

◆ parentBaselines

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

Definition at line 122 of file SvgTextCursor.cpp.

◆ parentPaths

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

Definition at line 121 of file SvgTextCursor.cpp.

◆ paths

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

Definition at line 118 of file SvgTextCursor.cpp.


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