Structures
The following structures are available globally.
-
The
PangoAnalysis
structure stores information about the properties of a segment of text.The
See moreAnalysisRef
type acts as a lightweight Swift reference to an underlyingPangoAnalysis
instance. It exposes methods that can operate on this data type throughAnalysisProtocol
conformance. UseAnalysisRef
only as anunowned
reference to an existingPangoAnalysis
instance.Declaration
Swift
public struct AnalysisRef : AnalysisProtocol
-
The
PangoAttrClass
structure stores the type and operations for a particular type of attribute.The functions in this structure should not be called directly. Instead, one should use the wrapper functions provided for
PangoAttribute
.The
See moreAttrClassRef
type acts as a lightweight Swift reference to an underlyingPangoAttrClass
instance. It exposes methods that can operate on this data type throughAttrClassProtocol
conformance. UseAttrClassRef
only as anunowned
reference to an existingPangoAttrClass
instance.Declaration
Swift
public struct AttrClassRef : AttrClassProtocol
-
The
PangoAttrColor
structure is used to represent attributes that are colors.The
See moreAttrColorRef
type acts as a lightweight Swift reference to an underlyingPangoAttrColor
instance. It exposes methods that can operate on this data type throughAttrColorProtocol
conformance. UseAttrColorRef
only as anunowned
reference to an existingPangoAttrColor
instance.Declaration
Swift
public struct AttrColorRef : AttrColorProtocol
-
The
PangoAttrFloat
structure is used to represent attributes with a float or double value.The
See moreAttrFloatRef
type acts as a lightweight Swift reference to an underlyingPangoAttrFloat
instance. It exposes methods that can operate on this data type throughAttrFloatProtocol
conformance. UseAttrFloatRef
only as anunowned
reference to an existingPangoAttrFloat
instance.Declaration
Swift
public struct AttrFloatRef : AttrFloatProtocol
-
The
PangoAttrFontDesc
structure is used to store an attribute that sets all aspects of the font description at once.The
See moreAttrFontDescRef
type acts as a lightweight Swift reference to an underlyingPangoAttrFontDesc
instance. It exposes methods that can operate on this data type throughAttrFontDescProtocol
conformance. UseAttrFontDescRef
only as anunowned
reference to an existingPangoAttrFontDesc
instance.Declaration
Swift
public struct AttrFontDescRef : AttrFontDescProtocol
-
The
PangoAttrFontFeatures
structure is used to represent OpenType font features as an attribute.The
See moreAttrFontFeaturesRef
type acts as a lightweight Swift reference to an underlyingPangoAttrFontFeatures
instance. It exposes methods that can operate on this data type throughAttrFontFeaturesProtocol
conformance. UseAttrFontFeaturesRef
only as anunowned
reference to an existingPangoAttrFontFeatures
instance.Declaration
Swift
public struct AttrFontFeaturesRef : AttrFontFeaturesProtocol
-
The
PangoAttrInt
structure is used to represent attributes with an integer or enumeration value.The
See moreAttrIntRef
type acts as a lightweight Swift reference to an underlyingPangoAttrInt
instance. It exposes methods that can operate on this data type throughAttrIntProtocol
conformance. UseAttrIntRef
only as anunowned
reference to an existingPangoAttrInt
instance.Declaration
Swift
public struct AttrIntRef : AttrIntProtocol
-
A
PangoAttrIterator
is used to iterate through aPangoAttrList
.A new iterator is created with [method
Pango.AttrList.get_iterator
]. Once the iterator is created, it can be advanced through the style changes in the text using [methodPango.AttrIterator.next
]. At each style change, the range of the current style segment and the attributes currently in effect can be queried.The
See moreAttrIteratorRef
type acts as a lightweight Swift reference to an underlyingPangoAttrIterator
instance. It exposes methods that can operate on this data type throughAttrIteratorProtocol
conformance. UseAttrIteratorRef
only as anunowned
reference to an existingPangoAttrIterator
instance.Declaration
Swift
public struct AttrIteratorRef : AttrIteratorProtocol
-
The
PangoAttrLanguage
structure is used to represent attributes that are languages.The
See moreAttrLanguageRef
type acts as a lightweight Swift reference to an underlyingPangoAttrLanguage
instance. It exposes methods that can operate on this data type throughAttrLanguageProtocol
conformance. UseAttrLanguageRef
only as anunowned
reference to an existingPangoAttrLanguage
instance.Declaration
Swift
public struct AttrLanguageRef : AttrLanguageProtocol
-
A
PangoAttrList
represents a list of attributes that apply to a section of text.The attributes in a
PangoAttrList
are, in general, allowed to overlap in an arbitrary fashion. However, if the attributes are manipulated only through [methodPango.AttrList.change
], the overlap between properties will meet stricter criteria.Since the
PangoAttrList
structure is stored as a linear list, it is not suitable for storing attributes for large amounts of text. In general, you should not use a singlePangoAttrList
for more than one paragraph of text.The
See moreAttrListRef
type acts as a lightweight Swift reference to an underlyingPangoAttrList
instance. It exposes methods that can operate on this data type throughAttrListProtocol
conformance. UseAttrListRef
only as anunowned
reference to an existingPangoAttrList
instance.Declaration
Swift
public struct AttrListRef : AttrListProtocol
-
The
PangoAttrShape
structure is used to represent attributes which impose shape restrictions.The
See moreAttrShapeRef
type acts as a lightweight Swift reference to an underlyingPangoAttrShape
instance. It exposes methods that can operate on this data type throughAttrShapeProtocol
conformance. UseAttrShapeRef
only as anunowned
reference to an existingPangoAttrShape
instance.Declaration
Swift
public struct AttrShapeRef : AttrShapeProtocol
-
The
PangoAttrSize
structure is used to represent attributes which set font size.The
See moreAttrSizeRef
type acts as a lightweight Swift reference to an underlyingPangoAttrSize
instance. It exposes methods that can operate on this data type throughAttrSizeProtocol
conformance. UseAttrSizeRef
only as anunowned
reference to an existingPangoAttrSize
instance.Declaration
Swift
public struct AttrSizeRef : AttrSizeProtocol
-
The
PangoAttrString
structure is used to represent attributes with a string value.The
See moreAttrStringRef
type acts as a lightweight Swift reference to an underlyingPangoAttrString
instance. It exposes methods that can operate on this data type throughAttrStringProtocol
conformance. UseAttrStringRef
only as anunowned
reference to an existingPangoAttrString
instance.Declaration
Swift
public struct AttrStringRef : AttrStringProtocol
-
The
PangoAttribute
structure represents the common portions of all attributes.Particular types of attributes include this structure as their initial portion. The common portion of the attribute holds the range to which the value in the type-specific part of the attribute applies and should be initialized using [method
Pango.Attribute.init
]. By default, an attribute will have an all-inclusive range of [0,G_MAXUINT
].The
See moreAttributeRef
type acts as a lightweight Swift reference to an underlyingPangoAttribute
instance. It exposes methods that can operate on this data type throughAttributeProtocol
conformance. UseAttributeRef
only as anunowned
reference to an existingPangoAttribute
instance.Declaration
Swift
public struct AttributeRef : AttributeProtocol
-
A
PangoContext
stores global information used to control the itemization process.The information stored by
PangoContext
includes the fontmap used to look up fonts, and default values such as the default language, default gravity, or default font.To obtain a
PangoContext
, use [methodPango.FontMap.create_context
].The
See moreContextRef
type acts as a lightweight Swift reference to an underlyingPangoContext
instance. It exposes methods that can operate on this data type throughContextProtocol
conformance. UseContextRef
only as anunowned
reference to an existingPangoContext
instance.Declaration
Swift
public struct ContextRef : ContextProtocol, GWeakCapturing
-
A
PangoCoverage
structure is a map from Unicode characters to [enumPango.CoverageLevel
] values.It is often necessary in Pango to determine if a particular font can represent a particular character, and also how well it can represent that character. The
PangoCoverage
is a data structure that is used to represent that information. It is an opaque structure with no public fields.The
See moreCoverageRef
type acts as a lightweight Swift reference to an underlyingPangoCoverage
instance. It exposes methods that can operate on this data type throughCoverageProtocol
conformance. UseCoverageRef
only as anunowned
reference to an existingPangoCoverage
instance.Declaration
Swift
public struct CoverageRef : CoverageProtocol, GWeakCapturing
-
The
PangoColor
structure is used to represent a color in an uncalibrated RGB color-space.The
See moreColorRef
type acts as a lightweight Swift reference to an underlyingPangoColor
instance. It exposes methods that can operate on this data type throughColorProtocol
conformance. UseColorRef
only as anunowned
reference to an existingPangoColor
instance.Declaration
Swift
public struct ColorRef : ColorProtocol
-
The
See moreContextClassRef
type acts as a lightweight Swift reference to an underlyingPangoContextClass
instance. It exposes methods that can operate on this data type throughContextClassProtocol
conformance. UseContextClassRef
only as anunowned
reference to an existingPangoContextClass
instance.Declaration
Swift
public struct ContextClassRef : ContextClassProtocol
-
A
PangoFont
is used to represent a font in a rendering-system-independent manner.The
See moreFontRef
type acts as a lightweight Swift reference to an underlyingPangoFont
instance. It exposes methods that can operate on this data type throughFontProtocol
conformance. UseFontRef
only as anunowned
reference to an existingPangoFont
instance.Declaration
Swift
public struct FontRef : FontProtocol, GWeakCapturing
-
A
PangoFontFace
is used to represent a group of fonts with the same family, slant, weight, and width, but varying sizes.The
See moreFontFaceRef
type acts as a lightweight Swift reference to an underlyingPangoFontFace
instance. It exposes methods that can operate on this data type throughFontFaceProtocol
conformance. UseFontFaceRef
only as anunowned
reference to an existingPangoFontFace
instance.Declaration
Swift
public struct FontFaceRef : FontFaceProtocol, GWeakCapturing
-
The
See moreFontClassRef
type acts as a lightweight Swift reference to an underlyingPangoFontClass
instance. It exposes methods that can operate on this data type throughFontClassProtocol
conformance. UseFontClassRef
only as anunowned
reference to an existingPangoFontClass
instance.Declaration
Swift
public struct FontClassRef : FontClassProtocol
-
A
PangoFontFamily
is used to represent a family of related font faces.The font faces in a family share a common design, but differ in slant, weight, width or other aspects.
The
See moreFontFamilyRef
type acts as a lightweight Swift reference to an underlyingPangoFontFamily
instance. It exposes methods that can operate on this data type throughFontFamilyProtocol
conformance. UseFontFamilyRef
only as anunowned
reference to an existingPangoFontFamily
instance.Declaration
Swift
public struct FontFamilyRef : FontFamilyProtocol, GWeakCapturing
-
A
PangoFontMap
represents the set of fonts available for a particular rendering system.This is a virtual object with implementations being specific to particular rendering systems.
The
See moreFontMapRef
type acts as a lightweight Swift reference to an underlyingPangoFontMap
instance. It exposes methods that can operate on this data type throughFontMapProtocol
conformance. UseFontMapRef
only as anunowned
reference to an existingPangoFontMap
instance.Declaration
Swift
public struct FontMapRef : FontMapProtocol, GWeakCapturing
-
A
PangoFontset
represents a set ofPangoFont
to use when rendering text.A
PangoFontset
is the result of resolving aPangoFontDescription
against a particularPangoContext
. It has operations for finding the component font for a particular Unicode character, and for finding a composite set of metrics for the entire fontset.The
See moreFontsetRef
type acts as a lightweight Swift reference to an underlyingPangoFontset
instance. It exposes methods that can operate on this data type throughFontsetProtocol
conformance. UseFontsetRef
only as anunowned
reference to an existingPangoFontset
instance.Declaration
Swift
public struct FontsetRef : FontsetProtocol, GWeakCapturing
-
PangoFontsetSimple
is a implementation of the abstractPangoFontset
base class as an array of fonts.When creating a
PangoFontsetSimple
, you have to provide the array of fonts that make up the fontset.The
See moreFontsetSimpleRef
type acts as a lightweight Swift reference to an underlyingPangoFontsetSimple
instance. It exposes methods that can operate on this data type throughFontsetSimpleProtocol
conformance. UseFontsetSimpleRef
only as anunowned
reference to an existingPangoFontsetSimple
instance.Declaration
Swift
public struct FontsetSimpleRef : FontsetSimpleProtocol, GWeakCapturing
-
A
PangoFontDescription
describes a font in an implementation-independent manner.PangoFontDescription
structures are used both to list what fonts are available on the system and also for specifying the characteristics of a font to load.The
See moreFontDescriptionRef
type acts as a lightweight Swift reference to an underlyingPangoFontDescription
instance. It exposes methods that can operate on this data type throughFontDescriptionProtocol
conformance. UseFontDescriptionRef
only as anunowned
reference to an existingPangoFontDescription
instance.Declaration
Swift
public struct FontDescriptionRef : FontDescriptionProtocol
-
The
See moreFontFaceClassRef
type acts as a lightweight Swift reference to an underlyingPangoFontFaceClass
instance. It exposes methods that can operate on this data type throughFontFaceClassProtocol
conformance. UseFontFaceClassRef
only as anunowned
reference to an existingPangoFontFaceClass
instance.Declaration
Swift
public struct FontFaceClassRef : FontFaceClassProtocol
-
The
See moreFontFamilyClassRef
type acts as a lightweight Swift reference to an underlyingPangoFontFamilyClass
instance. It exposes methods that can operate on this data type throughFontFamilyClassProtocol
conformance. UseFontFamilyClassRef
only as anunowned
reference to an existingPangoFontFamilyClass
instance.Declaration
Swift
public struct FontFamilyClassRef : FontFamilyClassProtocol
-
The
PangoFontMapClass
structure holds the virtual functions for a particularPangoFontMap
implementation.The
See moreFontMapClassRef
type acts as a lightweight Swift reference to an underlyingPangoFontMapClass
instance. It exposes methods that can operate on this data type throughFontMapClassProtocol
conformance. UseFontMapClassRef
only as anunowned
reference to an existingPangoFontMapClass
instance.Declaration
Swift
public struct FontMapClassRef : FontMapClassProtocol
-
A
PangoFontMetrics
structure holds the overall metric information for a font.The information in a
PangoFontMetrics
structure may be restricted to a script. The fields of this structure are private to implementations of a font backend. See the documentation of the corresponding getters for documentation of their meaning.For an overview of the most important metrics, see:
<picture> <source srcset=“fontmetrics-dark.png” media=“(prefers-color-scheme: dark)”> <img alt=“Font metrics” src=“fontmetrics-light.png”> </picture>
The
See moreFontMetricsRef
type acts as a lightweight Swift reference to an underlyingPangoFontMetrics
instance. It exposes methods that can operate on this data type throughFontMetricsProtocol
conformance. UseFontMetricsRef
only as anunowned
reference to an existingPangoFontMetrics
instance.Declaration
Swift
public struct FontMetricsRef : FontMetricsProtocol
-
The
PangoFontsetClass
structure holds the virtual functions for a particularPangoFontset
implementation.The
See moreFontsetClassRef
type acts as a lightweight Swift reference to an underlyingPangoFontsetClass
instance. It exposes methods that can operate on this data type throughFontsetClassProtocol
conformance. UseFontsetClassRef
only as anunowned
reference to an existingPangoFontsetClass
instance.Declaration
Swift
public struct FontsetClassRef : FontsetClassProtocol
-
The
See moreFontsetSimpleClassRef
type acts as a lightweight Swift reference to an underlyingPangoFontsetSimpleClass
instance. It exposes methods that can operate on this data type throughFontsetSimpleClassProtocol
conformance. UseFontsetSimpleClassRef
only as anunowned
reference to an existingPangoFontsetSimpleClass
instance.Declaration
Swift
public struct FontsetSimpleClassRef : FontsetSimpleClassProtocol
-
The
PangoGlyphGeometry
structure contains width and positioning information for a single glyph.Note that
width
is not guaranteed to be the same as the glyph extents. Kerning and other positioning applied during shaping will affect both thewidth
and thex_offset
for the glyphs in the glyph string that results from shaping.The information in this struct is intended for rendering the glyphs, as follows:
- Assume the current point is (x, y)
- Render the current glyph at (x + x_offset, y + y_offset),
- Advance the current point to (x + width, y)
- Render the next glyph
The
See moreGlyphGeometryRef
type acts as a lightweight Swift reference to an underlyingPangoGlyphGeometry
instance. It exposes methods that can operate on this data type throughGlyphGeometryProtocol
conformance. UseGlyphGeometryRef
only as anunowned
reference to an existingPangoGlyphGeometry
instance.Declaration
Swift
public struct GlyphGeometryRef : GlyphGeometryProtocol
-
A
PangoGlyphInfo
structure represents a single glyph with positioning information and visual attributes.The
See moreGlyphInfoRef
type acts as a lightweight Swift reference to an underlyingPangoGlyphInfo
instance. It exposes methods that can operate on this data type throughGlyphInfoProtocol
conformance. UseGlyphInfoRef
only as anunowned
reference to an existingPangoGlyphInfo
instance.Declaration
Swift
public struct GlyphInfoRef : GlyphInfoProtocol
-
A
PangoGlyphItem
is a pair of aPangoItem
and the glyphs resulting from shaping the items text.As an example of the usage of
PangoGlyphItem
, the results of shaping text withPangoLayout
is a list ofPangoLayoutLine
, each of which contains a list ofPangoGlyphItem
.The
See moreGlyphItemRef
type acts as a lightweight Swift reference to an underlyingPangoGlyphItem
instance. It exposes methods that can operate on this data type throughGlyphItemProtocol
conformance. UseGlyphItemRef
only as anunowned
reference to an existingPangoGlyphItem
instance.Declaration
Swift
public struct GlyphItemRef : GlyphItemProtocol
-
A
PangoGlyphItemIter
is an iterator over the clusters in aPangoGlyphItem
.The forward direction of the iterator is the logical direction of text. That is, with increasing
start_index
andstart_char
values. Ifglyph_item
is right-to-left (that is, ifglyph_item->item->analysis.level
is odd), thenstart_glyph
decreases as the iterator moves forward. Moreover, in right-to-left cases,start_glyph
is greater thanend_glyph
.An iterator should be initialized using either
pango_glyph_item_iter_init_start()
orpango_glyph_item_iter_init_end()
, for forward and backward iteration respectively, and walked over using any desired mixture ofpango_glyph_item_iter_next_cluster()
andpango_glyph_item_iter_prev_cluster()
.A common idiom for doing a forward iteration over the clusters is:
PangoGlyphItemIter cluster_iter; gboolean have_cluster; for (have_cluster = pango_glyph_item_iter_init_start (&cluster_iter, glyph_item, text); have_cluster; have_cluster = pango_glyph_item_iter_next_cluster (&cluster_iter)) { ... }
Note that
text
is the start of the text for layout, which is then indexed byglyph_item->item->offset
to get to the text ofglyph_item
. Thestart_index
andend_index
values can directly index intotext
. Thestart_glyph
,end_glyph
,start_char
, andend_char
values however are zero-based for theglyph_item
. For each cluster, the item pointed at by the start variables is included in the cluster while the one pointed at by end variables is not.None of the members of a
PangoGlyphItemIter
should be modified manually.The
See moreGlyphItemIterRef
type acts as a lightweight Swift reference to an underlyingPangoGlyphItemIter
instance. It exposes methods that can operate on this data type throughGlyphItemIterProtocol
conformance. UseGlyphItemIterRef
only as anunowned
reference to an existingPangoGlyphItemIter
instance.Declaration
Swift
public struct GlyphItemIterRef : GlyphItemIterProtocol
-
A
PangoGlyphString
is used to store strings of glyphs with geometry and visual attribute information.The storage for the glyph information is owned by the structure which simplifies memory management.
The
See moreGlyphStringRef
type acts as a lightweight Swift reference to an underlyingPangoGlyphString
instance. It exposes methods that can operate on this data type throughGlyphStringProtocol
conformance. UseGlyphStringRef
only as anunowned
reference to an existingPangoGlyphString
instance.Declaration
Swift
public struct GlyphStringRef : GlyphStringProtocol
-
A
PangoGlyphVisAttr
structure communicates information between the shaping and rendering phases.Currently, it contains cluster start and color information. More attributes may be added in the future.
Clusters are stored in visual order, within the cluster, glyphs are always ordered in logical order, since visual order is meaningless; that is, in Arabic text, accent glyphs follow the glyphs for the base character.
The
See moreGlyphVisAttrRef
type acts as a lightweight Swift reference to an underlyingPangoGlyphVisAttr
instance. It exposes methods that can operate on this data type throughGlyphVisAttrProtocol
conformance. UseGlyphVisAttrRef
only as anunowned
reference to an existingPangoGlyphVisAttr
instance.Declaration
Swift
public struct GlyphVisAttrRef : GlyphVisAttrProtocol
-
The
PangoItem
structure stores information about a segment of text.You typically obtain
PangoItems
by itemizing a piece of text with [funcitemize
].The
See moreItemRef
type acts as a lightweight Swift reference to an underlyingPangoItem
instance. It exposes methods that can operate on this data type throughItemProtocol
conformance. UseItemRef
only as anunowned
reference to an existingPangoItem
instance.Declaration
Swift
public struct ItemRef : ItemProtocol
-
A
PangoLayout
structure represents an entire paragraph of text.While complete access to the layout capabilities of Pango is provided using the detailed interfaces for itemization and shaping, using that functionality directly involves writing a fairly large amount of code.
PangoLayout
provides a high-level driver for formatting entire paragraphs of text at once. This includes paragraph-level functionality such as line breaking, justification, alignment and ellipsization.A
PangoLayout
is initialized with aPangoContext
, UTF-8 string and set of attributes for that string. Once that is done, the set of formatted lines can be extracted from the object, the layout can be rendered, and conversion between logical character positions within the layout’s text, and the physical position of the resulting glyphs can be made.There are a number of parameters to adjust the formatting of a
PangoLayout
. The following image shows adjustable parameters (on the left) and font metrics (on the right):<picture> <source srcset=“layout-dark.png” media=“(prefers-color-scheme: dark)”> <img alt=“Pango Layout Parameters” src=“layout-light.png”> </picture>
The following images demonstrate the effect of alignment and justification on the layout of text:
It is possible, as well, to ignore the 2-D setup, and simply treat the results of a
PangoLayout
as a list of lines.The
See moreLayoutRef
type acts as a lightweight Swift reference to an underlyingPangoLayout
instance. It exposes methods that can operate on this data type throughLayoutProtocol
conformance. UseLayoutRef
only as anunowned
reference to an existingPangoLayout
instance.Declaration
Swift
public struct LayoutRef : LayoutProtocol, GWeakCapturing
-
The
PangoLanguage
structure is used to represent a language.PangoLanguage
pointers can be efficiently copied and compared with each other.The
See moreLanguageRef
type acts as a lightweight Swift reference to an underlyingPangoLanguage
instance. It exposes methods that can operate on this data type throughLanguageProtocol
conformance. UseLanguageRef
only as anunowned
reference to an existingPangoLanguage
instance.Declaration
Swift
public struct LanguageRef : LanguageProtocol
-
The
See moreLayoutClassRef
type acts as a lightweight Swift reference to an underlyingPangoLayoutClass
instance. It exposes methods that can operate on this data type throughLayoutClassProtocol
conformance. UseLayoutClassRef
only as anunowned
reference to an existingPangoLayoutClass
instance.Declaration
Swift
public struct LayoutClassRef : LayoutClassProtocol
-
A
PangoLayoutIter
can be used to iterate over the visual extents of aPangoLayout
.To obtain a
PangoLayoutIter
, use [methodPango.Layout.get_iter
].The
PangoLayoutIter
structure is opaque, and has no user-visible fields.The
See moreLayoutIterRef
type acts as a lightweight Swift reference to an underlyingPangoLayoutIter
instance. It exposes methods that can operate on this data type throughLayoutIterProtocol
conformance. UseLayoutIterRef
only as anunowned
reference to an existingPangoLayoutIter
instance.Declaration
Swift
public struct LayoutIterRef : LayoutIterProtocol
-
A
PangoLayoutLine
represents one of the lines resulting from laying out a paragraph viaPangoLayout
.PangoLayoutLine
structures are obtained by calling [methodPango.Layout.get_line
] and are only valid until the text, attributes, or settings of the parentPangoLayout
are modified.The
See moreLayoutLineRef
type acts as a lightweight Swift reference to an underlyingPangoLayoutLine
instance. It exposes methods that can operate on this data type throughLayoutLineProtocol
conformance. UseLayoutLineRef
only as anunowned
reference to an existingPangoLayoutLine
instance.Declaration
Swift
public struct LayoutLineRef : LayoutLineProtocol
-
The
PangoLogAttr
structure stores information about the attributes of a single character.The
See moreLogAttrRef
type acts as a lightweight Swift reference to an underlyingPangoLogAttr
instance. It exposes methods that can operate on this data type throughLogAttrProtocol
conformance. UseLogAttrRef
only as anunowned
reference to an existingPangoLogAttr
instance.Declaration
Swift
public struct LogAttrRef : LogAttrProtocol
-
A
PangoMatrix
specifies a transformation between user-space and device coordinates.The transformation is given by
x_device = x_user * matrix->xx + y_user * matrix->xy + matrix->x0; y_device = x_user * matrix->yx + y_user * matrix->yy + matrix->y0;
The
See moreMatrixRef
type acts as a lightweight Swift reference to an underlyingPangoMatrix
instance. It exposes methods that can operate on this data type throughMatrixProtocol
conformance. UseMatrixRef
only as anunowned
reference to an existingPangoMatrix
instance.Declaration
Swift
public struct MatrixRef : MatrixProtocol
-
PangoRenderer
is a base class for objects that can render text provided asPangoGlyphString
orPangoLayout
.By subclassing
PangoRenderer
and overriding operations such asdraw_glyphs
anddraw_rectangle
, renderers for particular font backends and destinations can be created.The
See moreRendererRef
type acts as a lightweight Swift reference to an underlyingPangoRenderer
instance. It exposes methods that can operate on this data type throughRendererProtocol
conformance. UseRendererRef
only as anunowned
reference to an existingPangoRenderer
instance.Declaration
Swift
public struct RendererRef : RendererProtocol, GWeakCapturing
-
The
PangoRectangle
structure represents a rectangle.PangoRectangle
is frequently used to represent the logical or ink extents of a single glyph or section of text. (See, for instance, [methodPango.Font.get_glyph_extents
].)The
See moreRectangleRef
type acts as a lightweight Swift reference to an underlyingPangoRectangle
instance. It exposes methods that can operate on this data type throughRectangleProtocol
conformance. UseRectangleRef
only as anunowned
reference to an existingPangoRectangle
instance.Declaration
Swift
public struct RectangleRef : RectangleProtocol
-
Class structure for
PangoRenderer
.The following vfuncs take user space coordinates in Pango units and have default implementations:
- draw_glyphs
- draw_rectangle
- draw_error_underline
- draw_shape
- draw_glyph_item
The default draw_shape implementation draws nothing.
The following vfuncs take device space coordinates as doubles and must be implemented:
- draw_trapezoid
- draw_glyph
The
See moreRendererClassRef
type acts as a lightweight Swift reference to an underlyingPangoRendererClass
instance. It exposes methods that can operate on this data type throughRendererClassProtocol
conformance. UseRendererClassRef
only as anunowned
reference to an existingPangoRendererClass
instance.Declaration
Swift
public struct RendererClassRef : RendererClassProtocol
-
A
PangoScriptIter
is used to iterate through a string and identify ranges in different scripts.The
See moreScriptIterRef
type acts as a lightweight Swift reference to an underlyingPangoScriptIter
instance. It exposes methods that can operate on this data type throughScriptIterProtocol
conformance. UseScriptIterRef
only as anunowned
reference to an existingPangoScriptIter
instance.Declaration
Swift
public struct ScriptIterRef : ScriptIterProtocol
-
A
PangoTabArray
contains an array of tab stops.PangoTabArray
can be used to set tab stops in aPangoLayout
. Each tab stop has an alignment, a position, and optionally a character to use as decimal point.The
See moreTabArrayRef
type acts as a lightweight Swift reference to an underlyingPangoTabArray
instance. It exposes methods that can operate on this data type throughTabArrayProtocol
conformance. UseTabArrayRef
only as anunowned
reference to an existingPangoTabArray
instance.Declaration
Swift
public struct TabArrayRef : TabArrayProtocol
-
The bits in a
See morePangoFontMask
correspond to the set fields in aPangoFontDescription
.Declaration
Swift
public struct FontMask : OptionSet
-
Flags that influence the behavior of [func
Pango.Layout.deserialize
].New members may be added to this enumeration over time.
See moreDeclaration
Swift
public struct LayoutDeserializeFlags : OptionSet
-
Flags that influence the behavior of [method
Pango.Layout.serialize
].New members may be added to this enumeration over time.
See moreDeclaration
Swift
public struct LayoutSerializeFlags : OptionSet
-
Flags influencing the shaping process.
See morePangoShapeFlags
can be passed to [funcPango.shape_with_flags
].Declaration
Swift
public struct ShapeFlags : OptionSet
-
These flags affect how Pango treats characters that are normally not visible in the output.
See moreDeclaration
Swift
public struct ShowFlags : OptionSet