Inkscape
Vector Graphics Editor
|
Enum type internal to SPStyle. More...
#include <style-internal.h>
Public Member Functions | |
SPIEnum (T value=T(), bool inherits=true) | |
~SPIEnum () 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 |
SPIEnum & | operator= (const SPIEnum &rhs) |
bool | equals (const SPIBase &rhs) const override |
![]() | |
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 | |
T | value {} |
T | computed {} |
![]() | |
bool | inherits: 1 |
bool | set: 1 |
bool | inherit: 1 |
bool | important: 1 |
SPStyleSrc | style_src |
Private Member Functions | |
void | update_computed () |
Update computed from value. | |
void | update_computed_cascade (T const &parent_computed) |
Update computed from parent computed. | |
void | update_value_merge (SPIEnum< T > const &) |
Update value from parent. | |
void | update_value_merge (SPIEnum< T > const &, T, T) |
Private Attributes | |
T | value_default {} |
Additional Inherited Members | |
![]() | |
char const * | important_str () const |
![]() | |
SPStyle * | style |
Enum type internal to SPStyle.
Definition at line 479 of file style-internal.h.
Definition at line 483 of file style-internal.h.
References SPIEnum< T >::update_computed().
|
inlineoverridevirtual |
Reimplemented from SPIBase.
Definition at line 496 of file style-internal.h.
References SPIBase::clear(), SPIEnum< T >::update_computed(), SPIEnum< T >::value, and SPIEnum< T >::value_default.
Reimplemented from SPIBase.
Definition at line 967 of file style-internal.cpp.
References SPIBase::equals().
|
overridevirtual |
Implements SPIBase.
Reimplemented in SPIEnumBits, SPILigatures, and SPINumeric.
Definition at line 865 of file style-internal.cpp.
References key.
Definition at line 505 of file style-internal.h.
References SPIEnum< T >::computed, SPIBase::operator=(), SPIEnum< T >::value, and SPIEnum< T >::value_default.
|
overridevirtual |
Implements SPIBase.
Reimplemented in SPIEnumBits, SPILigatures, and SPINumeric.
Definition at line 784 of file style-internal.cpp.
|
private |
Update computed from value.
Definition at line 765 of file style-internal.cpp.
Referenced by SPIEnum< T >::clear(), and SPIEnum< T >::SPIEnum().
|
inlineprivate |
Update computed from parent computed.
Definition at line 526 of file style-internal.h.
Update value from parent.
Definition at line 529 of file style-internal.h.
|
private |
Definition at line 918 of file style-internal.cpp.
References set, and SPIEnum< T >::value.
T SPIEnum< T >::computed {} |
Definition at line 518 of file style-internal.h.
Referenced by objects_query_fontvariants(), SPIEnum< T >::operator=(), and SPIEnumBits::read().
T SPIEnum< T >::value {} |
Definition at line 517 of file style-internal.h.
Referenced by Inkscape::Extension::Internal::CairoRenderContext::addClipPath(), SPIEnum< T >::clear(), SPIEnumBits::get_value(), objects_query_fontvariants(), SPIEnum< T >::operator=(), SPIEnumBits::read(), and SPIEnum< T >::update_value_merge().
|
private |
Definition at line 521 of file style-internal.h.
Referenced by SPIEnum< T >::clear(), and SPIEnum< T >::operator=().