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

Text decoration type internal to SPStyle. More...

#include <style-internal.h>

Inheritance diagram for SPITextDecoration:
SPIBase TypedSPI< SPAttr::TEXT_DECORATION, SPITextDecoration >

Public Member Functions

 SPITextDecoration ()=default
 
 ~SPITextDecoration () override=default
 
void read (gchar const *str) override
 
const Glib::ustring get_value () const override
 
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 override
 Compile this style conditionally into a 'name: value' string suitable for css attrs.
 
void clear () override
 
void cascade (const SPIBase *const parent) override
 
void merge (const SPIBase *const parent) override
 
SPITextDecorationoperator= (const SPITextDecoration &rhs)
 
bool equals (const SPIBase &rhs) const override
 
- 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.
 
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

SPStylestyle_td = nullptr
 
- 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

Text decoration type internal to SPStyle.

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

Constructor & Destructor Documentation

◆ SPITextDecoration()

SPITextDecoration::SPITextDecoration ( )
default

◆ ~SPITextDecoration()

SPITextDecoration::~SPITextDecoration ( )
overridedefault

Member Function Documentation

◆ cascade()

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

Implements SPIBase.

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

References parent, and style_td.

◆ clear()

void SPITextDecoration::clear ( )
inlineoverridevirtual

Reimplemented from SPIBase.

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

References SPIBase::clear(), and style_td.

◆ equals()

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

Reimplemented from SPIBase.

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

References SPIBase::equals(), SPIBase::style, and SPStyle::text_decoration_line.

◆ get_value()

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

Implements SPIBase.

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

References SPIBase::inherit, SPIBase::style, and SPStyle::text_decoration_line.

Referenced by write().

◆ merge()

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

Implements SPIBase.

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

References parent, and style_td.

◆ operator=()

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

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

References SPIBase::operator=().

◆ read()

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

◆ write()

const Glib::ustring SPITextDecoration::write ( guint const  flags = SP_STYLE_FLAG_IFSET,
SPStyleSrc const &  style_src_req = SPStyleSrc::STYLE_PROP,
SPIBase const *const  base = nullptr 
) const
overridevirtual

Compile this style conditionally into a 'name: value' string suitable for css attrs.

see shall_write for details on conditional flags.

Parameters
flagsConditions bitmask of SP_STYLE_FLAG_* bits
style_src_reqFor SP_STYLE_FLAG_IFSRC
baseParent node style for SP_STYLE_FLAG_IFDIFF, can be NULL
Returns
completed css string or empty string if conditions not met.

Reimplemented from SPIBase.

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

References get_value(), SPIBase::important_str(), SPIBase::name(), SPIBase::set, SPIBase::style, and SPStyle::text_decoration_line.

Member Data Documentation

◆ style_td

SPStyle* SPITextDecoration::style_td = nullptr

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

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


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