Last chance! 50% off unlimited learning
Sale ends in
pangoParseMarkup(markup.text, accel.marker, .errwarn = TRUE)
pangoAttrTypeRegister(name)
pangoAttrTypeGetName(type)
pangoAttributeInit(attr, klass)
pangoAttributeCopy(object)
pangoAttributeEqual(object, attr2)
pangoAttrLanguageNew(language)
pangoAttrFamilyNew(family)
pangoAttrStyleNew(style)
pangoAttrVariantNew(variant)
pangoAttrStretchNew(stretch)
pangoAttrWeightNew(weight)
pangoAttrSizeNew(size)
pangoAttrSizeNewAbsolute(size)
pangoAttrFontDescNew(desc)
pangoAttrForegroundNew(red, green, blue)
pangoAttrBackgroundNew(red, green, blue)
pangoAttrStrikethroughNew(strikethrough)
pangoAttrStrikethroughColorNew(red, green, blue)
pangoAttrUnderlineNew(underline)
pangoAttrUnderlineColorNew(red, green, blue)
pangoAttrShapeNew(ink.rect, logical.rect)
pangoAttrShapeNewWithData(ink.rect, logical.rect, data)
pangoAttrScaleNew(scale.factor)
pangoAttrRiseNew(rise)
pangoAttrLetterSpacingNew(letter.spacing)
pangoAttrFallbackNew(fallback)
pangoAttrGravityNew(gravity)
pangoAttrGravityHintNew(hint)
pangoColorParse(spec)
pangoColorCopy(object)
pangoColorFree(object)
pangoColorToString(object)
pangoAttrListNew()
pangoAttrListCopy(object)
pangoAttrListInsert(object, attr)
pangoAttrListInsertBefore(object, attr)
pangoAttrListChange(object, attr)
pangoAttrListSplice(object, other, pos, len)
pangoAttrListFilter(object, func, data)
pangoAttrListGetIterator(object)
pangoAttrIteratorCopy(object)
pangoAttrIteratorNext(object)
pangoAttrIteratorRange(object)
pangoAttrIteratorGet(object, type)
pangoAttrIteratorGetFont(object)
pangoAttrIteratorGetAttrs(object)
PangoLayout
. The data types and functions in
this section are used to represent and manipulate sets
of attributes applied to a portion of text.PangoAttrClass
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
. PangoAttribute
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 pangoAttributeInit
.
By default an attribute will have an all-inclusive range of [0,G_MAXUINT
]. klass
PangoAttrClass
] the class structure holding information about the type of the attributestartIndex
endIndex
PangoAttrString
PangoAttrString
structure is used to represent attributes with
a string value. PangoAttrLanguage
PangoAttrLanguage
structure is used to represent attributes that
are languages. PangoAttrColor
PangoAttrColor
structure is used to represent attributes that
are colors. PangoAttrInt
PangoAttrInt
structure is used to represent attributes with
an integer or enumeration value. PangoAttrFloat
PangoAttrFloat
structure is used to represent attributes with
a float or double value. PangoAttrFontDesc
PangoAttrFontDesc
structure is used to store an attribute that
sets all aspects of the font description at once. PangoAttrShape
PangoAttrShape
structure is used to represent attributes which
impose shape restrictions. inkRect
PangoRectangle
] the common portion of the attributelogicalRect
PangoRectangle
] the ink rectangle to restrict toPangoAttrSize
PangoAttrShape
structure is used to represent attributes which
set font size. size
absolute
PANGO_SCALE
of a point (for
PANGO_ATTR_SIZE
) or of a device uni (for PANGO_ATTR_ABSOLUTE_SIZE
)PangoColor
PangoColor
structure is used to
represent a color in an uncalibrated RGB color-space. red
green
blue
PangoAttrList
PangoAttrList
structure represents a list of attributes
that apply to a section of text. The attributes are, in general,
allowed to overlap in an arbitrary fashion, however, if the
attributes are manipulated only through pangoAttrListChange
,
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 single PangoAttrList
for more than one paragraph of text. PangoAttrIterator
PangoAttrIterator
structure is used to represent an
iterator through a PangoAttrList
. A new iterator is created
with pangoAttrListGetIterator
. Once the iterator
is created, it can be advanced through the style changes
in the text using pangoAttrIteratorNext
. At each
style change, the range of the current style segment and the
attributes currently in effect can be queried. PangoAttrType
PangoAttrType
distinguishes between different types of attributes. Along with the
predefined values, it is possible to allocate additional values
for custom attributes using pangoAttrTypeRegister
. The predefined
values are given below. The type of structure used to store the
attribute is listed in parentheses after the description. invalid
language
PangoAttrLanguage
)family
PangoAttrString
)style
PangoAttrInt
)weight
PangoAttrInt
)variant
PangoAttrInt
)stretch
PangoAttrInt
)size
PANGO_SCALE
(PangoAttrInt
)font-desc
PangoAttrFontDesc
)foreground
PangoAttrColor
)background
PangoAttrColor
)underline
PangoAttrInt
)strikethrough
PangoAttrInt
)rise
PangoAttrInt
)shape
PangoAttrShape
)scale
PangoAttrFloat
)fallback
PangoAttrInt
)letter-spacing
PangoAttrInt
)underline-color
PangoAttrColor
)strikethrough-color
PangoAttrColor
)absolute-size
PANGO_SCALE
(PangoAttrInt
)gravity
PangoAttrInt
)gravity-hint
PangoAttrInt
)PangoUnderline
PangoUnderline
enumeration is used to specify
whether text should be underlined, and if so, the type
of underlining. none
single
double
low
PANGO_UNDERLINE_SINGLE
should
be used for extended portions of text.PangoAttrDataCopyFunc(data)
data
. PangoAttrFilterFunc(attribute, data)
pangoAttrListFilter
to filter out a subset of attributes for a list. attribute
PangoAttribute
] a PangoAttribute
data
pangoAttrListFilter
TRUE
if the attribute should be filtered out