logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Pango::Layout - an object representing a paragraph of text with attributes

Enums And Flags

enumPango::Alignment
       •   'left' / 'PANGO_ALIGN_LEFT'

       •   'center' / 'PANGO_ALIGN_CENTER'

       •   'right' / 'PANGO_ALIGN_RIGHT'

   enumPango::EllipsizeMode
       •   'none' / 'PANGO_ELLIPSIZE_NONE'

       •   'start' / 'PANGO_ELLIPSIZE_START'

       •   'middle' / 'PANGO_ELLIPSIZE_MIDDLE'

       •   'end' / 'PANGO_ELLIPSIZE_END'

   enumPango::WrapMode
       •   'word' / 'PANGO_WRAP_WORD'

       •   'char' / 'PANGO_WRAP_CHAR'

       •   'word-char' / 'PANGO_WRAP_WORD_CHAR'

Hierarchy

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

Methods

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

   alignment=$layout->get_alignment$layout->set_alignment($alignment)
       •   $alignment (Pango::Alignment)

   attrlistorundef=$layout->get_attributes$layout->set_attributes($attrs)
       •   $attrs (Pango::AttrList or undef)

   boolean=$layout->get_auto_dir
       Since: pango 1.4

   $layout->set_auto_dir($auto_dir)
       •   $auto_dir (boolean)

       Since: pango 1.4

   integer=$layout->get_baseline
       Since: pango 1.22

   $layout->context_changedcontext=$layout->get_contextlayout=$src->copy(strong_pos,weak_pos)=$layout->get_cursor_pos($index)
       •   $index_ (integer)

   ellipsizemode=$layout->get_ellipsize
       Since: pango 1.6

   $layout->set_ellipsize($ellipsize)
       •   $ellipsize (Pango::EllipsizeMode)

       Since: pango 1.6

   (ink_rect,logical_rect)=$layout->get_extents(ink_rect,logical_rect)=$layout->get_pixel_extentsfontdescriptionorundef=$layout->get_font_description
       Since: pango 1.8

   $layout->set_font_description($desc)
       •   $desc (Pango::FontDescription or undef)

   integer=$layout->get_height
       Since: pango 1.20

   $layout->set_height($height)
       •   $height (integer)

       Since: pango 1.20

   integer=$layout->get_indent$layout->set_indent($newval)
       •   $newval (integer)

   arrayreference=$layout->index_to_pos($index_)
       •   $index_ (integer)

   boolean=$layout->is_ellipsized
       Since: pango 1.16

   boolean=$layout->is_wrapped
       Since: pango 1.16

   layoutiter=$layout->get_iterinteger=$layout->get_justify$layout->set_justify($newval)
       •   $newval (integer)

   integer=$layout->get_line_countlayoutlineorundef=$layout->get_line($line)
       •   $line (integer)

   layoutlineorundef=$layout->get_line_readonly($line)
       •   $line (integer)

       Since: pango 1.16

   list=$layout->get_lineslist=$layout->get_lines_readonly
       Since: pango 1.16

   list=$layout->get_log_attrs
       Returns a list of Pango::LogAttr's

   $layout->set_markup($markup)
       •   $markup (string)

   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)
       •   $strong (boolean)

       •   $old_index (integer)

       •   $old_trailing (integer)

       •   $direction (integer)

   list=$layout->get_pixel_extents(width,height)=$layout->get_pixel_sizeinteger=$layout->get_single_paragraph_mode$layout->set_single_paragraph_mode($newval)
       •   $newval (integer)

   (width,height)=$layout->get_sizeinteger=$layout->get_spacing$layout->set_spacing($newval)
       •   $newval (integer)

   tabarrayorundef=$layout->get_tabs$layout->set_tabs($tabs)
       •   $tabs (Pango::TabArray or undef)

   string=$layout->get_text$layout->set_text($text)
       •   $text (string)

   integer=$layout->get_unknown_glyphs_count
       Since: pango 1.16

   integer=$layout->get_width$layout->set_width($newval)
       •   $newval (integer)

   wrapmode=$layout->get_wrap$layout->set_wrap($wrap)
       •   $wrap (Pango::WrapMode)

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

       •   $y (integer)

Name

       Pango::Layout - an object representing a paragraph of text with attributes

See Also

       Pango, Glib::Object

See Also