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

Extended length type internal to SPStyle. More...

#include <style-internal.h>

Inheritance diagram for SPIFontVariationSettings:
SPIBase TypedSPI< SPAttr::FONT_VARIATION_SETTINGS, SPIFontVariationSettings >

Public Member Functions

 SPIFontVariationSettings ()
 
 ~SPIFontVariationSettings () 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
 
SPIFontVariationSettingsoperator= (const SPIFontVariationSettings &rhs)
 
bool equals (const SPIBase &rhs) const override
 
virtual const Glib::ustring toString () 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
 
std::map< Glib::ustring, float > axes
 
- 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 436 of file style-internal.h.

Constructor & Destructor Documentation

◆ SPIFontVariationSettings()

SPIFontVariationSettings::SPIFontVariationSettings ( )
inline

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

◆ ~SPIFontVariationSettings()

SPIFontVariationSettings::~SPIFontVariationSettings ( )
overridedefault

Member Function Documentation

◆ cascade()

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

Implements SPIBase.

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

References axes, SPIBase::inherit, normal, parent, and SPIBase::set.

◆ clear()

void SPIFontVariationSettings::clear ( )
inlineoverridevirtual

Reimplemented from SPIBase.

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

References axes, SPIBase::clear(), and normal.

◆ equals()

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

Reimplemented from SPIBase.

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

References axes, and normal.

◆ get_value()

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

Implements SPIBase.

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

References axes, Inkscape::ustring::format_classic(), and normal.

◆ merge()

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

Implements SPIBase.

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

References axes, SPIBase::inherit, normal, parent, and SPIBase::set.

◆ operator=()

SPIFontVariationSettings & SPIFontVariationSettings::operator= ( const SPIFontVariationSettings rhs)
inline

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

References axes, normal, and SPIBase::operator=().

◆ read()

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

Implements SPIBase.

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

References axes, SPIBase::inherit, normal, and SPIBase::set.

◆ toString()

const Glib::ustring SPIFontVariationSettings::toString ( ) const
virtual

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

References axes, and Inkscape::CSSOStringStream::str().

Member Data Documentation

◆ axes

std::map<Glib::ustring, float> SPIFontVariationSettings::axes

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

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

◆ normal

bool SPIFontVariationSettings::normal

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

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


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