|
Public Member Functions |
| virtual | ~Layout () |
| PangoLayout* | gobj () |
| | Provides access to the underlying C GObject.
|
| const PangoLayout* | gobj () const |
| | Provides access to the underlying C GObject.
|
| PangoLayout* | gobj_copy () |
| Glib::RefPtr<Layout> | copy () |
| Glib::RefPtr<Context> | get_context () const |
| void | set_attributes (AttrList& attrs) |
| AttrList | get_attributes () const |
| void | set_text (const Glib::ustring& text) |
| | Set the text of the layout.
|
| Glib::ustring | get_text () const |
| void | set_markup (const Glib::ustring& markup) |
| | Sets the layout text and attribute list from marked-up text (see markup format).
|
| void | set_markup (const Glib::ustring& markup, gunichar accel_marker, gunichar& accel_char) |
| | Sets the layout text and attribute list from marked-up text (see markup format).
|
| void | set_font_description (const FontDescription& desc) |
| void | unset_font_description () |
| void | set_width (int width) |
| int | get_width () const |
| void | set_wrap (WrapMode wrap) |
| WrapMode | get_wrap () const |
| void | set_indent (int indent) |
| int | get_indent () const |
| void | set_spacing (int spacing) |
| int | get_spacing () const |
| void | set_justify (bool justify=true) |
| bool | get_justify () const |
| void | set_alignment (Alignment alignment) |
| Alignment | get_alignment () const |
| void | set_tabs (TabArray& tabs) |
| TabArray | get_tabs () const |
| void | set_single_paragraph_mode (bool setting=true) |
| bool | get_single_paragraph_mode () const |
| void | context_changed () |
| Glib::ArrayHandle<LogAttr> | get_log_attrs () const |
| | Retrieve an array of logical attributes for each character in the layout.
|
| Rectangle | index_to_pos (int index) const |
| | Convert from an index within the layout to the onscreen position corresponding to the grapheme at that index, which is represented as rectangle.
|
| void | get_cursor_pos (int index, Rectangle& strong_pos, Rectangle& weak_pos) const |
| Rectangle | get_cursor_strong_pos (int index) const |
| | Given an index within the layout, determine the positions that of the strong cursors if the insertion point is at that index.
|
| Rectangle | get_cursor_weak_pos (int index) const |
| | Given an index within the layout, determine the positions that of the weak cursors if the insertion point is at that index.
|
| void | move_cursor_visually (bool strong, int old_index, int old_trailing, int direction, int& new_index, int& new_trailing) const |
| bool | xy_to_index (int x, int y, int& index, int& trailing) const |
| void | get_extents (Rectangle& ink_rect, Rectangle& logical_rect) const |
| Rectangle | get_ink_extents () const |
| | Compute the ink extents of layout.
|
| Rectangle | get_logical_extents () const |
| | Compute the logical extents of layout.
|
| void | get_pixel_extents (Rectangle& ink_rect, Rectangle& logical_rect) const |
| Rectangle | get_pixel_ink_extents () const |
| | Compute the ink extents of the layout in device units.
|
| Rectangle | get_pixel_logical_extents () const |
| | Compute the logical extents of the layout in device units.
|
| void | get_size (int& width, int& height) const |
| void | get_pixel_size (int& width, int& height) const |
| int | get_line_count () const |
| Glib::RefPtr<LayoutLine> | get_line (int line) const |
| SListHandle_LayoutLine | get_lines () const |
| void | get_iter (LayoutIter& iter) |
| | Gets an iterator to iterate over the visual extents of the layout.
|
Static Public Member Functions |
| Glib::RefPtr<Layout> | create (const Glib::RefPtr<Context>& context) |
Protected Member Functions |
| | Layout (const Glib::RefPtr<Context>& context) |
Related Functions |
(Note that these are not member functions.)
|
| Glib::RefPtr<Pango::Layout> | wrap (PangoLayout* object, bool take_copy=false) |