Inkscape
Vector Graphics Editor
|
SPIEnum w/ bits, allows values with multiple key words. More...
#include <style-internal.h>
Public Member Functions | |
SPIEnumBits (Glib::ustring const &name, SPStyleEnum const *enums, unsigned value=0, bool inherits=true) | |
~SPIEnumBits () override=default | |
void | read (gchar const *str) override |
const Glib::ustring | get_value () const override |
![]() | |
SPIEnum (T value=T(), bool inherits=true) | |
~SPIEnum () override=default | |
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 |
Additional Inherited Members | |
![]() | |
T | value {} |
T | computed {} |
![]() | |
bool | inherits: 1 |
bool | set: 1 |
bool | inherit: 1 |
bool | important: 1 |
SPStyleSrc | style_src |
![]() | |
char const * | important_str () const |
![]() | |
SPStyle * | style |
SPIEnum w/ bits, allows values with multiple key words.
Definition at line 536 of file style-internal.h.
|
inline |
Definition at line 540 of file style-internal.h.
|
overridedefault |
|
overridevirtual |
Reimplemented from SPIEnum< T >.
Definition at line 1000 of file style-internal.cpp.
References SPIBase::inherit, and SPIEnum< T >::value.
|
overridevirtual |
Reimplemented from SPIEnum< T >.
Definition at line 981 of file style-internal.cpp.
References SPIEnum< T >::computed, SPIBase::inherit, key, SPIBase::set, and SPIEnum< T >::value.