It can be measured or drawn to the screen.
|
Public Member Functions |
void | get_extents (int start, int end, const Glib::RefPtr<const Font>& font, Rectangle& ink_rect, Rectangle& logical_rect) const |
| Computes the extents of a sub-portion of a glyph string.
|
void | get_extents (const Glib::RefPtr<const Font>& font, Rectangle& ink_rect, Rectangle& logical_rect) const |
| Compute the logical and ink extents of a glyph string.
|
Glib::ArrayHandle<GlyphInfo> | get_glyphs () const |
| Gharacter positions are computed by dividing up each cluster into equal portions.
|
Rectangle | get_ink_extents (int start, int end, const Glib::RefPtr<const Font>& font) const |
| Computes the extents of a sub-portion of the glyph string as drawn.
|
Rectangle | get_ink_extents (const Glib::RefPtr<const Font>& font) const |
| Computes the extents of the glyph string as drawn.
|
Rectangle | get_logical_extents (int start, int end, const Glib::RefPtr<const Font>& font) const |
| Computes the logical extents of a sub-portion of the glyph string.
|
Rectangle | get_logical_extents (const Glib::RefPtr<const Font>& font) const |
| Computes the logical extents of a sub-portion of the glyph string.
|
Glib::ArrayHandle<int> | get_logical_widths (const Glib::ustring& text, int embedding_level) const |
| Determine the screen width corresponding to each character.
|
| GlyphString (const Glib::ustring& text, const Analysis& analysis) |
| Construct a string of glyphs from a string of characters.
|
| GlyphString (const GlyphString& other) |
| GlyphString (PangoGlyphString* gobject, bool make_a_copy=true) |
| GlyphString () |
const PangoGlyphString* | gobj () const |
| Provides access to the underlying C instance.
|
PangoGlyphString* | gobj () |
| Provides access to the underlying C instance.
|
PangoGlyphString* | gobj_copy () const |
| Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
|
int | index_to_x (const Glib::ustring& text, const Analysis& analysis, int index, bool trailing) const |
| Converts from character position to x position.
|
GlyphString& | operator= (const GlyphString& other) |
void | set_size (int new_len) |
| Resize a glyph string to the given length.
|
void | swap (GlyphString& other) |
void | x_to_index (const Glib::ustring& text, const Analysis& analysis, int x_pos, int& index, bool& trailing) const |
| Convert from x offset to character position.
|
| ~GlyphString () |
Protected Attributes |
PangoGlyphString* | gobject_ |
Related Functions |
(Note that these are not member functions.)
|
void | swap (GlyphString& lhs, GlyphString& rhs) |
Pango::GlyphString | wrap (PangoGlyphString* object, bool take_copy=false) |