Inkscape
Vector Graphics Editor
|
Paint order type internal to SPStyle. More...
#include <style-internal.h>
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 |
SPIPaintOrder & | operator= (const SPIPaintOrder &rhs) |
bool | equals (const SPIBase &rhs) const override |
std::array< SPPaintOrderLayer, PAINT_ORDER_LAYERS > | get_layers () const |
Get the actual layer order, converting "normal" to layers. | |
![]() | |
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) |
SPIBase & | operator= (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 |
![]() | |
bool | inherits: 1 |
bool | set: 1 |
bool | inherit: 1 |
bool | important: 1 |
SPStyleSrc | style_src |
Additional Inherited Members | |
![]() | |
char const * | important_str () const |
![]() | |
SPStyle * | style |
Paint order type internal to SPStyle.
Definition at line 820 of file style-internal.h.
|
inline |
Definition at line 824 of file style-internal.h.
References clear().
|
inline |
Definition at line 828 of file style-internal.h.
|
inlineoverride |
Definition at line 830 of file style-internal.h.
References value.
|
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().
|
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().
|
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.
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.
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.
|
overridevirtual |
Implements SPIBase.
Definition at line 1985 of file style-internal.cpp.
References SPIBase::inherit, layer, layer_set, PAINT_ORDER_LAYERS, SP_CSS_PAINT_ORDER_FILL, SP_CSS_PAINT_ORDER_MARKER, SP_CSS_PAINT_ORDER_NORMAL, and SP_CSS_PAINT_ORDER_STROKE.
|
overridevirtual |
Implements SPIBase.
Definition at line 2031 of file style-internal.cpp.
References cascade(), SPIBase::inherit, parent, and SPIBase::set.
|
inline |
Definition at line 850 of file style-internal.h.
References layer, layer_set, SPIBase::operator=(), PAINT_ORDER_LAYERS, and value.
|
overridevirtual |
Implements SPIBase.
Definition at line 1891 of file style-internal.cpp.
References c, SPIBase::inherit, layer, layer_set, PAINT_ORDER_LAYERS, SPIBase::set, SP_CSS_PAINT_ORDER_FILL, SP_CSS_PAINT_ORDER_MARKER, SP_CSS_PAINT_ORDER_NORMAL, SP_CSS_PAINT_ORDER_STROKE, used, and value.
Referenced by item_to_paths(), and Inkscape::UI::Widget::StrokeStyle::setPaintOrder().
SPPaintOrderLayer SPIPaintOrder::layer[PAINT_ORDER_LAYERS] |
Definition at line 870 of file style-internal.h.
Referenced by cascade(), clear(), equals(), get_layers(), get_order(), get_value(), item_to_paths(), operator=(), read(), and Inkscape::UI::Widget::StrokeStyle::setPaintOrder().
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().
gchar* SPIPaintOrder::value = nullptr |
Definition at line 872 of file style-internal.h.
Referenced by cascade(), clear(), operator=(), read(), and ~SPIPaintOrder().