Libraries:Gtk:Pango:Coverage
Types
T
Constants
Nil : T
Functions
FromBytes(bytes @ Std.String.T, n_bytes @ Std.Integer.SmallT) : Gtk.Pango.Coverage.T
Convert data generated from pango_converage_to_bytes() back to a T
bytes | binary data representing a T |
n_bytes | the size of bytes in bytes |
Returns | a newly allocated T, or NULL if the data was invalid. |
New() : Gtk.Pango.Coverage.T
Create a new T
Returns | the newly allocated T, initialized to Gtk.Pango.CoverageLevel.None with a reference count of one, which should be freed with Unref. |
Methods
:"="(_ @ T, _ @ T)
:Copy(self @ T) : Gtk.Pango.Coverage.T
Copy an existing T. (This function may now be unnecessary since we refcount the structure. File a bug if you use it.)
coverage | a T |
Returns | the newly allocated T, with a reference count of one, which should be freed with Unref. |
:Get(self @ T, index_ @ Std.Integer.SmallT) : Gtk.Pango.CoverageLevel.T
Determine whether a particular index is covered by coverage
coverage | a T |
index_ | the index to check |
Returns | the coverage level of coverage for character index_. |
:Max(self @ T, other @ Gtk.Pango.Coverage.T) : Std.Object.T
Set the coverage for each index in coverage to be the max (better) value of the current coverage for the index and the coverage for the corresponding index in other.
:Ref(self @ T) : Gtk.Pango.Coverage.T
:Set(self @ T, index_ @ Std.Integer.SmallT, level @ Gtk.Pango.CoverageLevel.T) : Std.Object.T
Modify a particular index within coverage
coverage | a T |
index_ | the index to modify |
level | the new level for index_ |
:ToBytes(self @ T, bytes @ Std.Object.T, n_bytes @ Std.Object.T) : Std.Object.T
Convert a T structure into a flat binary format
coverage | a T |
bytes | location to store result (must be freed with g_free()) |
n_bytes | location to store size of result |
:Unref(self @ T) : Std.Object.T
Decrease the reference count on the T by one. If the result is zero, free the coverage and all associated memory.
coverage | a T |