=head1 NAME

Gtk2::Pango::Layout

=head1 HIERARCHY

  Glib::Object
  +----Gtk2::Pango::Layout


=head1 METHODS

=head2 layout = Gtk2::Pango::Layout-E<gt>B<new> ($context)

=over

=over

=item * $context (Gtk2::Pango::Context) 

=back

=back

=head2 alignment = $layout-E<gt>B<get_alignment> 

=over

=back

=head2 $layout-E<gt>B<set_alignment> ($alignment)

=over

=over

=item * $alignment (Gtk2::Pango::Alignment) 

=back

=back

=head2 attrlist = $layout-E<gt>B<get_attributes> 

=over

=back

=head2 $layout-E<gt>B<set_attributes> ($attrs)

=over

=over

=item * $attrs (Gtk2::Pango::AttrList) 

=back

=back

=head2 boolean = $layout-E<gt>B<get_auto_dir> 

=over

Since: pango 1.4

=back

=head2 $layout-E<gt>B<set_auto_dir> ($auto_dir)

=over

=over

=item * $auto_dir (boolean) 

=back

Since: pango 1.4

=back

=head2 $layout-E<gt>B<context_changed> 

=over

=back

=head2 context = $layout-E<gt>B<get_context> 

=over

=back

=head2 layout = $src-E<gt>B<copy> 

=over

=back

=head2 (strong_pos, weak_pos) = $layout->B<get_cursor_pos> ($index)

=over

=over

=item * $index_ (integer) 

=back



=back

=head2 ellipsizemode = $layout-E<gt>B<get_ellipsize> 

=over

Since: pango 1.6

=back

=head2 $layout-E<gt>B<set_ellipsize> ($ellipsize)

=over

=over

=item * $ellipsize (Gtk2::Pango::EllipsizeMode) 

=back

Since: pango 1.6

=back

=head2 (ink_rect, logical_rect) = $layout->B<get_extents>

=head2 (ink_rect, logical_rect) = $layout->B<get_pixel_extents>

=over



=back

=head2 fontdescription or undef = $layout-E<gt>B<get_font_description> 

=over

Since: pango 1.8

=back

=head2 $layout-E<gt>B<set_font_description> ($desc)

=over

=over

=item * $desc (Gtk2::Pango::FontDescription or undef) 

=back

=back

=head2 integer = $layout-E<gt>B<get_height> 

=over

Since: pango 1.20

=back

=head2 $layout-E<gt>B<set_height> ($height)

=over

=over

=item * $height (integer) 

=back

Since: pango 1.20

=back

=head2 integer = $layout-E<gt>B<get_indent> 

=over

=back

=head2 $layout-E<gt>B<set_indent> ($newval)

=over

=over

=item * $newval (integer) 

=back

=back

=head2 array reference = $layout-E<gt>B<index_to_pos> ($index_)

=over

=over

=item * $index_ (integer) 

=back

=back

=head2 boolean = $layout-E<gt>B<is_ellipsized> 

=over

Since: pango 1.16

=back

=head2 boolean = $layout-E<gt>B<is_wrapped> 

=over

Since: pango 1.16

=back

=head2 layoutiter = $layout-E<gt>B<get_iter> 

=over

=back

=head2 integer = $layout-E<gt>B<get_justify> 

=over

=back

=head2 $layout-E<gt>B<set_justify> ($newval)

=over

=over

=item * $newval (integer) 

=back

=back

=head2 integer = $layout-E<gt>B<get_line_count> 

=over

=back

=head2 layoutline or undef = $layout-E<gt>B<get_line> ($line)

=over

=over

=item * $line (integer) 

=back

=back

=head2 layoutline or undef = $layout-E<gt>B<get_line_readonly> ($line)

=over

=over

=item * $line (integer) 

=back

Since: pango 1.16

=back

=head2 list = $layout-E<gt>B<get_lines> 

=over

=back

=head2 list = $layout-E<gt>B<get_lines_readonly> 

=over

Since: pango 1.16

=back

=head2 list = $layout-E<gt>B<get_log_attrs> 

=over

Returns a list of Gtk2::Pango::LogAttr's

=back

=head2 $layout-E<gt>B<set_markup> ($markup)

=over

=over

=item * $markup (string) 

=back

=back

=head2 accel_char = $layout-E<gt>B<set_markup_with_accel> ($markup, $accel_marker)

=over

=over

=item * $markup (string) 

=item * $accel_marker (character) 

=back

=back

=head2 (new_index, new_trailing) = $layout-E<gt>B<move_cursor_visually> ($strong, $old_index, $old_trailing, $direction)

=over

=over

=item * $strong (boolean) 

=item * $old_index (integer) 

=item * $old_trailing (integer) 

=item * $direction (integer) 

=back

=back

=head2 list = $layout-E<gt>B<get_pixel_extents> 

=over

=back

=head2 (width, height) = $layout-E<gt>B<get_pixel_size> 

=over

=back

=head2 integer = $layout-E<gt>B<get_single_paragraph_mode> 

=over

=back

=head2 $layout-E<gt>B<set_single_paragraph_mode> ($newval)

=over

=over

=item * $newval (integer) 

=back

=back

=head2 (width, height) = $layout-E<gt>B<get_size> 

=over

=back

=head2 integer = $layout-E<gt>B<get_spacing> 

=over

=back

=head2 $layout-E<gt>B<set_spacing> ($newval)

=over

=over

=item * $newval (integer) 

=back

=back

=head2 tabarray or undef = $layout-E<gt>B<get_tabs> 

=over

=back

=head2 $layout-E<gt>B<set_tabs> ($tabs)

=over

=over

=item * $tabs (Gtk2::Pango::TabArray or undef) 

=back

=back

=head2 string = $layout-E<gt>B<get_text> 

=over

=back

=head2 $layout-E<gt>B<set_text> ($text)

=over

=over

=item * $text (string) 

=back

=back

=head2 integer = $layout-E<gt>B<get_unknown_glyphs_count> 

=over

Since: pango 1.16

=back

=head2 integer = $layout-E<gt>B<get_width> 

=over

=back

=head2 $layout-E<gt>B<set_width> ($newval)

=over

=over

=item * $newval (integer) 

=back

=back

=head2 wrapmode = $layout-E<gt>B<get_wrap> 

=over

=back

=head2 $layout-E<gt>B<set_wrap> ($wrap)

=over

=over

=item * $wrap (Gtk2::Pango::WrapMode) 

=back

=back

=head2 (index, trailing) = $layout->B<xy_to_index> ($x, $y)

=over

=over

=item * $x (integer) 

=item * $y (integer) 

=back



=back


=head1 ENUMS AND FLAGS

=head2 enum Gtk2::Pango::Alignment

=over

=item * 'left' / 'PANGO_ALIGN_LEFT'

=item * 'center' / 'PANGO_ALIGN_CENTER'

=item * 'right' / 'PANGO_ALIGN_RIGHT'

=back


=head2 enum Gtk2::Pango::EllipsizeMode

=over

=item * 'none' / 'PANGO_ELLIPSIZE_NONE'

=item * 'start' / 'PANGO_ELLIPSIZE_START'

=item * 'middle' / 'PANGO_ELLIPSIZE_MIDDLE'

=item * 'end' / 'PANGO_ELLIPSIZE_END'

=back


=head2 enum Gtk2::Pango::WrapMode

=over

=item * 'word' / 'PANGO_WRAP_WORD'

=item * 'char' / 'PANGO_WRAP_CHAR'

=item * 'word-char' / 'PANGO_WRAP_WORD_CHAR'

=back



=head1 SEE ALSO

L<Gtk2>, L<Glib::Object>

=head1 COPYRIGHT

Copyright (C) 2003-2008 by the gtk2-perl team.

This software is licensed under the LGPL.  See L<Gtk2> for a full notice.


=cut

