W Wrapl, The Programming Language

Libraries:Gtk:Cairo:FontOptions

Types

T

Constants

Nil : T

Functions

Create() : Gtk.Cairo.FontOptions.T

Allocates a new font options object with all options initialized to default values.

Returns a newly allocated T. Free with Destroy. This function always returns a valid pointer; if memory cannot be allocated, then a special error object is returned where all operations on the object do nothing. You can check for this with Status.


Methods

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

:Copy(self @ T) : Gtk.Cairo.FontOptions.T

Allocates a new font options object copying the option values from original.

original a T
Returns a newly allocated T. Free with Destroy. This function always returns a valid pointer; if memory cannot be allocated, then a special error object is returned where all operations on the object do nothing. You can check for this with Status.


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

Destroys a T object created with Create or Copy.

options a T


:Equal(self @ T, other @ Gtk.Cairo.FontOptions.T) : Std.Integer.SmallT

Compares two font options objects for equality.

options a T
other another T
Returns TRUE if all fields of the two font options objects match. Note that this function will return FALSE if either object is in error.


:GetAntialias(self @ T) : Gtk.Cairo.Antialias.T

Gets the antialiasing mode for the font options object.

options a T
Returns the antialiasing mode


:GetHintMetrics(self @ T) : Gtk.Cairo.HintMetrics.T

Gets the metrics hinting mode for the font options object. See the documentation for Gtk.Cairo.HintMetrics.T for full details.

options a T
Returns the metrics hinting mode for the font options object


:GetHintStyle(self @ T) : Gtk.Cairo.HintStyle.T

Gets the hint style for font outlines for the font options object. See the documentation for Gtk.Cairo.HintStyle.T for full details.

options a T
Returns the hint style for the font options object


:GetSubpixelOrder(self @ T) : Gtk.Cairo.SubpixelOrder.T

Gets the subpixel order for the font options object. See the documentation for Gtk.Cairo.SubpixelOrder.T for full details.

options a T
Returns the subpixel order for the font options object


:Hash(self @ T) : Std.Integer.SmallT

Compute a hash for the font options object; this value will be useful when storing an object containing a T in a hash table.

options a T
Returns the hash value for the font options object. The return value can be cast to a 32-bit type if a 32-bit hash value is needed.


:Merge(self @ T, other @ Gtk.Cairo.FontOptions.T) : Std.Object.T

Merges non-default options from other into options, replacing existing values. This operation can be thought of as somewhat similar to compositing other onto options with the operation of CAIRO_OPERATION_OVER.

options a T
other another T


:SetAntialias(self @ T, antialias @ Gtk.Cairo.Antialias.T) : Std.Object.T

Sets the antialiasing mode for the font options object. This specifies the type of antialiasing to do when rendering text.

options a T
antialias the new antialiasing mode


:SetHintMetrics(self @ T, hint_metrics @ Gtk.Cairo.HintMetrics.T) : Std.Object.T

Sets the metrics hinting mode for the font options object. This controls whether metrics are quantized to integer values in device units. See the documentation for Gtk.Cairo.HintMetrics.T for full details.

options a T
hint_metrics the new metrics hinting mode


:SetHintStyle(self @ T, hint_style @ Gtk.Cairo.HintStyle.T) : Std.Object.T

Sets the hint style for font outlines for the font options object. This controls whether to fit font outlines to the pixel grid, and if so, whether to optimize for fidelity or contrast. See the documentation for Gtk.Cairo.HintStyle.T for full details.

options a T
hint_style the new hint style


:SetSubpixelOrder(self @ T, subpixel_order @ Gtk.Cairo.SubpixelOrder.T) : Std.Object.T

Sets the subpixel order for the font options object. The subpixel order specifies the order of color elements within each pixel on the display device when rendering with an antialiasing mode of Gtk.Cairo.Antialias.Subpixel. See the documentation for Gtk.Cairo.SubpixelOrder.T for full details.

options a T
subpixel_order the new subpixel order


:Status(self @ T) : Gtk.Cairo.Status.T

Checks whether an error has previously occurred for this font options object



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