Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgText::TextIndentInfo Struct Reference

#include <KoSvgText.h>

+ Inheritance diagram for KoSvgText::TextIndentInfo:

Public Member Functions

bool operator== (const TextIndentInfo &rhs) const
 
 TextIndentInfo ()=default
 

Public Attributes

bool eachLine = false
 Apply the text-indent to each line following a hardbreak.
 
bool hanging = false
 Flip the lines to which text-indent is applied.
 
CssLengthPercentage length
 

Detailed Description

"This property specifies the indentation applied to lines of inline content in a block. The indent is treated as a margin applied to the start edge of the line box." – CSS-Text-3

Definition at line 655 of file KoSvgText.h.

Constructor & Destructor Documentation

◆ TextIndentInfo()

KoSvgText::TextIndentInfo::TextIndentInfo ( )
default

Member Function Documentation

◆ operator==()

bool KoSvgText::TextIndentInfo::operator== ( const TextIndentInfo & rhs) const
inline

Definition at line 661 of file KoSvgText.h.

662 {
663 return (length == rhs.length) && (hanging == rhs.hanging) && (eachLine == rhs.eachLine);
664 }
bool hanging
Flip the lines to which text-indent is applied.
Definition KoSvgText.h:659
bool eachLine
Apply the text-indent to each line following a hardbreak.
Definition KoSvgText.h:660
CssLengthPercentage length
Definition KoSvgText.h:658

References eachLine, hanging, and length.

Member Data Documentation

◆ eachLine

bool KoSvgText::TextIndentInfo::eachLine = false

Apply the text-indent to each line following a hardbreak.

Definition at line 660 of file KoSvgText.h.

◆ hanging

bool KoSvgText::TextIndentInfo::hanging = false

Flip the lines to which text-indent is applied.

Definition at line 659 of file KoSvgText.h.

◆ length

CssLengthPercentage KoSvgText::TextIndentInfo::length

Definition at line 658 of file KoSvgText.h.


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