Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
SPILengthOrNormal Class Reference

Extended length type internal to SPStyle. More...

#include <style-internal.h>

Inheritance diagram for SPILengthOrNormal:
SPILength SPIBase TypedSPI< SPAttr::LINE_HEIGHT, SPILengthOrNormal > TypedSPI< SPAttr::LETTER_SPACING, SPILengthOrNormal > TypedSPI< SPAttr::WORD_SPACING, SPILengthOrNormal >

Public Member Functions

 SPILengthOrNormal (float value=0)
 
 ~SPILengthOrNormal () override=default
 
void read (gchar const *str) override
 
const Glib::ustring get_value () const override
 
void clear () override
 
void cascade (const SPIBase *const parent) override
 
void merge (const SPIBase *const parent) override
 
SPILengthOrNormaloperator= (const SPILengthOrNormal &rhs)=default
 
bool equals (const SPIBase &rhs) const override
 
- Public Member Functions inherited from SPILength
 SPILength (float value=0)
 
 ~SPILength () override=default
 
SPILengthoperator= (const SPILength &rhs)=default
 
void setDouble (double v)
 
virtual const Glib::ustring toString (bool wname=false) const
 
- Public Member Functions inherited from SPIBase
 SPIBase (bool inherits_=true)
 
virtual ~SPIBase ()=default
 
void readIfUnset (gchar const *str, SPStyleSrc source=SPStyleSrc::STYLE_PROP)
 
void readAttribute (Inkscape::XML::Node *repr)
 
bool shall_write (guint const flags=SP_STYLE_FLAG_IFSET, SPStyleSrc const &style_src_req=SPStyleSrc::STYLE_PROP, SPIBase const *const base=nullptr) const
 Check if this property should be written.
 
virtual const Glib::ustring write (guint const flags=SP_STYLE_FLAG_IFSET, SPStyleSrc const &style_src_req=SPStyleSrc::STYLE_PROP, SPIBase const *const base=nullptr) const
 Compile this style conditionally into a 'name: value' string suitable for css attrs.
 
void overwrite (const SPIBase *const other)
 
void setStylePointer (SPStyle *style_in)
 
SPIBaseoperator= (const SPIBase &rhs)=default
 
bool operator== (const SPIBase &rhs) const
 
virtual SPAttr id () const
 
Glib::ustring const & name () const
 

Public Attributes

bool normal: 1
 
- Public Attributes inherited from SPILength
unsigned unit: 4
 
float value = 0.f
 
float computed = 0.f
 
- Public Attributes inherited from SPIBase
bool inherits: 1
 
bool set: 1
 
bool inherit: 1
 
bool important: 1
 
SPStyleSrc style_src
 

Additional Inherited Members

- Protected Member Functions inherited from SPIBase
char const * important_str () const
 
- Protected Attributes inherited from SPIBase
SPStylestyle
 

Detailed Description

Extended length type internal to SPStyle.

Definition at line 402 of file style-internal.h.

Constructor & Destructor Documentation

◆ SPILengthOrNormal()

SPILengthOrNormal::SPILengthOrNormal ( float  value = 0)
inline

Definition at line 406 of file style-internal.h.

◆ ~SPILengthOrNormal()

SPILengthOrNormal::~SPILengthOrNormal ( )
overridedefault

Member Function Documentation

◆ cascade()

void SPILengthOrNormal::cascade ( const SPIBase *const  parent)
overridevirtual

Reimplemented from SPILength.

Definition at line 583 of file style-internal.cpp.

References SPILength::cascade(), SPIBase::inherit, SPIBase::inherits, normal, parent, and SPIBase::set.

◆ clear()

void SPILengthOrNormal::clear ( )
inlineoverridevirtual

Reimplemented from SPILength.

Definition at line 416 of file style-internal.h.

References SPILength::clear(), and normal.

◆ equals()

bool SPILengthOrNormal::equals ( const SPIBase rhs) const
overridevirtual

Reimplemented from SPILength.

Definition at line 607 of file style-internal.cpp.

References SPILength::equals(), and normal.

◆ get_value()

const Glib::ustring SPILengthOrNormal::get_value ( ) const
overridevirtual

Reimplemented from SPILength.

Definition at line 576 of file style-internal.cpp.

References SPILength::get_value(), and normal.

◆ merge()

void SPILengthOrNormal::merge ( const SPIBase *const  parent)
overridevirtual

Reimplemented from SPILength.

Definition at line 595 of file style-internal.cpp.

References SPIBase::inherit, SPIBase::inherits, SPILength::merge(), normal, parent, and SPIBase::set.

◆ operator=()

SPILengthOrNormal & SPILengthOrNormal::operator= ( const SPILengthOrNormal rhs)
default

◆ read()

void SPILengthOrNormal::read ( gchar const *  str)
overridevirtual

Member Data Documentation

◆ normal

bool SPILengthOrNormal::normal

Definition at line 430 of file style-internal.h.

Referenced by cascade(), clear(), equals(), get_value(), merge(), and read().


The documentation for this class was generated from the following files: