![]() |
![]()
| ![]() |
![]()
NAMEPango::Layout - wrapper for PangoLayout HIERARCHYGlib::Object +----Pango::Layout METHODSlayout = Pango::Layout->new ($context)
alignment = $layout->get_alignment$layout->set_alignment ($alignment)
attrlist or undef = $layout->get_attributes$layout->set_attributes ($attrs)
boolean = $layout->get_auto_dirSince: pango 1.4 $layout->set_auto_dir ($auto_dir)
Since: pango 1.4 integer = $layout->get_baselineSince: pango 1.22 $layout->context_changedcontext = $layout->get_contextlayout = $src->copy(strong_pos, weak_pos) = $layout->get_cursor_pos ($index)
ellipsizemode = $layout->get_ellipsizeSince: pango 1.6 $layout->set_ellipsize ($ellipsize)
Since: pango 1.6 (ink_rect, logical_rect) = $layout->get_extents(ink_rect, logical_rect) = $layout->get_pixel_extentsfontdescription or undef = $layout->get_font_descriptionSince: pango 1.8 $layout->set_font_description ($desc)
integer = $layout->get_heightSince: pango 1.20 $layout->set_height ($height)
Since: pango 1.20 integer = $layout->get_indent$layout->set_indent ($newval)
array reference = $layout->index_to_pos ($index_)
boolean = $layout->is_ellipsizedSince: pango 1.16 boolean = $layout->is_wrappedSince: pango 1.16 layoutiter = $layout->get_iterinteger = $layout->get_justify$layout->set_justify ($newval)
integer = $layout->get_line_countlayoutline or undef = $layout->get_line ($line)
layoutline or undef = $layout->get_line_readonly ($line)
Since: pango 1.16 list = $layout->get_lineslist = $layout->get_lines_readonlySince: pango 1.16 list = $layout->get_log_attrsReturns a list of Pango::LogAttr's $layout->set_markup ($markup)
accel_char = $layout->set_markup_with_accel ($markup, $accel_marker)
(new_index, new_trailing) = $layout->move_cursor_visually ($strong, $old_index, $old_trailing, $direction)
list = $layout->get_pixel_extents(width, height) = $layout->get_pixel_sizeinteger = $layout->get_single_paragraph_mode$layout->set_single_paragraph_mode ($newval)
(width, height) = $layout->get_sizeinteger = $layout->get_spacing$layout->set_spacing ($newval)
tabarray or undef = $layout->get_tabs$layout->set_tabs ($tabs)
string = $layout->get_text$layout->set_text ($text)
integer = $layout->get_unknown_glyphs_countSince: pango 1.16 integer = $layout->get_width$layout->set_width ($newval)
wrapmode = $layout->get_wrap$layout->set_wrap ($wrap)
(index, trailing) = $layout->xy_to_index ($x, $y)
ENUMS AND FLAGSenum Pango::Alignment
enum Pango::EllipsizeMode
enum Pango::WrapMode
SEE ALSOPango, Glib::Object COPYRIGHTCopyright (C) 2003-2011 by the gtk2-perl team. This software is licensed under the LGPL. See Pango for a full notice.
|