Pango::Layout(3)

πŸ’… Pango::Layout(3) β€” the wrapper bestie πŸ’…

okay so bestie, this page comes from the User Contributed Perl Documentation, and it's all about Pango::Layout β€” the wrapper for PangoLayout. It's giving main-character text-layout energy, no cap. πŸ’–


πŸŽ€ NAME πŸŽ€

Pango::Layout β€” wrapper for PangoLayout. Slay. ✨


🌈 HIERARCHY 🌈

Here's the family tree, and yes it's iconic:

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

✨ METHODS ✨

okay bestie, here's the whole method buffet. Every signature is copied exactly β€” no renaming, no merging, no invented options. πŸ’…

  • layout = Pango::Layout->new ($context) β€” new layout time. 🌸
    • $context (Pango::Context)
  • alignment = $layout->get_alignment / $layout->set_alignment ($alignment) β€” alignment getter/setter duo. πŸ’–
    • $alignment (Pango::Alignment)
  • attrlist or undef = $layout->get_attributes / $layout->set_attributes ($attrs) β€” attributes getter/setter duo. πŸŽ€
    • $attrs (Pango::AttrList or undef)
  • boolean = $layout->get_auto_dir β€” auto-dir getter. ✨ Since: pango 1.4
  • $layout->set_auto_dir ($auto_dir) β€” auto-dir setter. πŸ’…
    • $auto_dir (boolean)
    • Since: pango 1.4
  • integer = $layout->get_baseline β€” baseline getter. Since: pango 1.22
  • $layout->context_changed β€” context changed notification. πŸ¦‹
  • context = $layout->get_context β€” context getter.
  • layout = $src->copy β€” copy the layout. πŸŽ€
  • (strong_pos, weak_pos) = $layout->get_cursor_pos ($index) β€” cursor position, strong and weak. 🌈
    • $index_ (integer)
  • ellipsizemode = $layout->get_ellipsize β€” ellipsize getter. Since: pango 1.6
  • $layout->set_ellipsize ($ellipsize) β€” ellipsize setter. πŸ’…
    • $ellipsize (Pango::EllipsizeMode)
    • Since: pango 1.6
  • (ink_rect, logical_rect) = $layout->get_extents β€” extents getter. ✨
  • (ink_rect, logical_rect) = $layout->get_pixel_extents β€” pixel extents getter. 🌸
  • fontdescription or undef = $layout->get_font_description β€” font description getter. Since: pango 1.8
  • $layout->set_font_description ($desc) β€” font description setter. πŸ’–
    • $desc (Pango::FontDescription or undef)
  • integer = $layout->get_height β€” height getter. Since: pango 1.20
  • $layout->set_height ($height) β€” height setter. πŸ¦‹
    • $height (integer)
    • Since: pango 1.20
  • integer = $layout->get_indent β€” indent getter.
  • $layout->set_indent ($newval) β€” indent setter. πŸŽ€
    • $newval (integer)
  • array reference = $layout->index_to_pos ($index_) β€” index to position. ✨
    • $index_ (integer)
  • boolean = $layout->is_ellipsized β€” is it ellipsized? Since: pango 1.16
  • boolean = $layout->is_wrapped β€” is it wrapped? Since: pango 1.16
  • layoutiter = $layout->get_iter β€” iter getter. 🌈
  • integer = $layout->get_justify β€” justify getter.
  • $layout->set_justify ($newval) β€” justify setter. πŸ’…
    • $newval (integer)
  • integer = $layout->get_line_count β€” line count getter. πŸŽ€
  • layoutline or undef = $layout->get_line ($line) β€” line getter.
    • $line (integer)
  • layoutline or undef = $layout->get_line_readonly ($line) β€” readonly line getter. ✨
    • $line (integer)
    • Since: pango 1.16
  • list = $layout->get_lines β€” lines list. 🌸
  • list = $layout->get_lines_readonly β€” readonly lines list. Since: pango 1.16
  • list = $layout->get_log_attrs β€” log attrs list. Returns a list of Pango::LogAttr's. πŸ’–
  • $layout->set_markup ($markup) β€” set markup. ✨
    • $markup (string)
  • accel_char = $layout->set_markup_with_accel ($markup, $accel_marker) β€” markup with accel, returns accel_char. πŸ¦‹
    • $markup (string)
    • $accel_marker (character)
  • (new_index, new_trailing) = $layout->move_cursor_visually ($strong, $old_index, $old_trailing, $direction) β€” move cursor visually. 🌈
    • $strong (boolean)
    • $old_index (integer)
    • $old_trailing (integer)
    • $direction (integer)
  • list = $layout->get_pixel_extents β€” yep, get_pixel_extents shows up again in the original as a list, so here it is again. πŸ’…
  • (width, height) = $layout->get_pixel_size β€” pixel size. πŸŽ€
  • integer = $layout->get_single_paragraph_mode β€” single-paragraph-mode getter. ✨
  • $layout->set_single_paragraph_mode ($newval) β€” single-paragraph-mode setter. πŸ’–
    • $newval (integer)
  • (width, height) = $layout->get_size β€” size getter. 🌸
  • integer = $layout->get_spacing β€” spacing getter.
  • $layout->set_spacing ($newval) β€” spacing setter. πŸ¦‹
    • $newval (integer)
  • tabarray or undef = $layout->get_tabs β€” tabs getter.
  • $layout->set_tabs ($tabs) β€” tabs setter. πŸ’…
    • $tabs (Pango::TabArray or undef)
  • string = $layout->get_text β€” text getter.
  • $layout->set_text ($text) β€” text setter. πŸŽ€
    • $text (string)
  • integer = $layout->get_unknown_glyphs_count β€” unknown glyphs count. Since: pango 1.16
  • integer = $layout->get_width β€” width getter.
  • $layout->set_width ($newval) β€” width setter. ✨
    • $newval (integer)
  • wrapmode = $layout->get_wrap β€” wrap getter.
  • $layout->set_wrap ($wrap) β€” wrap setter. πŸ’–
    • $wrap (Pango::WrapMode)
  • (index, trailing) = $layout->xy_to_index ($x, $y) β€” xy to index. 🌈
    • $x (integer)
    • $y (integer)

πŸ¦‹ ENUMS AND FLAGS πŸ¦‹

okay bestie, here are the enum/flag vibes. Names and values are exact. πŸ’…

πŸŽ€ enum Pango::Alignment πŸŽ€

  • 'left' / 'PANGO_ALIGN_LEFT' β€” left alignment, naturally. 🌸
  • 'center' / 'PANGO_ALIGN_CENTER' β€” center alignment. πŸ’–
  • 'right' / 'PANGO_ALIGN_RIGHT' β€” right alignment. ✨

πŸŽ€ enum Pango::EllipsizeMode πŸŽ€

  • 'none' / 'PANGO_ELLIPSIZE_NONE' β€” no ellipsize mode. πŸ¦‹
  • 'start' / 'PANGO_ELLIPSIZE_START' β€” start ellipsize mode. 🌈
  • 'middle' / 'PANGO_ELLIPSIZE_MIDDLE' β€” middle ellipsize mode. πŸ’…
  • 'end' / 'PANGO_ELLIPSIZE_END' β€” end ellipsize mode. πŸŽ€

πŸŽ€ enum Pango::WrapMode πŸŽ€

  • 'word' / 'PANGO_WRAP_WORD' β€” word wrap mode. 🌸
  • 'char' / 'PANGO_WRAP_CHAR' β€” char wrap mode. ✨
  • 'word-char' / 'PANGO_WRAP_WORD_CHAR' β€” word-char wrap mode. πŸ’–
  • 'none' / 'PANGO_WRAP_NONE' β€” no wrap mode. πŸ¦‹

πŸ”₯ SEE ALSO πŸ”₯

  • Pango
  • Glib::Object

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

This software is licensed under the LGPL. See Pango for a full notice. πŸ’–


okay that's the whole page, bestie! It's from perl v5.42.0, dated 2019-09-16, and the title is Pango::Layout(3). Bye and slay! πŸ’…βœ¨

πŸ“¦ where this page comes from