Gtk2::Pango::Layout.3pm

Langue: en

Version: 2008-02-12 (mandriva - 01/05/08)

Section: 3 (Bibliothèques de fonctions)

NAME

Gtk2::Pango::Layout

HIERARCHY

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

METHODS


layout = Gtk2::Pango::Layout->new ($context)

$context (Gtk2::Pango::Context)

alignment = $layout->get_alignment


alignment = $layout->get_alignment


$layout->set_alignment ($alignment)


$layout->set_alignment ($alignment)

$alignment (Gtk2::Pango::Alignment)

attrlist = $layout->get_attributes


attrlist = $layout->get_attributes


$layout->set_attributes ($attrs)


$layout->set_attributes ($attrs)

$attrs (Gtk2::Pango::AttrList)

boolean = $layout->get_auto_dir


boolean = $layout->get_auto_dir

Since: pango 1.4

$layout->set_auto_dir ($auto_dir)


$layout->set_auto_dir ($auto_dir)

$auto_dir (boolean)

Since: pango 1.4

$layout->context_changed


$layout->context_changed


context = $layout->get_context


context = $layout->get_context


layout = $src->copy


layout = $src->copy


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


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

$index_ (integer)

ellipsizemode = $layout->get_ellipsize


ellipsizemode = $layout->get_ellipsize

Since: pango 1.6

$layout->set_ellipsize ($ellipsize)


$layout->set_ellipsize ($ellipsize)

$ellipsize (Gtk2::Pango::EllipsizeMode)

Since: pango 1.6

(ink_rect, logical_rect) = $layout->get_extents


(ink_rect, logical_rect) = $layout->get_extents


(ink_rect, logical_rect) = $layout->get_pixel_extents


(ink_rect, logical_rect) = $layout->get_pixel_extents


fontdescription or undef = $layout->get_font_description


fontdescription or undef = $layout->get_font_description

Since: pango 1.8

$layout->set_font_description ($desc)


$layout->set_font_description ($desc)

$desc (Gtk2::Pango::FontDescription or undef)

integer = $layout->get_height


integer = $layout->get_height

Since: pango 1.19

$layout->set_height ($height)


$layout->set_height ($height)

$height (integer)

Since: pango 1.19

integer = $layout->get_indent


integer = $layout->get_indent


$layout->set_indent ($newval)


$layout->set_indent ($newval)

$newval (integer)

array reference = $layout->index_to_pos ($index_)


array reference = $layout->index_to_pos ($index_)

$index_ (integer)

boolean = $layout->is_ellipsized


boolean = $layout->is_ellipsized

Since: pango 1.16

boolean = $layout->is_wrapped


boolean = $layout->is_wrapped

Since: pango 1.16

layoutiter = $layout->get_iter


layoutiter = $layout->get_iter


integer = $layout->get_justify


integer = $layout->get_justify


$layout->set_justify ($newval)


$layout->set_justify ($newval)

$newval (integer)

integer = $layout->get_line_count


integer = $layout->get_line_count


layoutline or undef = $layout->get_line ($line)


layoutline or undef = $layout->get_line ($line)

$line (integer)

layoutline or undef = $layout->get_line_readonly ($line)


layoutline or undef = $layout->get_line_readonly ($line)

$line (integer)

Since: pango 1.16

list = $layout->get_lines


list = $layout->get_lines


list = $layout->get_lines_readonly


list = $layout->get_lines_readonly

Since: pango 1.16

list = $layout->get_log_attrs


list = $layout->get_log_attrs

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

$layout->set_markup ($markup)


$layout->set_markup ($markup)

$markup (string)

accel_char = $layout->set_markup_with_accel ($markup, $accel_marker)


accel_char = $layout->set_markup_with_accel ($markup, $accel_marker)

$markup (string)
$accel_marker (character)

(new_index, new_trailing) = $layout->move_cursor_visually ($strong, $old_index, $old_trailing, $direction)


(new_index, new_trailing) = $layout->move_cursor_visually ($strong, $old_index, $old_trailing, $direction)

$strong (boolean)
$old_index (integer)
$old_trailing (integer)
$direction (integer)

list = $layout->get_pixel_extents


list = $layout->get_pixel_extents


(width, height) = $layout->get_pixel_size


(width, height) = $layout->get_pixel_size


integer = $layout->get_single_paragraph_mode


integer = $layout->get_single_paragraph_mode


$layout->set_single_paragraph_mode ($newval)


$layout->set_single_paragraph_mode ($newval)

$newval (integer)

(width, height) = $layout->get_size


(width, height) = $layout->get_size


integer = $layout->get_spacing


integer = $layout->get_spacing


$layout->set_spacing ($newval)


$layout->set_spacing ($newval)

$newval (integer)

tabarray or undef = $layout->get_tabs


tabarray or undef = $layout->get_tabs


$layout->set_tabs ($tabs)


$layout->set_tabs ($tabs)

$tabs (Gtk2::Pango::TabArray or undef)

string = $layout->get_text


string = $layout->get_text


$layout->set_text ($text)


$layout->set_text ($text)

$text (string)

integer = $layout->get_unknown_glyphs_count


integer = $layout->get_unknown_glyphs_count

Since: pango 1.16

integer = $layout->get_width


integer = $layout->get_width


$layout->set_width ($newval)


$layout->set_width ($newval)

$newval (integer)

wrapmode = $layout->get_wrap


wrapmode = $layout->get_wrap


$layout->set_wrap ($wrap)


$layout->set_wrap ($wrap)

$wrap (Gtk2::Pango::WrapMode)

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


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

$x (integer)
$y (integer)

ENUMS AND FLAGS


enum Gtk2::Pango::Alignment

'left' / 'PANGO_ALIGN_LEFT'
'center' / 'PANGO_ALIGN_CENTER'
'right' / 'PANGO_ALIGN_RIGHT'

enum Gtk2::Pango::EllipsizeMode

'none' / 'PANGO_ELLIPSIZE_NONE'
'start' / 'PANGO_ELLIPSIZE_START'
'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
'end' / 'PANGO_ELLIPSIZE_END'

enum Gtk2::Pango::WrapMode

'word' / 'PANGO_WRAP_WORD'
'char' / 'PANGO_WRAP_CHAR'
'word-char' / 'PANGO_WRAP_WORD_CHAR'

SEE ALSO

Gtk2, Glib::Object Copyright (C) 2003-2007 by the gtk2-perl team.

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