Structures
The following structures are available globally.
-
The
PangoAnalysisstructure stores information about the properties of a segment of text.The
See moreAnalysisReftype acts as a lightweight Swift reference to an underlyingPangoAnalysisinstance. It exposes methods that can operate on this data type throughAnalysisProtocolconformance. UseAnalysisRefonly as anunownedreference to an existingPangoAnalysisinstance.Declaration
Swift
public struct AnalysisRef : AnalysisProtocol
-
The
PangoAttrClassstructure 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 moreAttrClassReftype acts as a lightweight Swift reference to an underlyingPangoAttrClassinstance. It exposes methods that can operate on this data type throughAttrClassProtocolconformance. UseAttrClassRefonly as anunownedreference to an existingPangoAttrClassinstance.Declaration
Swift
public struct AttrClassRef : AttrClassProtocol
-
The
PangoAttrColorstructure is used to represent attributes that are colors.The
See moreAttrColorReftype acts as a lightweight Swift reference to an underlyingPangoAttrColorinstance. It exposes methods that can operate on this data type throughAttrColorProtocolconformance. UseAttrColorRefonly as anunownedreference to an existingPangoAttrColorinstance.Declaration
Swift
public struct AttrColorRef : AttrColorProtocol
-
The
PangoAttrFloatstructure is used to represent attributes with a float or double value.The
See moreAttrFloatReftype acts as a lightweight Swift reference to an underlyingPangoAttrFloatinstance. It exposes methods that can operate on this data type throughAttrFloatProtocolconformance. UseAttrFloatRefonly as anunownedreference to an existingPangoAttrFloatinstance.Declaration
Swift
public struct AttrFloatRef : AttrFloatProtocol
-
The
PangoAttrFontDescstructure is used to store an attribute that sets all aspects of the font description at once.The
See moreAttrFontDescReftype acts as a lightweight Swift reference to an underlyingPangoAttrFontDescinstance. It exposes methods that can operate on this data type throughAttrFontDescProtocolconformance. UseAttrFontDescRefonly as anunownedreference to an existingPangoAttrFontDescinstance.Declaration
Swift
public struct AttrFontDescRef : AttrFontDescProtocol
-
The
PangoAttrFontFeaturesstructure is used to represent OpenType font features as an attribute.The
See moreAttrFontFeaturesReftype acts as a lightweight Swift reference to an underlyingPangoAttrFontFeaturesinstance. It exposes methods that can operate on this data type throughAttrFontFeaturesProtocolconformance. UseAttrFontFeaturesRefonly as anunownedreference to an existingPangoAttrFontFeaturesinstance.Declaration
Swift
public struct AttrFontFeaturesRef : AttrFontFeaturesProtocol
-
The
PangoAttrIntstructure is used to represent attributes with an integer or enumeration value.The
See moreAttrIntReftype acts as a lightweight Swift reference to an underlyingPangoAttrIntinstance. It exposes methods that can operate on this data type throughAttrIntProtocolconformance. UseAttrIntRefonly as anunownedreference to an existingPangoAttrIntinstance.Declaration
Swift
public struct AttrIntRef : AttrIntProtocol
-
A
PangoAttrIteratoris 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 moreAttrIteratorReftype acts as a lightweight Swift reference to an underlyingPangoAttrIteratorinstance. It exposes methods that can operate on this data type throughAttrIteratorProtocolconformance. UseAttrIteratorRefonly as anunownedreference to an existingPangoAttrIteratorinstance.Declaration
Swift
public struct AttrIteratorRef : AttrIteratorProtocol
-
The
PangoAttrLanguagestructure is used to represent attributes that are languages.The
See moreAttrLanguageReftype acts as a lightweight Swift reference to an underlyingPangoAttrLanguageinstance. It exposes methods that can operate on this data type throughAttrLanguageProtocolconformance. UseAttrLanguageRefonly as anunownedreference to an existingPangoAttrLanguageinstance.Declaration
Swift
public struct AttrLanguageRef : AttrLanguageProtocol
-
A
PangoAttrListrepresents a list of attributes that apply to a section of text.The attributes in a
PangoAttrListare, 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
PangoAttrListstructure 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 singlePangoAttrListfor more than one paragraph of text.The
See moreAttrListReftype acts as a lightweight Swift reference to an underlyingPangoAttrListinstance. It exposes methods that can operate on this data type throughAttrListProtocolconformance. UseAttrListRefonly as anunownedreference to an existingPangoAttrListinstance.Declaration
Swift
public struct AttrListRef : AttrListProtocol
-
The
PangoAttrShapestructure is used to represent attributes which impose shape restrictions.The
See moreAttrShapeReftype acts as a lightweight Swift reference to an underlyingPangoAttrShapeinstance. It exposes methods that can operate on this data type throughAttrShapeProtocolconformance. UseAttrShapeRefonly as anunownedreference to an existingPangoAttrShapeinstance.Declaration
Swift
public struct AttrShapeRef : AttrShapeProtocol
-
The
PangoAttrSizestructure is used to represent attributes which set font size.The
See moreAttrSizeReftype acts as a lightweight Swift reference to an underlyingPangoAttrSizeinstance. It exposes methods that can operate on this data type throughAttrSizeProtocolconformance. UseAttrSizeRefonly as anunownedreference to an existingPangoAttrSizeinstance.Declaration
Swift
public struct AttrSizeRef : AttrSizeProtocol
-
The
PangoAttrStringstructure is used to represent attributes with a string value.The
See moreAttrStringReftype acts as a lightweight Swift reference to an underlyingPangoAttrStringinstance. It exposes methods that can operate on this data type throughAttrStringProtocolconformance. UseAttrStringRefonly as anunownedreference to an existingPangoAttrStringinstance.Declaration
Swift
public struct AttrStringRef : AttrStringProtocol
-
The
PangoAttributestructure 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 moreAttributeReftype acts as a lightweight Swift reference to an underlyingPangoAttributeinstance. It exposes methods that can operate on this data type throughAttributeProtocolconformance. UseAttributeRefonly as anunownedreference to an existingPangoAttributeinstance.Declaration
Swift
public struct AttributeRef : AttributeProtocol
-
A
PangoContextstores global information used to control the itemization process.The information stored by
PangoContextincludes 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 moreContextReftype acts as a lightweight Swift reference to an underlyingPangoContextinstance. It exposes methods that can operate on this data type throughContextProtocolconformance. UseContextRefonly as anunownedreference to an existingPangoContextinstance.Declaration
Swift
public struct ContextRef : ContextProtocol, GWeakCapturing
-
A
PangoCoveragestructure 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
PangoCoverageis a data structure that is used to represent that information. It is an opaque structure with no public fields.The
See moreCoverageReftype acts as a lightweight Swift reference to an underlyingPangoCoverageinstance. It exposes methods that can operate on this data type throughCoverageProtocolconformance. UseCoverageRefonly as anunownedreference to an existingPangoCoverageinstance.Declaration
Swift
public struct CoverageRef : CoverageProtocol, GWeakCapturing
-
The
PangoColorstructure is used to represent a color in an uncalibrated RGB color-space.The
See moreColorReftype acts as a lightweight Swift reference to an underlyingPangoColorinstance. It exposes methods that can operate on this data type throughColorProtocolconformance. UseColorRefonly as anunownedreference to an existingPangoColorinstance.Declaration
Swift
public struct ColorRef : ColorProtocol
-
The
See moreContextClassReftype acts as a lightweight Swift reference to an underlyingPangoContextClassinstance. It exposes methods that can operate on this data type throughContextClassProtocolconformance. UseContextClassRefonly as anunownedreference to an existingPangoContextClassinstance.Declaration
Swift
public struct ContextClassRef : ContextClassProtocol
-
A
PangoFontis used to represent a font in a rendering-system-independent manner.The
See moreFontReftype acts as a lightweight Swift reference to an underlyingPangoFontinstance. It exposes methods that can operate on this data type throughFontProtocolconformance. UseFontRefonly as anunownedreference to an existingPangoFontinstance.Declaration
Swift
public struct FontRef : FontProtocol, GWeakCapturing
-
A
PangoFontFaceis used to represent a group of fonts with the same family, slant, weight, and width, but varying sizes.The
See moreFontFaceReftype acts as a lightweight Swift reference to an underlyingPangoFontFaceinstance. It exposes methods that can operate on this data type throughFontFaceProtocolconformance. UseFontFaceRefonly as anunownedreference to an existingPangoFontFaceinstance.Declaration
Swift
public struct FontFaceRef : FontFaceProtocol, GWeakCapturing
-
The
See moreFontClassReftype acts as a lightweight Swift reference to an underlyingPangoFontClassinstance. It exposes methods that can operate on this data type throughFontClassProtocolconformance. UseFontClassRefonly as anunownedreference to an existingPangoFontClassinstance.Declaration
Swift
public struct FontClassRef : FontClassProtocol
-
A
PangoFontFamilyis 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 moreFontFamilyReftype acts as a lightweight Swift reference to an underlyingPangoFontFamilyinstance. It exposes methods that can operate on this data type throughFontFamilyProtocolconformance. UseFontFamilyRefonly as anunownedreference to an existingPangoFontFamilyinstance.Declaration
Swift
public struct FontFamilyRef : FontFamilyProtocol, GWeakCapturing
-
A
PangoFontMaprepresents 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 moreFontMapReftype acts as a lightweight Swift reference to an underlyingPangoFontMapinstance. It exposes methods that can operate on this data type throughFontMapProtocolconformance. UseFontMapRefonly as anunownedreference to an existingPangoFontMapinstance.Declaration
Swift
public struct FontMapRef : FontMapProtocol, GWeakCapturing
-
A
PangoFontsetrepresents a set ofPangoFontto use when rendering text.A
PangoFontsetis the result of resolving aPangoFontDescriptionagainst 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 moreFontsetReftype acts as a lightweight Swift reference to an underlyingPangoFontsetinstance. It exposes methods that can operate on this data type throughFontsetProtocolconformance. UseFontsetRefonly as anunownedreference to an existingPangoFontsetinstance.Declaration
Swift
public struct FontsetRef : FontsetProtocol, GWeakCapturing
-
PangoFontsetSimpleis a implementation of the abstractPangoFontsetbase 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 moreFontsetSimpleReftype acts as a lightweight Swift reference to an underlyingPangoFontsetSimpleinstance. It exposes methods that can operate on this data type throughFontsetSimpleProtocolconformance. UseFontsetSimpleRefonly as anunownedreference to an existingPangoFontsetSimpleinstance.Declaration
Swift
public struct FontsetSimpleRef : FontsetSimpleProtocol, GWeakCapturing
-
A
PangoFontDescriptiondescribes a font in an implementation-independent manner.PangoFontDescriptionstructures 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 moreFontDescriptionReftype acts as a lightweight Swift reference to an underlyingPangoFontDescriptioninstance. It exposes methods that can operate on this data type throughFontDescriptionProtocolconformance. UseFontDescriptionRefonly as anunownedreference to an existingPangoFontDescriptioninstance.Declaration
Swift
public struct FontDescriptionRef : FontDescriptionProtocol
-
The
See moreFontFaceClassReftype acts as a lightweight Swift reference to an underlyingPangoFontFaceClassinstance. It exposes methods that can operate on this data type throughFontFaceClassProtocolconformance. UseFontFaceClassRefonly as anunownedreference to an existingPangoFontFaceClassinstance.Declaration
Swift
public struct FontFaceClassRef : FontFaceClassProtocol
-
The
See moreFontFamilyClassReftype acts as a lightweight Swift reference to an underlyingPangoFontFamilyClassinstance. It exposes methods that can operate on this data type throughFontFamilyClassProtocolconformance. UseFontFamilyClassRefonly as anunownedreference to an existingPangoFontFamilyClassinstance.Declaration
Swift
public struct FontFamilyClassRef : FontFamilyClassProtocol
-
The
PangoFontMapClassstructure holds the virtual functions for a particularPangoFontMapimplementation.The
See moreFontMapClassReftype acts as a lightweight Swift reference to an underlyingPangoFontMapClassinstance. It exposes methods that can operate on this data type throughFontMapClassProtocolconformance. UseFontMapClassRefonly as anunownedreference to an existingPangoFontMapClassinstance.Declaration
Swift
public struct FontMapClassRef : FontMapClassProtocol
-
A
PangoFontMetricsstructure holds the overall metric information for a font.The information in a
PangoFontMetricsstructure 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 moreFontMetricsReftype acts as a lightweight Swift reference to an underlyingPangoFontMetricsinstance. It exposes methods that can operate on this data type throughFontMetricsProtocolconformance. UseFontMetricsRefonly as anunownedreference to an existingPangoFontMetricsinstance.Declaration
Swift
public struct FontMetricsRef : FontMetricsProtocol
-
The
PangoFontsetClassstructure holds the virtual functions for a particularPangoFontsetimplementation.The
See moreFontsetClassReftype acts as a lightweight Swift reference to an underlyingPangoFontsetClassinstance. It exposes methods that can operate on this data type throughFontsetClassProtocolconformance. UseFontsetClassRefonly as anunownedreference to an existingPangoFontsetClassinstance.Declaration
Swift
public struct FontsetClassRef : FontsetClassProtocol
-
The
See moreFontsetSimpleClassReftype acts as a lightweight Swift reference to an underlyingPangoFontsetSimpleClassinstance. It exposes methods that can operate on this data type throughFontsetSimpleClassProtocolconformance. UseFontsetSimpleClassRefonly as anunownedreference to an existingPangoFontsetSimpleClassinstance.Declaration
Swift
public struct FontsetSimpleClassRef : FontsetSimpleClassProtocol
-
The
PangoGlyphGeometrystructure contains width and positioning information for a single glyph.Note that
widthis not guaranteed to be the same as the glyph extents. Kerning and other positioning applied during shaping will affect both thewidthand thex_offsetfor 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 moreGlyphGeometryReftype acts as a lightweight Swift reference to an underlyingPangoGlyphGeometryinstance. It exposes methods that can operate on this data type throughGlyphGeometryProtocolconformance. UseGlyphGeometryRefonly as anunownedreference to an existingPangoGlyphGeometryinstance.Declaration
Swift
public struct GlyphGeometryRef : GlyphGeometryProtocol
-
A
PangoGlyphInfostructure represents a single glyph with positioning information and visual attributes.The
See moreGlyphInfoReftype acts as a lightweight Swift reference to an underlyingPangoGlyphInfoinstance. It exposes methods that can operate on this data type throughGlyphInfoProtocolconformance. UseGlyphInfoRefonly as anunownedreference to an existingPangoGlyphInfoinstance.Declaration
Swift
public struct GlyphInfoRef : GlyphInfoProtocol
-
A
PangoGlyphItemis a pair of aPangoItemand the glyphs resulting from shaping the items text.As an example of the usage of
PangoGlyphItem, the results of shaping text withPangoLayoutis a list ofPangoLayoutLine, each of which contains a list ofPangoGlyphItem.The
See moreGlyphItemReftype acts as a lightweight Swift reference to an underlyingPangoGlyphIteminstance. It exposes methods that can operate on this data type throughGlyphItemProtocolconformance. UseGlyphItemRefonly as anunownedreference to an existingPangoGlyphIteminstance.Declaration
Swift
public struct GlyphItemRef : GlyphItemProtocol
-
A
PangoGlyphItemIteris an iterator over the clusters in aPangoGlyphItem.The forward direction of the iterator is the logical direction of text. That is, with increasing
start_indexandstart_charvalues. Ifglyph_itemis right-to-left (that is, ifglyph_item->item->analysis.levelis odd), thenstart_glyphdecreases as the iterator moves forward. Moreover, in right-to-left cases,start_glyphis 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
textis the start of the text for layout, which is then indexed byglyph_item->item->offsetto get to the text ofglyph_item. Thestart_indexandend_indexvalues can directly index intotext. Thestart_glyph,end_glyph,start_char, andend_charvalues 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
PangoGlyphItemItershould be modified manually.The
See moreGlyphItemIterReftype acts as a lightweight Swift reference to an underlyingPangoGlyphItemIterinstance. It exposes methods that can operate on this data type throughGlyphItemIterProtocolconformance. UseGlyphItemIterRefonly as anunownedreference to an existingPangoGlyphItemIterinstance.Declaration
Swift
public struct GlyphItemIterRef : GlyphItemIterProtocol
-
A
PangoGlyphStringis 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 moreGlyphStringReftype acts as a lightweight Swift reference to an underlyingPangoGlyphStringinstance. It exposes methods that can operate on this data type throughGlyphStringProtocolconformance. UseGlyphStringRefonly as anunownedreference to an existingPangoGlyphStringinstance.Declaration
Swift
public struct GlyphStringRef : GlyphStringProtocol
-
A
PangoGlyphVisAttrstructure 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 moreGlyphVisAttrReftype acts as a lightweight Swift reference to an underlyingPangoGlyphVisAttrinstance. It exposes methods that can operate on this data type throughGlyphVisAttrProtocolconformance. UseGlyphVisAttrRefonly as anunownedreference to an existingPangoGlyphVisAttrinstance.Declaration
Swift
public struct GlyphVisAttrRef : GlyphVisAttrProtocol
-
The
PangoItemstructure stores information about a segment of text.You typically obtain
PangoItemsby itemizing a piece of text with [funcitemize].The
See moreItemReftype acts as a lightweight Swift reference to an underlyingPangoIteminstance. It exposes methods that can operate on this data type throughItemProtocolconformance. UseItemRefonly as anunownedreference to an existingPangoIteminstance.Declaration
Swift
public struct ItemRef : ItemProtocol
-
A
PangoLayoutstructure 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.
PangoLayoutprovides 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
PangoLayoutis 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
PangoLayoutas a list of lines.The
See moreLayoutReftype acts as a lightweight Swift reference to an underlyingPangoLayoutinstance. It exposes methods that can operate on this data type throughLayoutProtocolconformance. UseLayoutRefonly as anunownedreference to an existingPangoLayoutinstance.Declaration
Swift
public struct LayoutRef : LayoutProtocol, GWeakCapturing
-
The
PangoLanguagestructure is used to represent a language.PangoLanguagepointers can be efficiently copied and compared with each other.The
See moreLanguageReftype acts as a lightweight Swift reference to an underlyingPangoLanguageinstance. It exposes methods that can operate on this data type throughLanguageProtocolconformance. UseLanguageRefonly as anunownedreference to an existingPangoLanguageinstance.Declaration
Swift
public struct LanguageRef : LanguageProtocol
-
The
See moreLayoutClassReftype acts as a lightweight Swift reference to an underlyingPangoLayoutClassinstance. It exposes methods that can operate on this data type throughLayoutClassProtocolconformance. UseLayoutClassRefonly as anunownedreference to an existingPangoLayoutClassinstance.Declaration
Swift
public struct LayoutClassRef : LayoutClassProtocol
-
A
PangoLayoutItercan be used to iterate over the visual extents of aPangoLayout.To obtain a
PangoLayoutIter, use [methodPango.Layout.get_iter].The
PangoLayoutIterstructure is opaque, and has no user-visible fields.The
See moreLayoutIterReftype acts as a lightweight Swift reference to an underlyingPangoLayoutIterinstance. It exposes methods that can operate on this data type throughLayoutIterProtocolconformance. UseLayoutIterRefonly as anunownedreference to an existingPangoLayoutIterinstance.Declaration
Swift
public struct LayoutIterRef : LayoutIterProtocol
-
A
PangoLayoutLinerepresents one of the lines resulting from laying out a paragraph viaPangoLayout.PangoLayoutLinestructures are obtained by calling [methodPango.Layout.get_line] and are only valid until the text, attributes, or settings of the parentPangoLayoutare modified.The
See moreLayoutLineReftype acts as a lightweight Swift reference to an underlyingPangoLayoutLineinstance. It exposes methods that can operate on this data type throughLayoutLineProtocolconformance. UseLayoutLineRefonly as anunownedreference to an existingPangoLayoutLineinstance.Declaration
Swift
public struct LayoutLineRef : LayoutLineProtocol
-
The
PangoLogAttrstructure stores information about the attributes of a single character.The
See moreLogAttrReftype acts as a lightweight Swift reference to an underlyingPangoLogAttrinstance. It exposes methods that can operate on this data type throughLogAttrProtocolconformance. UseLogAttrRefonly as anunownedreference to an existingPangoLogAttrinstance.Declaration
Swift
public struct LogAttrRef : LogAttrProtocol
-
A
PangoMatrixspecifies 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 moreMatrixReftype acts as a lightweight Swift reference to an underlyingPangoMatrixinstance. It exposes methods that can operate on this data type throughMatrixProtocolconformance. UseMatrixRefonly as anunownedreference to an existingPangoMatrixinstance.Declaration
Swift
public struct MatrixRef : MatrixProtocol
-
PangoRendereris a base class for objects that can render text provided asPangoGlyphStringorPangoLayout.By subclassing
PangoRendererand overriding operations such asdraw_glyphsanddraw_rectangle, renderers for particular font backends and destinations can be created.The
See moreRendererReftype acts as a lightweight Swift reference to an underlyingPangoRendererinstance. It exposes methods that can operate on this data type throughRendererProtocolconformance. UseRendererRefonly as anunownedreference to an existingPangoRendererinstance.Declaration
Swift
public struct RendererRef : RendererProtocol, GWeakCapturing
-
The
PangoRectanglestructure represents a rectangle.PangoRectangleis 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 moreRectangleReftype acts as a lightweight Swift reference to an underlyingPangoRectangleinstance. It exposes methods that can operate on this data type throughRectangleProtocolconformance. UseRectangleRefonly as anunownedreference to an existingPangoRectangleinstance.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 moreRendererClassReftype acts as a lightweight Swift reference to an underlyingPangoRendererClassinstance. It exposes methods that can operate on this data type throughRendererClassProtocolconformance. UseRendererClassRefonly as anunownedreference to an existingPangoRendererClassinstance.Declaration
Swift
public struct RendererClassRef : RendererClassProtocol
-
A
PangoScriptIteris used to iterate through a string and identify ranges in different scripts.The
See moreScriptIterReftype acts as a lightweight Swift reference to an underlyingPangoScriptIterinstance. It exposes methods that can operate on this data type throughScriptIterProtocolconformance. UseScriptIterRefonly as anunownedreference to an existingPangoScriptIterinstance.Declaration
Swift
public struct ScriptIterRef : ScriptIterProtocol
-
A
PangoTabArraycontains an array of tab stops.PangoTabArraycan 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 moreTabArrayReftype acts as a lightweight Swift reference to an underlyingPangoTabArrayinstance. It exposes methods that can operate on this data type throughTabArrayProtocolconformance. UseTabArrayRefonly as anunownedreference to an existingPangoTabArrayinstance.Declaration
Swift
public struct TabArrayRef : TabArrayProtocol -
The bits in a
See morePangoFontMaskcorrespond 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 morePangoShapeFlagscan 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
View on GitHub
Install in Dash
Structures Reference