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

Paint order type internal to SPStyle. More...

#include <style-internal.h>

Inheritance diagram for SPIPaintOrder:
SPIBase TypedSPI< SPAttr::PAINT_ORDER, SPIPaintOrder >

Public Member Functions

 SPIPaintOrder ()
 
 SPIPaintOrder (const SPIPaintOrder &rhs)
 
 ~SPIPaintOrder () override
 
void read (gchar const *str) override
 
const Glib::ustring get_value () const override
 
unsigned get_order (SPPaintOrderLayer paint_order) const
 Return the index of the given paint order.
 
void clear () override
 
void cascade (const SPIBase *const parent) override
 
void merge (const SPIBase *const parent) override
 
SPIPaintOrderoperator= (const SPIPaintOrder &rhs)
 
bool equals (const SPIBase &rhs) const override
 
std::array< SPPaintOrderLayer, PAINT_ORDER_LAYERSget_layers () const
 Get the actual layer order, converting "normal" to layers.
 
- 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

SPPaintOrderLayer layer [PAINT_ORDER_LAYERS]
 
bool layer_set [PAINT_ORDER_LAYERS]
 
gchar * value = 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

Paint order type internal to SPStyle.

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

Constructor & Destructor Documentation

◆ SPIPaintOrder() [1/2]

SPIPaintOrder::SPIPaintOrder ( )
inline

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

References clear().

◆ SPIPaintOrder() [2/2]

SPIPaintOrder::SPIPaintOrder ( const SPIPaintOrder rhs)
inline

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

◆ ~SPIPaintOrder()

SPIPaintOrder::~SPIPaintOrder ( )
inlineoverride

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

References value.

Member Function Documentation

◆ cascade()

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

Implements SPIBase.

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

References SPIBase::inherit, layer, layer_set, PAINT_ORDER_LAYERS, parent, SPIBase::set, and value.

Referenced by merge().

◆ clear()

void SPIPaintOrder::clear ( )
inlineoverridevirtual

Reimplemented from SPIBase.

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

References SPIBase::clear(), layer, layer_set, PAINT_ORDER_LAYERS, SP_CSS_PAINT_ORDER_NORMAL, and value.

Referenced by SPIPaintOrder().

◆ equals()

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

Reimplemented from SPIBase.

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

References SPIBase::equals(), layer, PAINT_ORDER_LAYERS, and SP_CSS_PAINT_ORDER_NORMAL.

◆ get_layers()

std::array< SPPaintOrderLayer, PAINT_ORDER_LAYERS > SPIPaintOrder::get_layers ( ) const

Get the actual layer order, converting "normal" to layers.

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

References layer, SP_CSS_PAINT_ORDER_FILL, SP_CSS_PAINT_ORDER_MARKER, SP_CSS_PAINT_ORDER_NORMAL, and SP_CSS_PAINT_ORDER_STROKE.

◆ get_order()

unsigned SPIPaintOrder::get_order ( SPPaintOrderLayer  paint_order) const

Return the index of the given paint order.

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

References layer, and PAINT_ORDER_LAYERS.

◆ get_value()

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

◆ merge()

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

Implements SPIBase.

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

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

◆ operator=()

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

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

References layer, layer_set, SPIBase::operator=(), PAINT_ORDER_LAYERS, and value.

◆ read()

Member Data Documentation

◆ layer

◆ layer_set

bool SPIPaintOrder::layer_set[PAINT_ORDER_LAYERS]

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

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

◆ value

gchar* SPIPaintOrder::value = nullptr

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

Referenced by cascade(), clear(), operator=(), read(), and ~SPIPaintOrder().


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