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

Filter type internal to SPStyle. More...

#include <style-internal.h>

Inheritance diagram for SPIDashArray:
SPIBase TypedSPI< SPAttr::STROKE_DASHARRAY, SPIDashArray >

Public Member Functions

 SPIDashArray ()=default
 
 ~SPIDashArray () 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
 
SPIDashArrayoperator= (const SPIDashArray &rhs)=default
 
bool equals (const SPIBase &rhs) const override
 
bool is_valid () const
 
std::vector< double > get_computed () 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

std::vector< SPILengthvalues
 
- 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

Filter type internal to SPStyle.

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

Constructor & Destructor Documentation

◆ SPIDashArray()

SPIDashArray::SPIDashArray ( )
default

◆ ~SPIDashArray()

SPIDashArray::~SPIDashArray ( )
overridedefault

Member Function Documentation

◆ cascade()

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

Implements SPIBase.

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

References SPIBase::inherit, parent, SPIBase::set, and values.

◆ clear()

void SPIDashArray::clear ( )
inlineoverridevirtual

Reimplemented from SPIBase.

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

References SPIBase::clear(), and values.

◆ equals()

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

Reimplemented from SPIBase.

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

References SPIBase::equals(), and values.

◆ get_computed()

std::vector< double > SPIDashArray::get_computed ( ) const
inline

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

References values.

◆ get_value()

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

Implements SPIBase.

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

References SPIBase::inherit, and values.

◆ is_valid()

bool SPIDashArray::is_valid ( ) const

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

References len, and values.

◆ merge()

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

Implements SPIBase.

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

References SPIBase::inherit, SPIBase::inherits, parent, SPIBase::set, and values.

◆ operator=()

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

◆ read()

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

Implements SPIBase.

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

References SPIBase::inherit, SPILength::read(), SPIBase::set, SPILength::value, and values.

Member Data Documentation

◆ values

std::vector<SPILength> SPIDashArray::values

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

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


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