Package: pango

Function pango-layout-set-markup-with-accel

Lambda List

pango-layout-set-markup-with-accel (layout markup accel-marker)

Arguments

layout -- a pango-layout object
markup -- a string with the marked-up text (see markup format)
accel-marker -- an unsigned integer with the marker for accelerators in the text

Return Value

Returns the first located accelerator.

Details

Sets the layout text and attribute list from marked-up text (see markup format). Replaces the current text and attribute list.

If accel-marker is nonzero, the given character will mark the character following it as an accelerator. For example, accel-marker might be an ampersand or underscore. All characters marked as an accelerator will receive a PANGO_UNDERLINE_LOW attribute, and the first character so marked will be returned. Two accel-marker characters following each other produce a single literal accel-marker character.
 

See also

2021-1-13