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

#include <KoSvgText.h>

+ Inheritance diagram for KoSvgText::LineHeightInfo:

Public Member Functions

bool operator== (const LineHeightInfo &rhs) const
 The 'auto' value.
 

Public Attributes

bool isNormal = true
 It's a number indicating the lineHeight;.
 
bool isNumber = false
 Length or number.
 
CssLengthPercentage length
 
qreal value = 1.0
 

Detailed Description

Definition at line 692 of file KoSvgText.h.

Member Function Documentation

◆ operator==()

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

The 'auto' value.

Definition at line 698 of file KoSvgText.h.

699 {
700 bool toggles = (isNumber == rhs.isNumber && isNormal == rhs.isNormal);
701 bool val = isNumber? qFuzzyCompare(value, rhs.value): length == rhs.length;
702 return (toggles && val);
703 }
static bool qFuzzyCompare(half p1, half p2)
bool isNumber
Length or number.
Definition KoSvgText.h:695
CssLengthPercentage length
Definition KoSvgText.h:693
bool isNormal
It's a number indicating the lineHeight;.
Definition KoSvgText.h:696

References isNormal, isNumber, length, qFuzzyCompare(), and value.

Member Data Documentation

◆ isNormal

bool KoSvgText::LineHeightInfo::isNormal = true

It's a number indicating the lineHeight;.

Definition at line 696 of file KoSvgText.h.

◆ isNumber

bool KoSvgText::LineHeightInfo::isNumber = false

Length or number.

Definition at line 695 of file KoSvgText.h.

◆ length

CssLengthPercentage KoSvgText::LineHeightInfo::length

Definition at line 693 of file KoSvgText.h.

◆ value

qreal KoSvgText::LineHeightInfo::value = 1.0

Definition at line 694 of file KoSvgText.h.


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