Gnome::Pango::T-layout

#------------------------------------------------------------------------------- #--[Record Structure Documentation]--------------------------------------------- #-------------------------------------------------------------------------------

Record N-LayoutLine

class N-LayoutLine:auth<github:MARTIMM>:api<2> is export is repr('CStruct') {
has N-Object $.layout;
    has gint $.start-index;
    has gint $.length;
    has N-Object $.runs;
    has guint $.is-paragraph-start;
    has guint $.resolved-dir;
  }
  • layout; the layout this line belongs to, might be undefined

  • start-index; start of line as byte index into layout->text

  • length; length of line in bytes

  • runs; list of runs in the line, from left to right

  • is-paragraph-start; #TRUE if this is the first line of the paragraph

  • resolved-dir; #Resolved PangoDirection of line

#------------------------------------------------------------------------------- #--[Record Structure]----------------------------------------------------------- #-------------------------------------------------------------------------------

Record N-LayoutIter

This is an opaque type of which fields are not available.

class N-LayoutIter:auth<github:MARTIMM>:api<2> is export is repr('CStruct') { }

#------------------------------------------------------------------------------- #--[Enumerations]--------------------------------------------------------------- #-------------------------------------------------------------------------------

Enumerations

PangoAlignment

enumeration PangoAlignment defined in Gnome::Pango::T-layout describes how to align the lines of a Gnome::Pango::Layout within the available space.

If the Gnome::Pango::Layout is set to justify using .set-justify(), this only affects partial lines.

See .set-auto-dir() for how text direction affects the interpretation of enumeration PangoAlignment defined in Gnome::Pango::T-layout values.

  • PANGO_ALIGN_LEFT; Put all available space on the right

  • PANGO_ALIGN_CENTER; Center the line within the available space

  • PANGO_ALIGN_RIGHT; Put all available space on the left

PangoEllipsizeMode

enumeration PangoEllipsizeMode defined in Gnome::Pango::T-layout describes what sort of ellipsization should be applied to text.

In the ellipsization process characters are removed from the text in order to make it fit to a given width and replaced with an ellipsis.

  • PANGO_ELLIPSIZE_NONE; No ellipsization

  • PANGO_ELLIPSIZE_START; Omit characters at the start of the text

  • PANGO_ELLIPSIZE_MIDDLE; Omit characters in the middle of the text

  • PANGO_ELLIPSIZE_END; Omit characters at the end of the text

PangoLayoutDeserializeError

Errors that can be returned by .Layout.deserialize().

  • PANGO_LAYOUT_DESERIALIZE_INVALID; Unspecified error

  • PANGO_LAYOUT_DESERIALIZE_INVALID_VALUE; A JSon value could not be interpreted

  • PANGO_LAYOUT_DESERIALIZE_MISSING_VALUE; A required JSon member was not found

PangoWrapMode

enumeration PangoWrapMode defined in Gnome::Pango::T-layout describes how to wrap the lines of a Gnome::Pango::Layout to the desired width.

For $PANGO-WRAP-WORD, Pango uses break opportunities that are determined by the Unicode line breaking algorithm. For $PANGO-WRAP-CHAR, Pango allows breaking at grapheme boundaries that are determined by the Unicode text segmentation algorithm.

  • PANGO_WRAP_WORD; wrap lines at word boundaries.

  • PANGO_WRAP_CHAR; wrap lines at character boundaries.

  • PANGO_WRAP_WORD_CHAR; wrap lines at word boundaries, but fall back to character boundaries if there is not enough space for a full word.

#------------------------------------------------------------------------------- #--[Bitfields]------------------------------------------------------------------ #-------------------------------------------------------------------------------

Bitfields

PangoLayoutDeserializeFlags

Flags that influence the behavior of .Layout.deserialize().

New members may be added to this enumeration over time.

  • PANGO_LAYOUT_DESERIALIZE_DEFAULT; Default behavior

  • PANGO_LAYOUT_DESERIALIZE_CONTEXT; Apply context information from the serialization to the Gnome::Pango::Context

PangoLayoutSerializeFlags

Flags that influence the behavior of .serialize().

New members may be added to this enumeration over time.

  • PANGO_LAYOUT_SERIALIZE_DEFAULT; Default behavior

  • PANGO_LAYOUT_SERIALIZE_CONTEXT; Include context information

  • PANGO_LAYOUT_SERIALIZE_OUTPUT; Include information about the formatted output

Gnome::Pango v0.1.14

Modules for package Gnome::Pango:api<2>. The language binding to Pango: Internationalized text layout and rendering

Authors

  • Marcel Timmerman

License

Artistic-2.0

Dependencies

Gnome::GObject:api<2>Gnome::Glib:api<2>Gnome::N:api<2>

Test Dependencies

Provides

  • Gnome::Pango::Context
  • Gnome::Pango::Layout
  • Gnome::Pango::N-Language
  • Gnome::Pango::N-LayoutIter
  • Gnome::Pango::N-LayoutLine
  • Gnome::Pango::N-Matrix
  • Gnome::Pango::N-TabArray
  • Gnome::Pango::T-direction
  • Gnome::Pango::T-gravity
  • Gnome::Pango::T-layout
  • Gnome::Pango::T-matrix
  • Gnome::Pango::T-tabarray
  • Gnome::Pango::T-types

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.