Attribute

class Attribute(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

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.

Constructors

Link copied to clipboard
constructor()

Allocate a new Attribute.

constructor(scope: <Error class: unknown class>)

Allocate a new Attribute using the provided AutofreeScope.

constructor(klass: AttrClass?, startIndex: <Error class: unknown class>, endIndex: <Error class: unknown class>)

Allocate a new Attribute.

constructor(klass: AttrClass?, startIndex: <Error class: unknown class>, endIndex: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new Attribute using the provided AutofreeScope.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var endIndex: <Error class: unknown class>

end index of the range (in bytes). The character at this index is not included in the range.

Link copied to clipboard

the class structure holding information about the type of the attribute

Link copied to clipboard
val pangoAttributePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
var startIndex: <Error class: unknown class>

the start index of the range (in bytes).

Functions

Link copied to clipboard

Returns the attribute cast to PangoAttrColor.

Link copied to clipboard

Returns the attribute cast to PangoAttrFloat.

Link copied to clipboard

Returns the attribute cast to PangoAttrFontDesc.

Link copied to clipboard

Returns the attribute cast to PangoAttrFontFeatures.

Link copied to clipboard
fun asInt(): AttrInt?

Returns the attribute cast to PangoAttrInt.

Link copied to clipboard

Returns the attribute cast to PangoAttrLanguage.

Link copied to clipboard

Returns the attribute cast to PangoAttrShape.

Link copied to clipboard

Returns the attribute cast to PangoAttrSize.

Link copied to clipboard

Returns the attribute cast to PangoAttrString.

Link copied to clipboard

Make a copy of an attribute.

Link copied to clipboard
fun destroy()

Destroy a PangoAttribute and free all associated memory.

Link copied to clipboard
fun equal(attr2: Attribute): Boolean

Compare two attributes for equality.

Link copied to clipboard
fun init(klass: AttrClass)

Initializes @attr's klass to @klass, it's start_index to %PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING and end_index to %PANGO_ATTR_INDEX_TO_TEXT_END such that the attribute applies to the entire text by default.

Link copied to clipboard
open override fun toString(): String