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

The KoSvgTextPropertyData struct. More...

#include <KoSvgTextPropertyData.h>

+ Inheritance diagram for KoSvgTextPropertyData:

Public Member Functions

bool operator== (const KoSvgTextPropertyData &rhs) const
 

Public Attributes

KoSvgTextProperties commonProperties
 The properties common between all the selected text.
 
KoSvgTextProperties inheritedProperties {KoSvgTextProperties::defaultProperties()}
 The properties that are inherited, so that widgets may be set correctly.
 
bool spanSelection {false}
 Whether we're currently selecting a span of text as opposed to editing the whole paragraph.
 
QSet< KoSvgTextProperties::PropertyIdtristate
 The properties that are not common (tri-state) between the selected text.
 

Detailed Description

The KoSvgTextPropertyData struct.

This struct contains the style data of a given set of text objects. Within text editing it is very common to select ranges of multiple styled spans, each with their own properties.

This struct encapsulates the data to represent it inside a text property widget, and is the source data for the lager model.

Definition at line 25 of file KoSvgTextPropertyData.h.

Member Function Documentation

◆ operator==()

bool KoSvgTextPropertyData::operator== ( const KoSvgTextPropertyData & rhs) const
inline

Definition at line 39 of file KoSvgTextPropertyData.h.

39 {
41 }
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 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.

References commonProperties, inheritedProperties, spanSelection, and tristate.

Member Data Documentation

◆ commonProperties

KoSvgTextProperties KoSvgTextPropertyData::commonProperties

The properties common between all the selected text.

Definition at line 28 of file KoSvgTextPropertyData.h.

◆ inheritedProperties

KoSvgTextProperties KoSvgTextPropertyData::inheritedProperties {KoSvgTextProperties::defaultProperties()}

The properties that are inherited, so that widgets may be set correctly.

Definition at line 31 of file KoSvgTextPropertyData.h.

static const KoSvgTextProperties & defaultProperties()

◆ spanSelection

bool KoSvgTextPropertyData::spanSelection {false}

Whether we're currently selecting a span of text as opposed to editing the whole paragraph.

Definition at line 37 of file KoSvgTextPropertyData.h.

37{false};

◆ tristate

QSet<KoSvgTextProperties::PropertyId> KoSvgTextPropertyData::tristate

The properties that are not common (tri-state) between the selected text.

Definition at line 34 of file KoSvgTextPropertyData.h.


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