Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextPropertyData.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KOSVGTEXTPROPERTYDATA_H
7#define KOSVGTEXTPROPERTYDATA_H
8
10#include "kritaflake_export.h"
11
12#include <boost/operators.hpp>
13#include <QDebug>
14
25struct KRITAFLAKE_EXPORT KoSvgTextPropertyData : public boost::equality_comparable<KoSvgTextPropertyData>
26{
29
32
34 QSet<KoSvgTextProperties::PropertyId> tristate;
35
37 bool spanSelection {false};
38
39 bool operator==(const KoSvgTextPropertyData &rhs) const {
40 return commonProperties == rhs.commonProperties && inheritedProperties == rhs.inheritedProperties && tristate == rhs.tristate && spanSelection == rhs.spanSelection;
41 }
42};
43
44QDebug KRITAFLAKE_EXPORT operator<<(QDebug dbg, const KoSvgTextPropertyData &prop);
45
47
48#endif // KOSVGTEXTPROPERTYDATA_H
QDebug KRITAFLAKE_EXPORT operator<<(QDebug dbg, const KoSvgTextPropertyData &prop)
static const KoSvgTextProperties & defaultProperties()
Q_DECLARE_METATYPE(KisPaintopLodLimitations)
The KoSvgTextPropertyData struct.
KoSvgTextProperties commonProperties
The properties common between all the selected text.
QSet< KoSvgTextProperties::PropertyId > tristate
The properties that are not common (tri-state) between the selected text.
bool operator==(const KoSvgTextPropertyData &rhs) const
bool spanSelection
Whether we're currently selecting a span of text as opposed to editing the whole paragraph.
KoSvgTextProperties inheritedProperties
The properties that are inherited, so that widgets may be set correctly.