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

#include <KoSvgText.h>

+ Inheritance diagram for KoSvgText::AutoLengthPercentage:

Public Member Functions

 AutoLengthPercentage ()
 
 AutoLengthPercentage (CssLengthPercentage _length)
 
 AutoLengthPercentage (qreal _customValue, CssLengthPercentage::UnitType unit=CssLengthPercentage::Absolute)
 
bool operator== (const AutoLengthPercentage &other) const
 

Public Attributes

bool isAuto = true
 
CssLengthPercentage length
 

Detailed Description

Definition at line 457 of file KoSvgText.h.

Constructor & Destructor Documentation

◆ AutoLengthPercentage() [1/3]

KoSvgText::AutoLengthPercentage::AutoLengthPercentage ( )
inline

Definition at line 459 of file KoSvgText.h.

459{}

◆ AutoLengthPercentage() [2/3]

KoSvgText::AutoLengthPercentage::AutoLengthPercentage ( CssLengthPercentage _length)
inline

Definition at line 460 of file KoSvgText.h.

461 : isAuto(false), length(_length) {}
CssLengthPercentage length
Definition KoSvgText.h:466

◆ AutoLengthPercentage() [3/3]

KoSvgText::AutoLengthPercentage::AutoLengthPercentage ( qreal _customValue,
CssLengthPercentage::UnitType unit = CssLengthPercentage::Absolute )
inline

Definition at line 462 of file KoSvgText.h.

463 : isAuto(false), length(_customValue, unit) {}

Member Function Documentation

◆ operator==()

bool KoSvgText::AutoLengthPercentage::operator== ( const AutoLengthPercentage & other) const
inline

Definition at line 468 of file KoSvgText.h.

468 {
469 return isAuto == other.isAuto && (isAuto || length == other.length);
470 }

References isAuto, and length.

Member Data Documentation

◆ isAuto

bool KoSvgText::AutoLengthPercentage::isAuto = true

Definition at line 465 of file KoSvgText.h.

◆ length

CssLengthPercentage KoSvgText::AutoLengthPercentage::length

Definition at line 466 of file KoSvgText.h.


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