TextAttributes

Using gtk.TextAttributes directly should rarely be necessary. It’s primarily useful with TextIter.getAttributes. As with most GTK+ structs, the fields in this struct should only be read, never modified directly.

Constructors

this
this(GtkTextAttributes* gtkTextAttributes, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a gtk.TextAttributes, which describes a set of properties on some text.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

copy
TextAttributes copy()

Copies src and returns a new gtk.TextAttributes

copyValues
void copyValues(TextAttributes dest)

Copies the values from src to dest so that dest has the same values as src. Frees existing values in dest.

getStruct
void* getStruct()

the main Gtk struct as a void*

getTextAttributesStruct
GtkTextAttributes* getTextAttributesStruct(bool transferOwnership)

Get the main Gtk struct

ref_
TextAttributes ref_()

Increments the reference count on values.

unref
void unref()

Decrements the reference count on values, freeing the structure if the reference count reaches 0.

Static functions

getType
GType getType()

Variables

gtkTextAttributes
GtkTextAttributes* gtkTextAttributes;

the main Gtk struct