W Wrapl, The Programming Language





Nil : T


:"="(_ @ T, _ @ T)

:Copy(self @ T) : Gtk.Pango.AttrIterator.T

Copy a T

iterator a T.
Returns the newly allocated T, which should be freed with Destroy.

:Destroy(self @ T) : Std.Object.T

Destroy a T and free all associated memory.

iterator a T.

:Get(self @ T, type @ Gtk.Pango.AttrType.T) : Gtk.Pango.Attribute.T

Find the current attribute of a particular type at the iterator location. When multiple attributes of the same type overlap, the attribute whose range starts closest to the current location is used.

iterator a T
type the type of attribute to find.
Returns the current attribute of the given type, or NULL if no attribute of that type applies to the current location.

:GetAttrs(self @ T) : Std.Object.T

Gets a list of all attributes at the current position of the iterator.

iterator a T
Returns a list of all attributes for the current range. To free this value, call Gtk.Pango.Attribute.Destroy on each value and g_slist_free() on the list. [element-type Pango.Attribute][transfer full]

:GetFont(self @ T, desc @ Gtk.Pango.FontDescription.T, language @ Std.Object.T, extra_attrs @ Std.Object.T) : Std.Object.T

Get the font and other attributes at the current iterator position.

iterator a T
desc a Gtk.Pango.FontDescription.T to fill in with the current values. The family name in this structure will be set using Gtk.Pango.FontDescription.SetFamilyStatic using values from an attribute in the Gtk.Pango.AttrList.T associated with the iterator, so if you plan to keep it around, you must call: pango_font_description_set_family (desc, pango_font_description_get_family (desc)).
language if non-NULL, location to store language tag for item, or NULL if none is found. [allow-none]
extra_attrs if non-NULL, location in which to store a list of non-font attributes at the the current position; only the highest priority value of each attribute will be added to this list. In order to free this value, you must call Gtk.Pango.Attribute.Destroy on each member. [allow-none][element-type Pango.Attribute][transfer full]

:Next(self @ T) : Std.Symbol.T

Advance the iterator until the next change of style.

iterator a T
Returns FALSE if the iterator is at the end of the list, otherwise TRUE

:Range(self @ T, start @ Std.Object.T, end @ Std.Object.T) : Std.Object.T

Get the range of the current segment. Note that the stored return values are signed, not unsigned like the values in Gtk.Pango.Attribute.T. To deal with this API oversight, stored return values that wouldn't fit into a signed integer are clamped to G_MAXINT.

iterator a T
start location to store the start of the range
end location to store the end of the range

:"~="(_ @ T, _ @ T)