Inkscape
Vector Graphics Editor
|
Represents a text item in the input stream. More...
#include <Layout-TNG.h>
Public Member Functions | |
InputStreamItemType | Type () const override |
~InputStreamTextSource () override | |
PangoFontDescription * | styleGetFontDescription () const |
The return value must be freed with pango_font_description_free() | |
std::shared_ptr< FontInstance > | styleGetFontInstance () const |
Direction | styleGetBlockProgression () const |
SPCSSTextOrientation | styleGetTextOrientation () const |
SPCSSBaseline | styleGetDominantBaseline () const |
Alignment | styleGetAlignment (Direction para_direction, bool try_text_align) const |
![]() | |
virtual | ~InputStreamItem ()=default |
Public Attributes | |
Glib::ustring const * | text |
Glib::ustring::const_iterator | text_begin |
owned by the caller | |
Glib::ustring::const_iterator | text_end |
int | text_length |
SPStyle * | style |
in characters, from text_start to text_end only | |
sigc::scoped_connection | style_conn |
std::vector< SVGLength > | x |
These vectors can (often will) be shorter than the text in this source, but never longer. | |
std::vector< SVGLength > | y |
std::vector< SVGLength > | dx |
std::vector< SVGLength > | dy |
std::vector< SVGLength > | rotate |
SVGLength | textLength |
LengthAdjust | lengthAdjust |
Glib::ustring | lang |
![]() | |
SPObject * | source |
Represents a text item in the input stream.
See _input_stream. Most of the members are copies of the values passed to appendText().
Definition at line 700 of file Layout-TNG.h.
|
overridedefault |
Layout::Alignment Inkscape::Text::Layout::InputStreamTextSource::styleGetAlignment | ( | Layout::Direction | para_direction, |
bool | try_text_align | ||
) | const |
Definition at line 167 of file Layout-TNG-Input.cpp.
References Inkscape::Text::Layout::CENTER, Inkscape::Text::Layout::FULL, Inkscape::Text::Layout::LEFT, Inkscape::Text::Layout::LEFT_TO_RIGHT, SPStyle::object, SPObject::parent, Inkscape::Text::Layout::RIGHT, SP_CSS_TEXT_ALIGN_CENTER, SP_CSS_TEXT_ALIGN_END, SP_CSS_TEXT_ALIGN_JUSTIFY, SP_CSS_TEXT_ALIGN_LEFT, SP_CSS_TEXT_ALIGN_RIGHT, SP_CSS_TEXT_ALIGN_START, SPObject::style, SPStyle::text_align, SPStyle::text_anchor, and Inkscape::Text::text_anchor_to_alignment().
Layout::Direction Inkscape::Text::Layout::InputStreamTextSource::styleGetBlockProgression | ( | ) | const |
Definition at line 128 of file Layout-TNG-Input.cpp.
References Inkscape::Text::Layout::LEFT_TO_RIGHT, Inkscape::Text::Layout::RIGHT_TO_LEFT, SP_CSS_WRITING_MODE_LR_TB, SP_CSS_WRITING_MODE_RL_TB, SP_CSS_WRITING_MODE_TB_LR, SP_CSS_WRITING_MODE_TB_RL, style, Inkscape::Text::Layout::TOP_TO_BOTTOM, and SPStyle::writing_mode.
SPCSSBaseline Inkscape::Text::Layout::InputStreamTextSource::styleGetDominantBaseline | ( | ) | const |
Definition at line 152 of file Layout-TNG-Input.cpp.
PangoFontDescription * Inkscape::Text::Layout::InputStreamTextSource::styleGetFontDescription | ( | ) | const |
The return value must be freed with pango_font_description_free()
Definition at line 209 of file Layout-TNG-Input.cpp.
References Inkscape::Util::EnableSingleton< FontFactory >::get(), and ink_font_description_from_style().
std::shared_ptr< FontInstance > Inkscape::Text::Layout::InputStreamTextSource::styleGetFontInstance | ( | ) | const |
Definition at line 200 of file Layout-TNG-Input.cpp.
References FontFactory::Face(), and Inkscape::Util::EnableSingleton< FontFactory >::get().
Referenced by Inkscape::Text::Layout::_calculateCursorShapeForEmpty().
SPCSSTextOrientation Inkscape::Text::Layout::InputStreamTextSource::styleGetTextOrientation | ( | ) | const |
Definition at line 147 of file Layout-TNG-Input.cpp.
|
inlineoverridevirtual |
Implements Inkscape::Text::Layout::InputStreamItem.
Definition at line 702 of file Layout-TNG.h.
References Inkscape::Text::Layout::TEXT_SOURCE.
std::vector<SVGLength> Inkscape::Text::Layout::InputStreamTextSource::dx |
Definition at line 713 of file Layout-TNG.h.
Referenced by Inkscape::Text::Layout::appendText().
std::vector<SVGLength> Inkscape::Text::Layout::InputStreamTextSource::dy |
Definition at line 714 of file Layout-TNG.h.
Referenced by Inkscape::Text::Layout::appendText().
Glib::ustring Inkscape::Text::Layout::InputStreamTextSource::lang |
Definition at line 718 of file Layout-TNG.h.
LengthAdjust Inkscape::Text::Layout::InputStreamTextSource::lengthAdjust |
Definition at line 717 of file Layout-TNG.h.
Referenced by Inkscape::Text::Layout::appendText().
std::vector<SVGLength> Inkscape::Text::Layout::InputStreamTextSource::rotate |
Definition at line 715 of file Layout-TNG.h.
Referenced by Inkscape::Text::Layout::appendText().
SPStyle* Inkscape::Text::Layout::InputStreamTextSource::style |
in characters, from text_start to text_end only
Definition at line 707 of file Layout-TNG.h.
Referenced by Inkscape::Text::Layout::appendText(), Inkscape::Text::Layout::print(), Inkscape::Text::Layout::show(), Inkscape::Text::Layout::showGlyphs(), and styleGetBlockProgression().
sigc::scoped_connection Inkscape::Text::Layout::InputStreamTextSource::style_conn |
Definition at line 708 of file Layout-TNG.h.
Referenced by Inkscape::Text::Layout::appendText().
Glib::ustring const* Inkscape::Text::Layout::InputStreamTextSource::text |
Definition at line 704 of file Layout-TNG.h.
Referenced by Inkscape::Text::Layout::appendText(), and Inkscape::Text::Layout::getSourceOfCharacter().
Glib::ustring::const_iterator Inkscape::Text::Layout::InputStreamTextSource::text_begin |
owned by the caller
Definition at line 705 of file Layout-TNG.h.
Referenced by Inkscape::Text::Layout::appendText().
Glib::ustring::const_iterator Inkscape::Text::Layout::InputStreamTextSource::text_end |
Definition at line 705 of file Layout-TNG.h.
Referenced by Inkscape::Text::Layout::appendText().
int Inkscape::Text::Layout::InputStreamTextSource::text_length |
Definition at line 706 of file Layout-TNG.h.
Referenced by Inkscape::Text::Layout::appendText().
SVGLength Inkscape::Text::Layout::InputStreamTextSource::textLength |
Definition at line 716 of file Layout-TNG.h.
Referenced by Inkscape::Text::Layout::appendText().
std::vector<SVGLength> Inkscape::Text::Layout::InputStreamTextSource::x |
These vectors can (often will) be shorter than the text in this source, but never longer.
Definition at line 711 of file Layout-TNG.h.
Referenced by Inkscape::Text::Layout::appendText().
std::vector<SVGLength> Inkscape::Text::Layout::InputStreamTextSource::y |
Definition at line 712 of file Layout-TNG.h.
Referenced by Inkscape::Text::Layout::appendText().