Inkscape
Vector Graphics Editor
|
Fontsize type internal to SPStyle (also used by libnrtype/Layout-TNG-Input.cpp). More...
#include <style-internal.h>
Public Member Functions | |
SPIFontSize () | |
~SPIFontSize () 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 |
SPIFontSize & | operator= (const SPIFontSize &rhs)=default |
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 | |
unsigned | type: 2 |
unsigned | unit: 4 |
unsigned | literal: 4 |
float | value |
float | computed |
![]() | |
bool | inherits: 1 |
bool | set: 1 |
bool | inherit: 1 |
bool | important: 1 |
SPStyleSrc | style_src |
Static Public Attributes | |
static float const | font_size_default = 12.0 |
Private Member Functions | |
double | relative_fraction () const |
Static Private Attributes | |
static float const | font_size_table [] = {6.0, 8.0, 10.0, 12.0, 14.0, 18.0, 24.0} |
Indexed by SP_CSS_FONT_SIZE_blah. | |
Additional Inherited Members | |
![]() | |
char const * | important_str () const |
![]() | |
SPStyle * | style |
Fontsize type internal to SPStyle (also used by libnrtype/Layout-TNG-Input.cpp).
Definition at line 949 of file style-internal.h.
|
inline |
Definition at line 953 of file style-internal.h.
References clear().
|
overridedefault |
|
overridevirtual |
Implements SPIBase.
Definition at line 2383 of file style-internal.cpp.
References computed, font_size_table, SPIBase::inherit, literal, parent, SPIBase::set, SP_CSS_FONT_SIZE_LARGER, SP_CSS_FONT_SIZE_SMALLER, SP_CSS_UNIT_EM, SP_CSS_UNIT_EX, SP_FONT_SIZE_LENGTH, SP_FONT_SIZE_LITERAL, SP_FONT_SIZE_PERCENTAGE, type, unit, and value.
|
inlineoverridevirtual |
Reimplemented from SPIBase.
Definition at line 962 of file style-internal.h.
References SPIBase::clear(), computed, literal, SP_CSS_FONT_SIZE_MEDIUM, SP_CSS_UNIT_NONE, SP_FONT_SIZE_LITERAL, type, unit, and value.
Referenced by SPIFontSize().
|
overridevirtual |
Reimplemented from SPIBase.
Definition at line 2528 of file style-internal.cpp.
References computed, SPIBase::equals(), literal, SP_FONT_SIZE_LENGTH, SP_FONT_SIZE_LITERAL, type, and value.
|
overridevirtual |
Implements SPIBase.
Definition at line 2352 of file style-internal.cpp.
References computed, enum_font_size, Inkscape::ustring::format_classic(), Inkscape::Preferences::get(), Inkscape::Preferences::getBool(), Inkscape::Preferences::getInt(), SPIBase::inherit, SPStyleEnum::key, literal, SP_CSS_UNIT_PT, SP_CSS_UNIT_PX, SP_FONT_SIZE_LENGTH, SP_FONT_SIZE_LITERAL, SP_FONT_SIZE_PERCENTAGE, sp_style_css_size_px_to_units(), sp_style_get_css_unit_string(), type, unit, and value.
|
overridevirtual |
Implements SPIBase.
Definition at line 2466 of file style-internal.cpp.
References computed, font_size_table, SPIBase::inherit, literal, parent, relative_fraction(), SPIBase::set, SP_CSS_FONT_SIZE_SMALLER, SP_CSS_UNIT_EM, SP_CSS_UNIT_EX, SP_FONT_SIZE_LENGTH, SP_FONT_SIZE_LITERAL, SP_FONT_SIZE_PERCENTAGE, type, unit, and value.
|
default |
|
overridevirtual |
Implements SPIBase.
Definition at line 2307 of file style-internal.cpp.
References computed, enum_font_size, SPIBase::inherit, key, SPStyleEnum::key, literal, SPIBase::set, SP_CSS_UNIT_PERCENT, SP_FONT_SIZE_LENGTH, SP_FONT_SIZE_LITERAL, SP_FONT_SIZE_PERCENTAGE, type, unit, SPStyleEnum::value, and value.
|
private |
Definition at line 2429 of file style-internal.cpp.
References literal, SP_CSS_FONT_SIZE_LARGER, SP_CSS_FONT_SIZE_SMALLER, SP_CSS_UNIT_EM, SP_CSS_UNIT_EX, SP_FONT_SIZE_LENGTH, SP_FONT_SIZE_LITERAL, SP_FONT_SIZE_PERCENTAGE, type, unit, and value.
Referenced by merge().
float SPIFontSize::computed |
Definition at line 984 of file style-internal.h.
Referenced by cascade(), SPIBaselineShift::cascade(), clear(), equals(), get_value(), merge(), and read().
|
static |
Definition at line 976 of file style-internal.h.
Referenced by SPILength::read().
|
staticprivate |
Indexed by SP_CSS_FONT_SIZE_blah.
These seem a bit small
Definition at line 2303 of file style-internal.h.
unsigned SPIFontSize::literal |
Definition at line 982 of file style-internal.h.
Referenced by cascade(), clear(), equals(), get_value(), merge(), read(), and relative_fraction().
unsigned SPIFontSize::type |
Definition at line 980 of file style-internal.h.
Referenced by cascade(), clear(), equals(), get_value(), merge(), read(), and relative_fraction().
unsigned SPIFontSize::unit |
Definition at line 981 of file style-internal.h.
Referenced by cascade(), clear(), get_value(), merge(), read(), and relative_fraction().
float SPIFontSize::value |
Definition at line 983 of file style-internal.h.
Referenced by cascade(), clear(), equals(), fix_blank_line(), fix_font_size(), get_value(), merge(), read(), and relative_fraction().