Libraries:Gtk:Pango:FontMetrics
Types
T
Constants
Nil : T
Functions
GetType() : Gtk.GObject.Type.T
Methods
:"="(_ @ T, _ @ T)
:GetApproximateCharWidth(self @ T) : Std.Integer.SmallT
Gets the approximate character width for a font metrics structure. This is merely a representative value useful, for example, for determining the initial size for a window. Actual characters in text will be wider and narrower than this.
metrics | a T structure |
Returns | the character width, in Pango units. |
:GetApproximateDigitWidth(self @ T) : Std.Integer.SmallT
Gets the approximate digit width for a font metrics structure. This is merely a representative value useful, for example, for determining the initial size for a window. Actual digits in text can be wider or narrower than this, though this value is generally somewhat more accurate than the result of GetApproximateCharWidth for digits.
metrics | a T structure |
Returns | the digit width, in Pango units. |
:GetAscent(self @ T) : Std.Integer.SmallT
Gets the ascent from a font metrics structure. The ascent is the distance from the baseline to the logical top of a line of text. (The logical top may be above or below the top of the actual drawn ink. It is necessary to lay out the text to figure where the ink will be.)
metrics | a T structure |
Returns | the ascent, in Pango units. |
:GetDescent(self @ T) : Std.Integer.SmallT
Gets the descent from a font metrics structure. The descent is the distance from the baseline to the logical bottom of a line of text. (The logical bottom may be above or below the bottom of the actual drawn ink. It is necessary to lay out the text to figure where the ink will be.)
metrics | a T structure |
Returns | the descent, in Pango units. |
:GetStrikethroughPosition(self @ T) : Std.Integer.SmallT
Gets the suggested position to draw the strikethrough. The value returned is the distance above the baseline of the top of the strikethrough.
metrics | a T structure |
Returns | the suggested strikethrough position, in Pango units. |
:GetStrikethroughThickness(self @ T) : Std.Integer.SmallT
Gets the suggested thickness to draw for the strikethrough.
metrics | a T structure |
Returns | the suggested strikethrough thickness, in Pango units. |
:GetUnderlinePosition(self @ T) : Std.Integer.SmallT
Gets the suggested position to draw the underline. The value returned is the distance above the baseline of the top of the underline. Since most fonts have underline positions beneath the baseline, this value is typically negative.
metrics | a T structure |
Returns | the suggested underline position, in Pango units. |
:GetUnderlineThickness(self @ T) : Std.Integer.SmallT
Gets the suggested thickness to draw for the underline.
metrics | a T structure |
Returns | the suggested underline thickness, in Pango units. |
:Ref(self @ T) : Gtk.Pango.FontMetrics.T
Increase the reference count of a font metrics structure by one.
:Unref(self @ T) : Std.Object.T
Decrease the reference count of a font metrics structure by one. If the result is zero, frees the structure and any associated memory.