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 rightPANGO_ALIGN_CENTER; Center the line within the available spacePANGO_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 ellipsizationPANGO_ELLIPSIZE_START; Omit characters at the start of the textPANGO_ELLIPSIZE_MIDDLE; Omit characters in the middle of the textPANGO_ELLIPSIZE_END; Omit characters at the end of the text
PangoLayoutDeserializeError
Errors that can be returned by .Layout.deserialize().
PANGO_LAYOUT_DESERIALIZE_INVALID; Unspecified errorPANGO_LAYOUT_DESERIALIZE_INVALID_VALUE; A JSon value could not be interpretedPANGO_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 behaviorPANGO_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 behaviorPANGO_LAYOUT_SERIALIZE_CONTEXT; Include context informationPANGO_LAYOUT_SERIALIZE_OUTPUT; Include information about the formatted output