pango

MoonBit bindings for Pango text layout and rendering

pango
ffi
native
gtk
text
font
moon add tonyfettes/pango@0.2.0
Download zip
Version
0.2.0
License
Apache-2.0
Last updated
23 days ago
Downloads
233

Dependencies

README

#pango

Generated MoonBit bindings for Pango, the text layout and rendering library.

#Coverage

  • 6 classes — Context, Layout, FontMap, Font, FontFace, FontFamily
  • 17 enums — Alignment, EllipsizeMode, WrapMode, Weight, Style, Variant, etc.

#Notes

Bindings are generated from GIR XML by the code generator. Pango handles text shaping, layout, and font selection. It is used by GTK for all text rendering.

#
Glyph

type Glyph = UInt

#
GlyphUnit

type GlyphUnit = Int

#
IAnalysis

pub(open) trait IAnalysis {
fn as_analysis(Self) -> Analysis
}

#
IAttrColor

pub(open) trait IAttrColor {
fn as_attr_color(Self) -> AttrColor
}

#
IAttrFloat

pub(open) trait IAttrFloat {
fn as_attr_float(Self) -> AttrFloat
}

#
IAttrFontDesc

pub(open) trait IAttrFontDesc {
fn as_attr_font_desc(Self) -> AttrFontDesc
}

#
IAttrFontFeatures

pub(open) trait IAttrFontFeatures {
fn as_attr_font_features(Self) -> AttrFontFeatures
}

#
IAttrInt

pub(open) trait IAttrInt {
fn as_attr_int(Self) -> AttrInt
}

#
IAttrIterator

pub(open) trait IAttrIterator {
fn as_attr_iterator(Self) -> AttrIterator
fn get(Self, AttrType) -> Attribute? = _
fn get_attrs(Self) -> Array[Attribute] = _
fn next(Self) -> Bool = _
fn range(Self) -> (Int, Int) = _
}

#
IAttrLanguage

pub(open) trait IAttrLanguage {
fn as_attr_language(Self) -> AttrLanguage
}

#
IAttrList

pub(open) trait IAttrList {
fn as_attr_list(Self) -> AttrList
fn change(Self, Attribute) -> Unit = _
fn equal(Self, AttrList) -> Bool = _
fn get_attributes(Self) -> Array[Attribute] = _
fn get_iterator(Self) -> AttrIterator = _
fn insert(Self, Attribute) -> Unit = _
fn insert_before(Self, Attribute) -> Unit = _
fn ref_(Self) -> AttrList = _
fn splice(Self, AttrList, Int, Int) -> Unit = _
fn to_string(Self) -> String = _
fn update(Self, Int, Int, Int) -> Unit = _
}

#
IAttrShape

pub(open) trait IAttrShape {
fn as_attr_shape(Self) -> AttrShape
}

#
IAttrSize

pub(open) trait IAttrSize {
fn as_attr_size(Self) -> AttrSize
}

#
IAttrString

pub(open) trait IAttrString {
fn as_attr_string(Self) -> AttrString
}

#
IAttribute

pub(open) trait IAttribute {
fn as_attribute(Self) -> Attribute
fn as_color(Self) -> AttrColor? = _
fn as_float(Self) -> AttrFloat? = _
fn as_font_desc(Self) -> AttrFontDesc? = _
fn as_font_features(Self) -> AttrFontFeatures? = _
fn as_int(Self) -> AttrInt? = _
fn as_language(Self) -> AttrLanguage? = _
fn as_shape(Self) -> AttrShape? = _
fn as_size(Self) -> AttrSize? = _
fn as_string(Self) -> AttrString? = _
fn equal(Self, Attribute) -> Bool = _
}

#
IColor

pub(open) trait IColor {
fn as_color(Self) -> Color
fn parse(Self, String) -> Bool = _
fn parse_with_alpha(Self, String) -> UInt? = _
fn to_string(Self) -> String = _
}

#
IContext

pub(open) trait IContext {
fn as_context(Self) -> Context
fn changed(Self) -> Unit = _
fn get_base_dir(Self) -> Direction = _
fn get_base_gravity(Self) -> Gravity = _
fn get_font_description(Self) -> FontDescription? = _
fn get_font_map(Self) -> FontMap? = _
fn get_gravity(Self) -> Gravity = _
fn get_gravity_hint(Self) -> GravityHint = _
fn get_language(Self) -> Language = _
fn get_matrix(Self) -> Matrix? = _
fn get_metrics(Self, FontDescription?, Language?) -> FontMetrics = _
fn get_round_glyph_positions(Self) -> Bool = _
fn get_serial(Self) -> UInt = _
fn list_families(Self) -> Array[FontFamily] = _
fn load_font(Self, FontDescription) -> Font? = _
fn load_fontset(Self, FontDescription, Language) -> Fontset? = _
fn set_base_dir(Self, Direction) -> Unit = _
fn set_base_gravity(Self, Gravity) -> Unit = _
fn set_font_description(Self, FontDescription) -> Unit = _
fn set_font_map(Self, &IFontMap?) -> Unit = _
fn set_gravity_hint(Self, GravityHint) -> Unit = _
fn set_language(Self, Language?) -> Unit = _
fn set_matrix(Self, Matrix?) -> Unit = _
fn set_round_glyph_positions(Self, Bool) -> Unit = _
}

#
ICoverage

pub(open) trait ICoverage {
fn as_coverage(Self) -> Coverage
fn copy(Self) -> Coverage = _
fn get(Self, Int) -> CoverageLevel = _
fn set(Self, Int, CoverageLevel) -> Unit = _
}

#
IFont

pub(open) trait IFont {
fn as_font(Self) -> Font
fn describe(Self) -> FontDescription = _
fn describe_with_absolute_size(Self) -> FontDescription = _
fn get_coverage(Self, Language) -> Coverage = _
fn get_face(Self) -> FontFace? = _
fn get_font_map(Self) -> FontMap? = _
fn get_glyph_extents(Self, UInt) -> (Rectangle, Rectangle) = _
fn get_languages(Self) -> Array[Language]? = _
fn get_metrics(Self, Language?) -> FontMetrics = _
fn has_char(Self, UInt) -> Bool = _
fn serialize(Self) -> Bytes = _
}

#
IFontDescription

pub(open) trait IFontDescription {
fn as_font_description(Self) -> FontDescription
fn better_match(Self, FontDescription?, FontDescription) -> Bool = _
fn copy_static(Self) -> FontDescription? = _
fn equal(Self, FontDescription) -> Bool = _
fn get_color(Self) -> FontColor = _
fn get_family(Self) -> String? = _
fn get_features(Self) -> String? = _
fn get_gravity(Self) -> Gravity = _
fn get_set_fields(Self) -> FontMask = _
fn get_size(Self) -> Int = _
fn get_size_is_absolute(Self) -> Bool = _
fn get_stretch(Self) -> Stretch = _
fn get_style(Self) -> Style = _
fn get_variant(Self) -> Variant = _
fn get_variations(Self) -> String? = _
fn get_weight(Self) -> Weight = _
fn hash(Self) -> UInt = _
fn merge(Self, FontDescription?, Bool) -> Unit = _
fn merge_static(Self, FontDescription, Bool) -> Unit = _
fn set_absolute_size(Self, Double) -> Unit = _
fn set_color(Self, FontColor) -> Unit = _
fn set_family(Self, String) -> Unit = _
fn set_family_static(Self, String) -> Unit = _
fn set_features(Self, String?) -> Unit = _
fn set_features_static(Self, String) -> Unit = _
fn set_gravity(Self, Gravity) -> Unit = _
fn set_size(Self, Int) -> Unit = _
fn set_stretch(Self, Stretch) -> Unit = _
fn set_style(Self, Style) -> Unit = _
fn set_variant(Self, Variant) -> Unit = _
fn set_variations(Self, String?) -> Unit = _
fn set_variations_static(Self, String) -> Unit = _
fn set_weight(Self, Weight) -> Unit = _
fn to_filename(Self) -> String? = _
fn to_string(Self) -> String = _
fn unset_fields(Self, FontMask) -> Unit = _
}

#
IFontFace

pub(open) trait IFontFace {
fn as_font_face(Self) -> FontFace
fn describe(Self) -> FontDescription = _
fn get_face_name(Self) -> String = _
fn get_family(Self) -> FontFamily = _
fn is_synthesized(Self) -> Bool = _
fn list_sizes(Self) -> Array[Int] = _
}

#
IFontFamily

pub(open) trait IFontFamily {
fn as_font_family(Self) -> FontFamily
fn get_face(Self, String?) -> FontFace? = _
fn get_name(Self) -> String = _
fn is_monospace(Self) -> Bool = _
fn is_variable(Self) -> Bool = _
fn list_faces(Self) -> Array[FontFace] = _
}

#
IFontMap

pub(open) trait IFontMap {
fn as_font_map(Self) -> FontMap
fn add_font_file(Self, String) -> Bool raise
Error_
= _
fn changed(Self) -> Unit = _
fn create_context(Self) -> Context = _
fn get_family(Self, String) -> FontFamily? = _
fn get_serial(Self) -> UInt = _
fn list_families(Self) -> Array[FontFamily] = _
fn load_font(Self, &IContext, FontDescription) -> Font? = _
fn load_fontset(Self, &IContext, FontDescription, Language) -> Fontset? = _
fn reload_font(Self, &IFont, Double, &IContext?, String?) -> Font = _
}

#
IFontMetrics

pub(open) trait IFontMetrics {
fn as_font_metrics(Self) -> FontMetrics
fn get_approximate_char_width(Self) -> Int = _
fn get_approximate_digit_width(Self) -> Int = _
fn get_ascent(Self) -> Int = _
fn get_descent(Self) -> Int = _
fn get_height(Self) -> Int = _
fn get_strikethrough_position(Self) -> Int = _
fn get_strikethrough_thickness(Self) -> Int = _
fn get_underline_position(Self) -> Int = _
fn get_underline_thickness(Self) -> Int = _
fn ref_(Self) -> FontMetrics? = _
}

#
IFontset

pub(open) trait IFontset {
fn as_fontset(Self) -> Fontset
fn get_font(Self, UInt) -> Font = _
fn get_metrics(Self) -> FontMetrics = _
}

#
IGlyphGeometry

pub(open) trait IGlyphGeometry {
fn as_glyph_geometry(Self) -> GlyphGeometry
}

#
IGlyphInfo

pub(open) trait IGlyphInfo {
fn as_glyph_info(Self) -> GlyphInfo
}

#
IGlyphItem

pub(open) trait IGlyphItem {
fn as_glyph_item(Self) -> GlyphItem
fn apply_attrs(Self, String, AttrList) -> Array[GlyphItem] = _
fn get_logical_widths(Self, String) -> Array[Int] = _
fn letter_space(Self, String, FixedArray[LogAttr], Int) -> Unit = _
fn split(Self, String, Int) -> GlyphItem? = _
}

#
IGlyphString

pub(open) trait IGlyphString {
fn as_glyph_string(Self) -> GlyphString
fn extents(Self, &IFont) -> (Rectangle, Rectangle) = _
fn extents_range(Self, Int, Int, &IFont) -> (Rectangle, Rectangle) = _
fn get_logical_widths(Self, String, Int, Int) -> Array[Int] = _
fn get_width(Self) -> Int = _
fn index_to_x(Self, String, Int, Analysis, Int, Bool) -> Int = _
fn index_to_x_full(Self, String, Int, Analysis, FixedArray[LogAttr]?, Int, Bool) -> Int = _
fn set_size(Self, Int) -> Unit = _
fn x_to_index(Self, String, Int, Analysis, Int) -> (Int, Int) = _
}

#
IGlyphVisAttr

pub(open) trait IGlyphVisAttr {
fn as_glyph_vis_attr(Self) -> GlyphVisAttr
}

#
IItem

pub(open) trait IItem {
fn as_item(Self) -> Item
fn apply_attrs(Self, AttrIterator) -> Unit = _
fn get_char_offset(Self) -> Int = _
fn split(Self, Int, Int) -> Item = _
}

#
ILanguage

pub(open) trait ILanguage {
fn as_language(Self) -> Language
fn get_sample_string(Self) -> String = _
fn get_scripts(Self) -> Array[Int]? = _
fn includes_script(Self, Script) -> Bool = _
fn matches(Self, String) -> Bool = _
fn to_string(Self) -> String = _
}

#
ILayout

pub(open) trait ILayout {
fn as_layout(Self) -> Layout
fn context_changed(Self) -> Unit = _
fn copy(Self) -> Layout = _
fn get_alignment(Self) -> Alignment = _
fn get_attributes(Self) -> AttrList? = _
fn get_auto_dir(Self) -> Bool = _
fn get_baseline(Self) -> Int = _
fn get_caret_pos(Self, Int) -> (Rectangle, Rectangle) = _
fn get_character_count(Self) -> Int = _
fn get_context(Self) -> Context = _
fn get_cursor_pos(Self, Int) -> (Rectangle, Rectangle) = _
fn get_direction(Self, Int) -> Direction = _
fn get_ellipsize(Self) -> EllipsizeMode = _
fn get_extents(Self) -> (Rectangle, Rectangle) = _
fn get_font_description(Self) -> FontDescription? = _
fn get_height(Self) -> Int = _
fn get_indent(Self) -> Int = _
fn get_iter(Self) -> LayoutIter = _
fn get_justify(Self) -> Bool = _
fn get_justify_last_line(Self) -> Bool = _
fn get_line(Self, Int) -> LayoutLine? = _
fn get_line_count(Self) -> Int = _
fn get_line_readonly(Self, Int) -> LayoutLine? = _
fn get_line_spacing(Self) -> Float = _
fn get_lines(Self) -> Array[LayoutLine] = _
fn get_lines_readonly(Self) -> Array[LayoutLine] = _
fn get_log_attrs(Self) -> Array[LogAttr] = _
fn get_log_attrs_readonly(Self) -> Array[LogAttr] = _
fn get_pixel_extents(Self) -> (Rectangle, Rectangle) = _
fn get_pixel_size(Self) -> (Int, Int) = _
fn get_serial(Self) -> UInt = _
fn get_single_paragraph_mode(Self) -> Bool = _
fn get_size(Self) -> (Int, Int) = _
fn get_spacing(Self) -> Int = _
fn get_tabs(Self) -> TabArray? = _
fn get_text(Self) -> String = _
fn get_unknown_glyphs_count(Self) -> Int = _
fn get_width(Self) -> Int = _
fn get_wrap(Self) -> WrapMode = _
fn index_to_line_x(Self, Int, Bool) -> (Int, Int) = _
fn index_to_pos(Self, Int) -> Rectangle = _
fn is_ellipsized(Self) -> Bool = _
fn is_wrapped(Self) -> Bool = _
fn move_cursor_visually(Self, Bool, Int, Int, Int) -> (Int, Int) = _
fn serialize(Self, LayoutSerializeFlags) -> Bytes = _
fn set_alignment(Self, Alignment) -> Unit = _
fn set_attributes(Self, AttrList?) -> Unit = _
fn set_auto_dir(Self, Bool) -> Unit = _
fn set_ellipsize(Self, EllipsizeMode) -> Unit = _
fn set_font_description(Self, FontDescription?) -> Unit = _
fn set_height(Self, Int) -> Unit = _
fn set_indent(Self, Int) -> Unit = _
fn set_justify(Self, Bool) -> Unit = _
fn set_justify_last_line(Self, Bool) -> Unit = _
fn set_line_spacing(Self, Float) -> Unit = _
fn set_markup(Self, String, Int) -> Unit = _
fn set_markup_with_accel(Self, String, Int, UInt) -> UInt = _
fn set_single_paragraph_mode(Self, Bool) -> Unit = _
fn set_spacing(Self, Int) -> Unit = _
fn set_tabs(Self, TabArray?) -> Unit = _
fn set_text(Self, String, Int) -> Unit = _
fn set_width(Self, Int) -> Unit = _
fn set_wrap(Self, WrapMode) -> Unit = _
fn write_to_file(Self, LayoutSerializeFlags, String) -> Bool raise
Error_
= _
fn xy_to_index(Self, Int, Int) -> (Bool, Int, Int) = _
}

#
ILayoutIter

pub(open) trait ILayoutIter {
fn as_layout_iter(Self) -> LayoutIter
fn at_last_line(Self) -> Bool = _
fn get_baseline(Self) -> Int = _
fn get_char_extents(Self) -> Rectangle = _
fn get_cluster_extents(Self) -> (Rectangle, Rectangle) = _
fn get_index(Self) -> Int = _
fn get_layout(Self) -> Layout? = _
fn get_layout_extents(Self) -> (Rectangle, Rectangle) = _
fn get_line(Self) -> LayoutLine? = _
fn get_line_extents(Self) -> (Rectangle, Rectangle) = _
fn get_line_readonly(Self) -> LayoutLine? = _
fn get_line_yrange(Self) -> (Int, Int) = _
fn get_run(Self) -> GlyphItem? = _
fn get_run_baseline(Self) -> Int = _
fn get_run_extents(Self) -> (Rectangle, Rectangle) = _
fn get_run_readonly(Self) -> GlyphItem? = _
fn next_char(Self) -> Bool = _
fn next_cluster(Self) -> Bool = _
fn next_line(Self) -> Bool = _
fn next_run(Self) -> Bool = _
}

#
ILayoutLine

pub(open) trait ILayoutLine {
fn as_layout_line(Self) -> LayoutLine
fn get_extents(Self) -> (Rectangle, Rectangle) = _
fn get_height(Self) -> Int = _
fn get_length(Self) -> Int = _
fn get_pixel_extents(Self) -> (Rectangle, Rectangle) = _
fn get_resolved_direction(Self) -> Direction = _
fn get_start_index(Self) -> Int = _
fn get_x_ranges(Self, Int, Int) -> Array[Int] = _
fn index_to_x(Self, Int, Bool) -> Int = _
fn is_paragraph_start(Self) -> Bool = _
fn ref_(Self) -> LayoutLine? = _
fn x_to_index(Self, Int) -> (Bool, Int, Int) = _
}

#
ILogAttr

pub(open) trait ILogAttr {
fn as_log_attr(Self) -> LogAttr
}

#
IMatrix

pub(open) trait IMatrix {
fn as_matrix(Self) -> Matrix
fn concat(Self, Matrix) -> Unit = _
fn get_font_scale_factor(Self) -> Double = _
fn get_font_scale_factors(Self) -> (Double, Double) = _
fn get_slant_ratio(Self) -> Double = _
fn rotate(Self, Double) -> Unit = _
fn scale(Self, Double, Double) -> Unit = _
fn transform_distance(Self, Double, Double) -> (Double, Double) = _
fn transform_pixel_rectangle(Self, Rectangle) -> Unit = _
fn transform_point(Self, Double, Double) -> (Double, Double) = _
fn transform_rectangle(Self, Rectangle) -> Unit = _
fn translate(Self, Double, Double) -> Unit = _
}

#
IRectangle

pub(open) trait IRectangle {
fn as_rectangle(Self) -> Rectangle
}

#
IRenderer

pub(open) trait IRenderer {
fn as_renderer(Self) -> Renderer
fn activate(Self) -> Unit = _
fn deactivate(Self) -> Unit = _
fn draw_error_underline(Self, Int, Int, Int, Int) -> Unit = _
fn draw_glyph(Self, &IFont, UInt, Double, Double) -> Unit = _
fn draw_glyph_item(Self, String?, GlyphItem, Int, Int) -> Unit = _
fn draw_glyphs(Self, &IFont, GlyphString, Int, Int) -> Unit = _
fn draw_layout(Self, &ILayout, Int, Int) -> Unit = _
fn draw_layout_line(Self, LayoutLine, Int, Int) -> Unit = _
fn draw_rectangle(Self, RenderPart, Int, Int, Int, Int) -> Unit = _
fn draw_trapezoid(Self, RenderPart, Double, Double, Double, Double, Double, Double) -> Unit = _
fn get_alpha(Self, RenderPart) -> UInt = _
fn get_color(Self, RenderPart) -> Color? = _
fn get_layout(Self) -> Layout? = _
fn get_layout_line(Self) -> LayoutLine? = _
fn get_matrix(Self) -> Matrix? = _
fn part_changed(Self, RenderPart) -> Unit = _
fn set_alpha(Self, RenderPart, UInt) -> Unit = _
fn set_color(Self, RenderPart, Color?) -> Unit = _
fn set_matrix(Self, Matrix?) -> Unit = _
}

#
ITabArray

pub(open) trait ITabArray {
fn as_tab_array(Self) -> TabArray
fn get_decimal_point(Self, Int) -> UInt = _
fn get_positions_in_pixels(Self) -> Bool = _
fn get_size(Self) -> Int = _
fn get_tab(Self, Int) -> (TabAlign, Int) = _
fn get_tabs(Self) -> (Array[TabAlign], Array[Int]) = _
fn resize(Self, Int) -> Unit = _
fn set_decimal_point(Self, Int, UInt) -> Unit = _
fn set_positions_in_pixels(Self, Bool) -> Unit = _
fn set_tab(Self, Int, TabAlign, Int) -> Unit = _
fn sort(Self) -> Unit = _
fn to_string(Self) -> String = _
}

#
VFontMapChanged

pub(open) trait VFontMapChanged {
fn changed(Self, FontMap) -> Unit
}

Implementation contract for FontMap.changed. Self is the retained MoonBit state; the second parameter is the invoked FontMap object.

#
VRendererBegin

pub(open) trait VRendererBegin {
fn begin(Self, Renderer) -> Unit
}

Implementation contract for Renderer.begin. Self is the retained MoonBit state; the second parameter is the invoked Renderer object.

#
VRendererDrawErrorUnderline

pub(open) trait VRendererDrawErrorUnderline {
fn draw_error_underline(Self, Renderer, Int, Int, Int, Int) -> Unit
}

Implementation contract for Renderer.draw_error_underline. Self is the retained MoonBit state; the second parameter is the invoked Renderer object.

#
VRendererDrawGlyph

pub(open) trait VRendererDrawGlyph {
fn draw_glyph(Self, Renderer, &IFont, UInt, Double, Double) -> Unit
}

Implementation contract for Renderer.draw_glyph. Self is the retained MoonBit state; the second parameter is the invoked Renderer object.

#
VRendererDrawGlyphItem

pub(open) trait VRendererDrawGlyphItem {
fn draw_glyph_item(Self, Renderer, String?, GlyphItem, Int, Int) -> Unit
}

Implementation contract for Renderer.draw_glyph_item. Self is the retained MoonBit state; the second parameter is the invoked Renderer object.

#
VRendererDrawGlyphs

pub(open) trait VRendererDrawGlyphs {
fn draw_glyphs(Self, Renderer, &IFont, GlyphString, Int, Int) -> Unit
}

Implementation contract for Renderer.draw_glyphs. Self is the retained MoonBit state; the second parameter is the invoked Renderer object.

#
VRendererDrawRectangle

pub(open) trait VRendererDrawRectangle {
fn draw_rectangle(Self, Renderer, RenderPart, Int, Int, Int, Int) -> Unit
}

Implementation contract for Renderer.draw_rectangle. Self is the retained MoonBit state; the second parameter is the invoked Renderer object.

#
VRendererDrawShape

pub(open) trait VRendererDrawShape {
fn draw_shape(Self, Renderer, AttrShape, Int, Int) -> Unit
}

Implementation contract for Renderer.draw_shape. Self is the retained MoonBit state; the second parameter is the invoked Renderer object.

#
VRendererDrawTrapezoid

pub(open) trait VRendererDrawTrapezoid {
fn draw_trapezoid(Self, Renderer, RenderPart, Double, Double, Double, Double, Double, Double) -> Unit
}

Implementation contract for Renderer.draw_trapezoid. Self is the retained MoonBit state; the second parameter is the invoked Renderer object.

#
VRendererEnd

pub(open) trait VRendererEnd {
fn end(Self, Renderer) -> Unit
}

Implementation contract for Renderer.end. Self is the retained MoonBit state; the second parameter is the invoked Renderer object.

#
VRendererPartChanged

pub(open) trait VRendererPartChanged {
fn part_changed(Self, Renderer, RenderPart) -> Unit
}

Implementation contract for Renderer.part_changed. Self is the retained MoonBit state; the second parameter is the invoked Renderer object.

#
VRendererPrepareRun

pub(open) trait VRendererPrepareRun {
fn prepare_run(Self, Renderer, GlyphItem) -> Unit
}

Implementation contract for Renderer.prepare_run. Self is the retained MoonBit state; the second parameter is the invoked Renderer object.

#
Alignment

pub(all) enum Alignment {
Left
Center
Right
}

#
Analysis

pub type Analysis

#
Analysis::get_extra_attrs

fn Analysis::get_extra_attrs(self : Analysis) -> Array[Attribute]

Returns independent copies of the non-shaping attributes attached to this analyzed run, such as foreground colors and alpha values.

The returned attributes remain valid after the layout run that supplied this Analysis is released.

#
Analysis::get_flags

fn Analysis::get_flags(self_ : Analysis) -> UInt

#
Analysis::get_font

fn Analysis::get_font(self : Analysis) -> Font?

#
Analysis::get_gravity

fn Analysis::get_gravity(self_ : Analysis) -> UInt

#
Analysis::get_language

fn Analysis::get_language(self : Analysis) -> Language?

#
Analysis::get_level

fn Analysis::get_level(self_ : Analysis) -> UInt

#
Analysis::get_script

fn Analysis::get_script(self_ : Analysis) -> UInt

#
Analysis::set_flags

fn Analysis::set_flags(self_ : Analysis, value : UInt) -> Unit

#
Analysis::set_gravity

fn Analysis::set_gravity(self_ : Analysis, value : UInt) -> Unit

#
Analysis::set_level

fn Analysis::set_level(self_ : Analysis, value : UInt) -> Unit

#
Analysis::set_script

fn Analysis::set_script(self_ : Analysis, value : UInt) -> Unit

#
AttrColor

pub type AttrColor

#
AttrColor::get_attr

fn AttrColor::get_attr(self_ : AttrColor) -> Attribute

#
AttrColor::get_color

fn AttrColor::get_color(self_ : AttrColor) -> Color

#
AttrFloat

pub type AttrFloat

#
AttrFloat::get_attr

fn AttrFloat::get_attr(self_ : AttrFloat) -> Attribute

#
AttrFloat::get_value

fn AttrFloat::get_value(self_ : AttrFloat) -> Double

#
AttrFloat::set_value

fn AttrFloat::set_value(self_ : AttrFloat, value : Double) -> Unit

#
AttrFontDesc

pub type AttrFontDesc

#
AttrFontDesc::get_attr

fn AttrFontDesc::get_attr(self_ : AttrFontDesc) -> Attribute

#
AttrFontDesc::get_desc

fn AttrFontDesc::get_desc(self_ : AttrFontDesc) -> FontDescription

#
AttrFontFeatures

pub type AttrFontFeatures

#
AttrFontFeatures::get_attr

#
AttrFontFeatures::get_features

fn AttrFontFeatures::get_features(self : AttrFontFeatures) -> String

#
AttrFontFeatures::new

fn AttrFontFeatures::new(features : String) -> Attribute

#
AttrInt

pub type AttrInt
impl IAttrInt for AttrInt

#
AttrInt::get_attr

fn AttrInt::get_attr(self_ : AttrInt) -> Attribute

#
AttrInt::get_value

fn AttrInt::get_value(self_ : AttrInt) -> Int

#
AttrInt::set_value

fn AttrInt::set_value(self_ : AttrInt, value : Int) -> Unit

#
AttrIterator

pub type AttrIterator

#
AttrIterator::get

fn AttrIterator::get(self : AttrIterator, type_ : AttrType) -> Attribute?

#
AttrIterator::get_attrs

fn AttrIterator::get_attrs(self : AttrIterator) -> Array[Attribute]

#
AttrIterator::next

fn AttrIterator::next(self : AttrIterator) -> Bool

#
AttrIterator::range

fn AttrIterator::range(self : AttrIterator) -> (Int, Int)

#
AttrLanguage

pub type AttrLanguage

#
AttrLanguage::get_attr

fn AttrLanguage::get_attr(self_ : AttrLanguage) -> Attribute

#
AttrLanguage::get_value

fn AttrLanguage::get_value(self_ : AttrLanguage) -> Language

#
AttrLanguage::new

fn AttrLanguage::new(language : Language) -> Attribute

#
AttrList

pub type AttrList

#
AttrList::change

fn AttrList::change(self : AttrList, attr : Attribute) -> Unit

#
AttrList::equal

fn AttrList::equal(self : AttrList, other_list : AttrList) -> Bool

#
AttrList::from_string

fn AttrList::from_string(text : String) -> AttrList?

#
AttrList::get_attributes

fn AttrList::get_attributes(self : AttrList) -> Array[Attribute]

#
AttrList::get_iterator

fn AttrList::get_iterator(self : AttrList) -> AttrIterator

#
AttrList::insert

fn AttrList::insert(self : AttrList, attr : Attribute) -> Unit

#
AttrList::insert_before

fn AttrList::insert_before(self : AttrList, attr : Attribute) -> Unit

#
AttrList::ref_

fn AttrList::ref_(self : AttrList) -> AttrList

#
AttrList::splice

fn AttrList::splice(self : AttrList, other : AttrList, pos : Int, len : Int) -> Unit

#
AttrList::to_string

fn AttrList::to_string(self : AttrList) -> String

#
AttrList::update

fn AttrList::update(self : AttrList, pos : Int, remove : Int, add : Int) -> Unit

#
AttrShape

pub type AttrShape

#
AttrShape::get_attr

fn AttrShape::get_attr(self_ : AttrShape) -> Attribute

#
AttrShape::get_ink_rect

fn AttrShape::get_ink_rect(self_ : AttrShape) -> Rectangle

#
AttrShape::get_logical_rect

fn AttrShape::get_logical_rect(self_ : AttrShape) -> Rectangle

#
AttrShape::new

fn AttrShape::new(ink_rect : Rectangle, logical_rect : Rectangle) -> Attribute

#
AttrSize

pub type AttrSize

#
AttrSize::get_absolute

fn AttrSize::get_absolute(self_ : AttrSize) -> UInt

#
AttrSize::get_attr

fn AttrSize::get_attr(self_ : AttrSize) -> Attribute

#
AttrSize::get_size

fn AttrSize::get_size(self_ : AttrSize) -> Int

#
AttrSize::new

fn AttrSize::new(size : Int) -> Attribute

#
AttrSize::new_absolute

fn AttrSize::new_absolute(size : Int) -> Attribute

#
AttrSize::set_absolute

fn AttrSize::set_absolute(self_ : AttrSize, value : UInt) -> Unit

#
AttrSize::set_size

fn AttrSize::set_size(self_ : AttrSize, value : Int) -> Unit

#
AttrString

pub type AttrString

#
AttrString::get_attr

fn AttrString::get_attr(self_ : AttrString) -> Attribute

#
AttrString::get_value

fn AttrString::get_value(self : AttrString) -> String

#
AttrType

pub(all) enum AttrType {
Invalid
Language
Family
Style
Weight
Variant
Stretch
Size
FontDesc
Foreground
Background
Underline
Strikethrough
Rise
Shape
Scale
Fallback
LetterSpacing
UnderlineColor
StrikethroughColor
AbsoluteSize
Gravity
GravityHint
FontFeatures
ForegroundAlpha
BackgroundAlpha
AllowBreaks
Show
InsertHyphens
Overline
OverlineColor
LineHeight
AbsoluteLineHeight
TextTransform
Word
Sentence
BaselineShift
FontScale
}

#
Attribute

pub type Attribute

#
Attribute::as_color

fn Attribute::as_color(self : Attribute) -> AttrColor?

#
Attribute::as_float

fn Attribute::as_float(self : Attribute) -> AttrFloat?

#
Attribute::as_font_desc

fn Attribute::as_font_desc(self : Attribute) -> AttrFontDesc?

#
Attribute::as_font_features

fn Attribute::as_font_features(self : Attribute) -> AttrFontFeatures?

#
Attribute::as_int

fn Attribute::as_int(self : Attribute) -> AttrInt?

#
Attribute::as_language

fn Attribute::as_language(self : Attribute) -> AttrLanguage?

#
Attribute::as_shape

fn Attribute::as_shape(self : Attribute) -> AttrShape?

#
Attribute::as_size

fn Attribute::as_size(self : Attribute) -> AttrSize?

#
Attribute::as_string

fn Attribute::as_string(self : Attribute) -> AttrString?

#
Attribute::equal

fn Attribute::equal(self : Attribute, attr2 : Attribute) -> Bool

#
Attribute::get_end_index

fn Attribute::get_end_index(self_ : Attribute) -> UInt

#
Attribute::get_start_index

fn Attribute::get_start_index(self_ : Attribute) -> UInt

#
Attribute::get_type

fn Attribute::get_type(self_ : Attribute) -> AttrType

Returns the semantic kind of this attribute.

#
Attribute::set_end_index

fn Attribute::set_end_index(self_ : Attribute, value : UInt) -> Unit

#
Attribute::set_start_index

fn Attribute::set_start_index(self_ : Attribute, value : UInt) -> Unit

#
BaselineShift

pub(all) enum BaselineShift {
None
Superscript
Subscript
}

#
Color

pub type Color
impl IColor for Color

#
Color::_zero

fn Color::_zero() -> Color

#
Color::get_blue

fn Color::get_blue(self_ : Color) -> UInt

#
Color::get_green

fn Color::get_green(self_ : Color) -> UInt

#
Color::get_red

fn Color::get_red(self_ : Color) -> UInt

#
Color::parse

fn Color::parse(self : Color, spec : String) -> Bool

#
Color::parse_with_alpha

fn Color::parse_with_alpha(self : Color, spec : String) -> UInt?

#
Color::set_blue

fn Color::set_blue(self_ : Color, value : UInt) -> Unit

#
Color::set_green

fn Color::set_green(self_ : Color, value : UInt) -> Unit

#
Color::set_red

fn Color::set_red(self_ : Color, value : UInt) -> Unit

#
Color::to_string

fn Color::to_string(self : Color) -> String

#
Context

pub type Context
impl IContext for Context

#
Context::as_gobject_object

fn Context::as_gobject_object(self : Context) ->
Object

#
Context::changed

fn Context::changed(self : Context) -> Unit

#
Context::get_base_dir

fn Context::get_base_dir(self : Context) -> Direction

#
Context::get_base_gravity

fn Context::get_base_gravity(self : Context) -> Gravity

#
Context::get_font_description

fn Context::get_font_description(self : Context) -> FontDescription?

#
Context::get_font_map

fn Context::get_font_map(self : Context) -> FontMap?

#
Context::get_gravity

fn Context::get_gravity(self : Context) -> Gravity

#
Context::get_gravity_hint

fn Context::get_gravity_hint(self : Context) -> GravityHint

#
Context::get_language

fn Context::get_language(self : Context) -> Language

#
Context::get_matrix

fn Context::get_matrix(self : Context) -> Matrix?

#
Context::get_metrics

fn Context::get_metrics(self : Context, desc : FontDescription?, language : Language?) -> FontMetrics

#
Context::get_round_glyph_positions

fn Context::get_round_glyph_positions(self : Context) -> Bool

#
Context::get_serial

fn Context::get_serial(self : Context) -> UInt

#
Context::list_families

fn Context::list_families(self : Context) -> Array[FontFamily]

#
Context::load_font

fn Context::load_font(self : Context, desc : FontDescription) -> Font?

#
Context::load_fontset

fn Context::load_fontset(self : Context, desc : FontDescription, language : Language) -> Fontset?

#
Context::new

fn Context::new() -> Context

#
Context::set_base_dir

fn Context::set_base_dir(self : Context, direction : Direction) -> Unit

#
Context::set_base_gravity

fn Context::set_base_gravity(self : Context, gravity : Gravity) -> Unit

#
Context::set_font_description

fn Context::set_font_description(self : Context, desc : FontDescription) -> Unit

#
Context::set_font_map

fn Context::set_font_map(self : Context, font_map : &IFontMap?) -> Unit

#
Context::set_gravity_hint

fn Context::set_gravity_hint(self : Context, hint : GravityHint) -> Unit

#
Context::set_language

fn Context::set_language(self : Context, language : Language?) -> Unit

#
Context::set_matrix

fn Context::set_matrix(self : Context, matrix : Matrix?) -> Unit

#
Context::set_round_glyph_positions

fn Context::set_round_glyph_positions(self : Context, round_positions : Bool) -> Unit

#
Coverage

pub type Coverage

#
Coverage::as_gobject_object

fn Coverage::as_gobject_object(self : Coverage) ->
Object

#
Coverage::copy

fn Coverage::copy(self : Coverage) -> Coverage

#
Coverage::get

fn Coverage::get(self : Coverage, index_ : Int) -> CoverageLevel

#
Coverage::set

fn Coverage::set(self : Coverage, index_ : Int, level : CoverageLevel) -> Unit

#
CoverageLevel

pub(all) enum CoverageLevel {
None
Fallback
Approximate
Exact
}

#
Direction

pub(all) enum Direction {
Ltr
Rtl
TtbLtr
TtbRtl
WeakLtr
WeakRtl
Neutral
}

#
EllipsizeMode

pub(all) enum EllipsizeMode {
None
Start
Middle
End
}

#
Font

pub type Font
impl IFont for Font

#
Font::as_gobject_object

fn Font::as_gobject_object(self : Font) ->
Object

#
Font::describe

fn Font::describe(self : Font) -> FontDescription

#
Font::describe_with_absolute_size

fn Font::describe_with_absolute_size(self : Font) -> FontDescription

#
Font::deserialize

fn Font::deserialize(context : &IContext, bytes : Bytes) -> Font? raise
Error_

#
Font::get_coverage

fn Font::get_coverage(self : Font, language : Language) -> Coverage

#
Font::get_face

fn Font::get_face(self : Font) -> FontFace?

#
Font::get_font_map

fn Font::get_font_map(self : Font) -> FontMap?

#
Font::get_glyph_extents

fn Font::get_glyph_extents(self : Font, glyph : UInt) -> (Rectangle, Rectangle)

#
Font::get_languages

fn Font::get_languages(self : Font) -> Array[Language]?

#
Font::get_metrics

fn Font::get_metrics(self : Font, language : Language?) -> FontMetrics

#
Font::has_char

fn Font::has_char(self : Font, wc : UInt) -> Bool

#
Font::serialize

fn Font::serialize(self : Font) -> Bytes

#
FontColor

pub(all) enum FontColor {
Forbidden
Required
DontCare
}

#
FontDescription

pub type FontDescription

#
FontDescription::better_match

fn FontDescription::better_match(self : FontDescription, old_match : FontDescription?, new_match : FontDescription) -> Bool

#
FontDescription::copy_static

fn FontDescription::copy_static(self : FontDescription) -> FontDescription?

#
FontDescription::equal

fn FontDescription::equal(self : FontDescription, desc2 : FontDescription) -> Bool

#
FontDescription::from_string

fn FontDescription::from_string(str : String) -> FontDescription

#
FontDescription::get_color

fn FontDescription::get_color(self : FontDescription) -> FontColor

#
FontDescription::get_family

fn FontDescription::get_family(self : FontDescription) -> String?

#
FontDescription::get_features

fn FontDescription::get_features(self : FontDescription) -> String?

#
FontDescription::get_gravity

fn FontDescription::get_gravity(self : FontDescription) -> Gravity

#
FontDescription::get_set_fields

fn FontDescription::get_set_fields(self : FontDescription) -> FontMask

#
FontDescription::get_size

fn FontDescription::get_size(self : FontDescription) -> Int

#
FontDescription::get_size_is_absolute

fn FontDescription::get_size_is_absolute(self : FontDescription) -> Bool

#
FontDescription::get_stretch

fn FontDescription::get_stretch(self : FontDescription) -> Stretch

#
FontDescription::get_style

fn FontDescription::get_style(self : FontDescription) -> Style

#
FontDescription::get_variant

fn FontDescription::get_variant(self : FontDescription) -> Variant

#
FontDescription::get_variations

fn FontDescription::get_variations(self : FontDescription) -> String?

#
FontDescription::get_weight

fn FontDescription::get_weight(self : FontDescription) -> Weight

#
FontDescription::hash

fn FontDescription::hash(self : FontDescription) -> UInt

#
FontDescription::merge

fn FontDescription::merge(self : FontDescription, desc_to_merge : FontDescription?, replace_existing : Bool) -> Unit

#
FontDescription::merge_static

fn FontDescription::merge_static(self : FontDescription, desc_to_merge : FontDescription, replace_existing : Bool) -> Unit

#
FontDescription::set_absolute_size

fn FontDescription::set_absolute_size(self : FontDescription, size : Double) -> Unit

#
FontDescription::set_color

fn FontDescription::set_color(self : FontDescription, color : FontColor) -> Unit

#
FontDescription::set_family

fn FontDescription::set_family(self : FontDescription, family : String) -> Unit

#
FontDescription::set_family_static

fn FontDescription::set_family_static(self : FontDescription, family : String) -> Unit

#
FontDescription::set_features

fn FontDescription::set_features(self : FontDescription, features : String?) -> Unit

#
FontDescription::set_features_static

fn FontDescription::set_features_static(self : FontDescription, features : String) -> Unit

#
FontDescription::set_gravity

fn FontDescription::set_gravity(self : FontDescription, gravity : Gravity) -> Unit

#
FontDescription::set_size

fn FontDescription::set_size(self : FontDescription, size : Int) -> Unit

#
FontDescription::set_stretch

fn FontDescription::set_stretch(self : FontDescription, stretch : Stretch) -> Unit

#
FontDescription::set_style

fn FontDescription::set_style(self : FontDescription, style : Style) -> Unit

#
FontDescription::set_variant

fn FontDescription::set_variant(self : FontDescription, variant : Variant) -> Unit

#
FontDescription::set_variations

fn FontDescription::set_variations(self : FontDescription, variations : String?) -> Unit

#
FontDescription::set_variations_static

fn FontDescription::set_variations_static(self : FontDescription, variations : String) -> Unit

#
FontDescription::set_weight

fn FontDescription::set_weight(self : FontDescription, weight : Weight) -> Unit

#
FontDescription::to_filename

fn FontDescription::to_filename(self : FontDescription) -> String?

#
FontDescription::to_string

fn FontDescription::to_string(self : FontDescription) -> String

#
FontDescription::unset_fields

fn FontDescription::unset_fields(self : FontDescription, to_unset : FontMask) -> Unit

#
FontFace

pub type FontFace

#
FontFace::as_gobject_object

fn FontFace::as_gobject_object(self : FontFace) ->
Object

#
FontFace::describe

fn FontFace::describe(self : FontFace) -> FontDescription

#
FontFace::get_face_name

fn FontFace::get_face_name(self : FontFace) -> String

#
FontFace::get_family

fn FontFace::get_family(self : FontFace) -> FontFamily

#
FontFace::is_synthesized

fn FontFace::is_synthesized(self : FontFace) -> Bool

#
FontFace::list_sizes

fn FontFace::list_sizes(self : FontFace) -> Array[Int]

#
FontFamily

pub type FontFamily

#
FontFamily::as_gobject_object

fn FontFamily::as_gobject_object(self : FontFamily) ->
Object

#
FontFamily::get_face

fn FontFamily::get_face(self : FontFamily, name : String?) -> FontFace?

#
FontFamily::get_n_items

fn FontFamily::get_n_items(self_ : FontFamily) -> UInt

#
FontFamily::get_name

fn FontFamily::get_name(self : FontFamily) -> String

#
FontFamily::is_monospace

fn FontFamily::is_monospace(self : FontFamily) -> Bool

#
FontFamily::is_variable

fn FontFamily::is_variable(self : FontFamily) -> Bool

#
FontFamily::list_faces

fn FontFamily::list_faces(self : FontFamily) -> Array[FontFace]

#
FontMap

pub type FontMap
impl IFontMap for FontMap

#
FontMap::add_font_file

fn FontMap::add_font_file(self : FontMap, filename : String) -> Bool raise
Error_

#
FontMap::as_gobject_object

fn FontMap::as_gobject_object(self : FontMap) ->
Object

#
FontMap::changed

fn FontMap::changed(self : FontMap) -> Unit

#
FontMap::create_context

fn FontMap::create_context(self : FontMap) -> Context

#
FontMap::get_family

fn FontMap::get_family(self : FontMap, name : String) -> FontFamily?

#
FontMap::get_n_items

fn FontMap::get_n_items(self_ : FontMap) -> UInt

#
FontMap::get_serial

fn FontMap::get_serial(self : FontMap) -> UInt

#
FontMap::list_families

fn FontMap::list_families(self : FontMap) -> Array[FontFamily]

#
FontMap::load_font

fn FontMap::load_font(self : FontMap, context : &IContext, desc : FontDescription) -> Font?

#
FontMap::load_fontset

fn FontMap::load_fontset(self : FontMap, context : &IContext, desc : FontDescription, language : Language) -> Fontset?

#
FontMap::reload_font

fn FontMap::reload_font(self : FontMap, font : &IFont, scale : Double, context : &IContext?, variations : String?) -> Font

#
FontMask

pub struct FontMask {
// private fields
}

#
FontMask::FontMask

fn FontMask::FontMask(flags : Array[FontMaskFlag]) -> FontMask

#
FontMask::from_int

fn FontMask::from_int(value : Int) -> FontMask

#
FontMask::to_int

fn FontMask::to_int(self : FontMask) -> Int

#
FontMaskFlag

pub(all) enum FontMaskFlag {
Family
Style
Variant
Weight
Stretch
Size
Gravity
Variations
Features
Color
}

#
FontMetrics

pub type FontMetrics

#
FontMetrics::get_approximate_char_width

fn FontMetrics::get_approximate_char_width(self : FontMetrics) -> Int

#
FontMetrics::get_approximate_digit_width

fn FontMetrics::get_approximate_digit_width(self : FontMetrics) -> Int

#
FontMetrics::get_ascent

fn FontMetrics::get_ascent(self : FontMetrics) -> Int

#
FontMetrics::get_descent

fn FontMetrics::get_descent(self : FontMetrics) -> Int

#
FontMetrics::get_height

fn FontMetrics::get_height(self : FontMetrics) -> Int

#
FontMetrics::get_strikethrough_position

fn FontMetrics::get_strikethrough_position(self : FontMetrics) -> Int

#
FontMetrics::get_strikethrough_thickness

fn FontMetrics::get_strikethrough_thickness(self : FontMetrics) -> Int

#
FontMetrics::get_underline_position

fn FontMetrics::get_underline_position(self : FontMetrics) -> Int

#
FontMetrics::get_underline_thickness

fn FontMetrics::get_underline_thickness(self : FontMetrics) -> Int

#
FontMetrics::ref_

fn FontMetrics::ref_(self : FontMetrics) -> FontMetrics?

#
FontScale

pub(all) enum FontScale {
None
Superscript
Subscript
SmallCaps
}

#
Fontset

pub type Fontset
impl IFontset for Fontset

#
Fontset::as_gobject_object

fn Fontset::as_gobject_object(self : Fontset) ->
Object

#
Fontset::get_font

fn Fontset::get_font(self : Fontset, wc : UInt) -> Font

#
Fontset::get_metrics

fn Fontset::get_metrics(self : Fontset) -> FontMetrics

#
GlyphGeometry

pub type GlyphGeometry

#
GlyphGeometry::_zero

#
GlyphGeometry::get_width

fn GlyphGeometry::get_width(self_ : GlyphGeometry) -> Int

#
GlyphGeometry::get_x_offset

fn GlyphGeometry::get_x_offset(self_ : GlyphGeometry) -> Int

#
GlyphGeometry::get_y_offset

fn GlyphGeometry::get_y_offset(self_ : GlyphGeometry) -> Int

#
GlyphGeometry::set_width

fn GlyphGeometry::set_width(self_ : GlyphGeometry, value : Int) -> Unit

#
GlyphGeometry::set_x_offset

fn GlyphGeometry::set_x_offset(self_ : GlyphGeometry, value : Int) -> Unit

#
GlyphGeometry::set_y_offset

fn GlyphGeometry::set_y_offset(self_ : GlyphGeometry, value : Int) -> Unit

#
GlyphInfo

pub type GlyphInfo

#
GlyphInfo::_zero

fn GlyphInfo::_zero() -> GlyphInfo

#
GlyphInfo::get_attr

fn GlyphInfo::get_attr(self_ : GlyphInfo) -> GlyphVisAttr

#
GlyphInfo::get_geometry

fn GlyphInfo::get_geometry(self_ : GlyphInfo) -> GlyphGeometry

#
GlyphInfo::get_glyph

fn GlyphInfo::get_glyph(self_ : GlyphInfo) -> UInt

#
GlyphInfo::set_attr

fn GlyphInfo::set_attr(self_ : GlyphInfo, value : GlyphVisAttr) -> Unit

#
GlyphInfo::set_geometry

fn GlyphInfo::set_geometry(self_ : GlyphInfo, value : GlyphGeometry) -> Unit

#
GlyphInfo::set_glyph

fn GlyphInfo::set_glyph(self_ : GlyphInfo, value : UInt) -> Unit

#
GlyphItem

#alias(LayoutRun)
pub type GlyphItem

#
GlyphItem::apply_attrs

fn GlyphItem::apply_attrs(self : GlyphItem, text : String, list : AttrList) -> Array[GlyphItem]

#
GlyphItem::get_end_x_offset

fn GlyphItem::get_end_x_offset(self_ : GlyphItem) -> Int

#
GlyphItem::get_glyphs

fn GlyphItem::get_glyphs(self_ : GlyphItem) -> GlyphString

#
GlyphItem::get_item

fn GlyphItem::get_item(self_ : GlyphItem) -> Item

#
GlyphItem::get_logical_widths

fn GlyphItem::get_logical_widths(self : GlyphItem, text : String) -> Array[Int]

#
GlyphItem::get_start_x_offset

fn GlyphItem::get_start_x_offset(self_ : GlyphItem) -> Int

#
GlyphItem::get_y_offset

fn GlyphItem::get_y_offset(self_ : GlyphItem) -> Int

#
GlyphItem::letter_space

fn GlyphItem::letter_space(self : GlyphItem, text : String, log_attrs : FixedArray[LogAttr], letter_spacing : Int) -> Unit

#
GlyphItem::set_end_x_offset

fn GlyphItem::set_end_x_offset(self_ : GlyphItem, value : Int) -> Unit

#
GlyphItem::set_start_x_offset

fn GlyphItem::set_start_x_offset(self_ : GlyphItem, value : Int) -> Unit

#
GlyphItem::set_y_offset

fn GlyphItem::set_y_offset(self_ : GlyphItem, value : Int) -> Unit

#
GlyphItem::split

fn GlyphItem::split(self : GlyphItem, text : String, split_index : Int) -> GlyphItem?

#
GlyphItemIter

pub type GlyphItemIter

Iterates over the clusters in a shaped GlyphItem.

The iterator keeps both the glyph item and its UTF-8 text alive. Its state is mutable, so each iterator should be advanced by only one caller at a time.

#
GlyphItemIter::from_end

fn GlyphItemIter::from_end(glyph_item : GlyphItem, text : String) -> GlyphItemIter?

Creates an iterator positioned at the last cluster.

#
GlyphItemIter::from_start

fn GlyphItemIter::from_start(glyph_item : GlyphItem, text : String) -> GlyphItemIter?

Creates an iterator positioned at the first cluster.

#
GlyphItemIter::get_end_char

fn GlyphItemIter::get_end_char(self_ : GlyphItemIter) -> Int

The character index immediately after the current cluster.

#
GlyphItemIter::get_end_glyph

fn GlyphItemIter::get_end_glyph(self_ : GlyphItemIter) -> Int

The glyph index immediately after the current cluster.

#
GlyphItemIter::get_end_index

fn GlyphItemIter::get_end_index(self_ : GlyphItemIter) -> Int

The UTF-8 byte index immediately after the current cluster.

#
GlyphItemIter::get_start_char

fn GlyphItemIter::get_start_char(self_ : GlyphItemIter) -> Int

The first character index in the current cluster.

#
GlyphItemIter::get_start_glyph

fn GlyphItemIter::get_start_glyph(self_ : GlyphItemIter) -> Int

The first glyph index in the current cluster.

#
GlyphItemIter::get_start_index

fn GlyphItemIter::get_start_index(self_ : GlyphItemIter) -> Int

The first UTF-8 byte index in the current cluster.

#
GlyphItemIter::next_cluster

fn GlyphItemIter::next_cluster(self_ : GlyphItemIter) -> Bool

Advances to the next cluster, returning false at the end.

#
GlyphItemIter::prev_cluster

fn GlyphItemIter::prev_cluster(self_ : GlyphItemIter) -> Bool

Moves to the previous cluster, returning false at the beginning.

#
GlyphString

pub type GlyphString

#
GlyphString::extents

fn GlyphString::extents(self : GlyphString, font : &IFont) -> (Rectangle, Rectangle)

#
GlyphString::extents_range

fn GlyphString::extents_range(self : GlyphString, start : Int, end : Int, font : &IFont) -> (Rectangle, Rectangle)

#
GlyphString::get_glyphs

fn GlyphString::get_glyphs(self : GlyphString) -> Array[GlyphInfo]

#
GlyphString::get_logical_widths

fn GlyphString::get_logical_widths(self : GlyphString, text : String, length : Int, embedding_level : Int) -> Array[Int]

#
GlyphString::get_num_glyphs

fn GlyphString::get_num_glyphs(self_ : GlyphString) -> Int

#
GlyphString::get_width

fn GlyphString::get_width(self : GlyphString) -> Int

#
GlyphString::index_to_x

fn GlyphString::index_to_x(self : GlyphString, text : String, length : Int, analysis : Analysis, index_ : Int, trailing : Bool) -> Int

#
GlyphString::index_to_x_full

fn GlyphString::index_to_x_full(self : GlyphString, text : String, length : Int, analysis : Analysis, attrs : FixedArray[LogAttr]?, index_ : Int, trailing : Bool) -> Int

#
GlyphString::set_size

fn GlyphString::set_size(self : GlyphString, new_len : Int) -> Unit

#
GlyphString::x_to_index

fn GlyphString::x_to_index(self : GlyphString, text : String, length : Int, analysis : Analysis, x_pos : Int) -> (Int, Int)

#
GlyphVisAttr

pub type GlyphVisAttr

#
GlyphVisAttr::_zero

fn GlyphVisAttr::_zero() -> GlyphVisAttr

#
GlyphVisAttr::get_is_cluster_start

fn GlyphVisAttr::get_is_cluster_start(self_ : GlyphVisAttr) -> UInt

#
GlyphVisAttr::get_is_color

fn GlyphVisAttr::get_is_color(self_ : GlyphVisAttr) -> UInt

#
GlyphVisAttr::set_is_cluster_start

fn GlyphVisAttr::set_is_cluster_start(self_ : GlyphVisAttr, value : UInt) -> Unit

#
GlyphVisAttr::set_is_color

fn GlyphVisAttr::set_is_color(self_ : GlyphVisAttr, value : UInt) -> Unit

#
Gravity

pub(all) enum Gravity {
South
East
North
West
Auto
}

#
GravityHint

pub(all) enum GravityHint {
Natural
Strong
Line
}

#
Item

pub type Item
impl IItem for Item

#
Item::apply_attrs

fn Item::apply_attrs(self : Item, iter : AttrIterator) -> Unit

#
Item::get_analysis

fn Item::get_analysis(self_ : Item) -> Analysis

#
Item::get_char_offset

fn Item::get_char_offset(self : Item) -> Int

#
Item::get_length

fn Item::get_length(self_ : Item) -> Int

#
Item::get_num_chars

fn Item::get_num_chars(self_ : Item) -> Int

#
Item::get_offset

fn Item::get_offset(self_ : Item) -> Int

#
Item::new

fn Item::new() -> Item

#
Item::set_length

fn Item::set_length(self_ : Item, value : Int) -> Unit

#
Item::set_num_chars

fn Item::set_num_chars(self_ : Item, value : Int) -> Unit

#
Item::set_offset

fn Item::set_offset(self_ : Item, value : Int) -> Unit

#
Item::split

fn Item::split(self : Item, split_index : Int, split_offset : Int) -> Item

#
Language

pub type Language

#
Language::from_string

fn Language::from_string(language : String?) -> Language?

#
Language::get_default

fn Language::get_default() -> Language

#
Language::get_preferred

fn Language::get_preferred() -> Array[Language]?

#
Language::get_sample_string

fn Language::get_sample_string(self : Language) -> String

#
Language::get_scripts

fn Language::get_scripts(self : Language) -> Array[Int]?

#
Language::includes_script

fn Language::includes_script(self : Language, script : Script) -> Bool

#
Language::matches

fn Language::matches(self : Language, range_list : String) -> Bool

#
Language::to_string

fn Language::to_string(self : Language) -> String

#
Layout

pub type Layout
impl ILayout for Layout

#
Layout::as_gobject_object

fn Layout::as_gobject_object(self : Layout) ->
Object

#
Layout::context_changed

fn Layout::context_changed(self : Layout) -> Unit

#
Layout::copy

fn Layout::copy(self : Layout) -> Layout

#
Layout::deserialize

fn Layout::deserialize(context : &IContext, bytes : Bytes, flags : LayoutDeserializeFlags) -> Layout? raise
Error_

#
Layout::get_alignment

fn Layout::get_alignment(self : Layout) -> Alignment

#
Layout::get_attributes

fn Layout::get_attributes(self : Layout) -> AttrList?

#
Layout::get_auto_dir

fn Layout::get_auto_dir(self : Layout) -> Bool

#
Layout::get_baseline

fn Layout::get_baseline(self : Layout) -> Int

#
Layout::get_caret_pos

fn Layout::get_caret_pos(self : Layout, index_ : Int) -> (Rectangle, Rectangle)

#
Layout::get_character_count

fn Layout::get_character_count(self : Layout) -> Int

#
Layout::get_context

fn Layout::get_context(self : Layout) -> Context

#
Layout::get_cursor_pos

fn Layout::get_cursor_pos(self : Layout, index_ : Int) -> (Rectangle, Rectangle)

#
Layout::get_direction

fn Layout::get_direction(self : Layout, index : Int) -> Direction

#
Layout::get_ellipsize

fn Layout::get_ellipsize(self : Layout) -> EllipsizeMode

#
Layout::get_extents

fn Layout::get_extents(self : Layout) -> (Rectangle, Rectangle)

#
Layout::get_font_description

fn Layout::get_font_description(self : Layout) -> FontDescription?

#
Layout::get_height

fn Layout::get_height(self : Layout) -> Int

#
Layout::get_indent

fn Layout::get_indent(self : Layout) -> Int

#
Layout::get_iter

fn Layout::get_iter(self : Layout) -> LayoutIter

#
Layout::get_justify

fn Layout::get_justify(self : Layout) -> Bool

#
Layout::get_justify_last_line

fn Layout::get_justify_last_line(self : Layout) -> Bool

#
Layout::get_line

fn Layout::get_line(self : Layout, line : Int) -> LayoutLine?

#
Layout::get_line_count

fn Layout::get_line_count(self : Layout) -> Int

#
Layout::get_line_readonly

fn Layout::get_line_readonly(self : Layout, line : Int) -> LayoutLine?

#
Layout::get_line_spacing

fn Layout::get_line_spacing(self : Layout) -> Float

#
Layout::get_lines

fn Layout::get_lines(self : Layout) -> Array[LayoutLine]

#
Layout::get_lines_readonly

fn Layout::get_lines_readonly(self : Layout) -> Array[LayoutLine]

#
Layout::get_log_attrs

fn Layout::get_log_attrs(self : Layout) -> Array[LogAttr]

#
Layout::get_log_attrs_readonly

fn Layout::get_log_attrs_readonly(self : Layout) -> Array[LogAttr]

#
Layout::get_pixel_extents

fn Layout::get_pixel_extents(self : Layout) -> (Rectangle, Rectangle)

#
Layout::get_pixel_size

fn Layout::get_pixel_size(self : Layout) -> (Int, Int)

#
Layout::get_serial

fn Layout::get_serial(self : Layout) -> UInt

#
Layout::get_single_paragraph_mode

fn Layout::get_single_paragraph_mode(self : Layout) -> Bool

#
Layout::get_size

fn Layout::get_size(self : Layout) -> (Int, Int)

#
Layout::get_spacing

fn Layout::get_spacing(self : Layout) -> Int

#
Layout::get_tabs

fn Layout::get_tabs(self : Layout) -> TabArray?

#
Layout::get_text

fn Layout::get_text(self : Layout) -> String

#
Layout::get_unknown_glyphs_count

fn Layout::get_unknown_glyphs_count(self : Layout) -> Int

#
Layout::get_width

fn Layout::get_width(self : Layout) -> Int

#
Layout::get_wrap

fn Layout::get_wrap(self : Layout) -> WrapMode

#
Layout::index_to_line_x

fn Layout::index_to_line_x(self : Layout, index_ : Int, trailing : Bool) -> (Int, Int)

#
Layout::index_to_pos

fn Layout::index_to_pos(self : Layout, index_ : Int) -> Rectangle

#
Layout::is_ellipsized

fn Layout::is_ellipsized(self : Layout) -> Bool

#
Layout::is_wrapped

fn Layout::is_wrapped(self : Layout) -> Bool

#
Layout::move_cursor_visually

fn Layout::move_cursor_visually(self : Layout, strong : Bool, old_index : Int, old_trailing : Int, direction : Int) -> (Int, Int)

#
Layout::new

fn Layout::new(context : &IContext) -> Layout

#
Layout::serialize

fn Layout::serialize(self : Layout, flags : LayoutSerializeFlags) -> Bytes

#
Layout::set_alignment

fn Layout::set_alignment(self : Layout, alignment : Alignment) -> Unit

#
Layout::set_attributes

fn Layout::set_attributes(self : Layout, attrs : AttrList?) -> Unit

#
Layout::set_auto_dir

fn Layout::set_auto_dir(self : Layout, auto_dir : Bool) -> Unit

#
Layout::set_ellipsize

fn Layout::set_ellipsize(self : Layout, ellipsize : EllipsizeMode) -> Unit

#
Layout::set_font_description

fn Layout::set_font_description(self : Layout, desc : FontDescription?) -> Unit

#
Layout::set_height

fn Layout::set_height(self : Layout, height : Int) -> Unit

#
Layout::set_indent

fn Layout::set_indent(self : Layout, indent : Int) -> Unit

#
Layout::set_justify

fn Layout::set_justify(self : Layout, justify : Bool) -> Unit

#
Layout::set_justify_last_line

fn Layout::set_justify_last_line(self : Layout, justify : Bool) -> Unit

#
Layout::set_line_spacing

fn Layout::set_line_spacing(self : Layout, factor : Float) -> Unit

#
Layout::set_markup

fn Layout::set_markup(self : Layout, markup : String, length : Int) -> Unit

#
Layout::set_markup_with_accel

fn Layout::set_markup_with_accel(self : Layout, markup : String, length : Int, accel_marker : UInt) -> UInt

#
Layout::set_single_paragraph_mode

fn Layout::set_single_paragraph_mode(self : Layout, setting : Bool) -> Unit

#
Layout::set_spacing

fn Layout::set_spacing(self : Layout, spacing : Int) -> Unit

#
Layout::set_tabs

fn Layout::set_tabs(self : Layout, tabs : TabArray?) -> Unit

#
Layout::set_text

fn Layout::set_text(self : Layout, text : String, length : Int) -> Unit

#
Layout::set_width

fn Layout::set_width(self : Layout, width : Int) -> Unit

#
Layout::set_wrap

fn Layout::set_wrap(self : Layout, wrap : WrapMode) -> Unit

#
Layout::write_to_file

fn Layout::write_to_file(self : Layout, flags : LayoutSerializeFlags, filename : String) -> Bool raise
Error_

#
Layout::xy_to_index

fn Layout::xy_to_index(self : Layout, x : Int, y : Int) -> (Bool, Int, Int)

#
LayoutDeserializeFlag

pub(all) enum LayoutDeserializeFlag {
Default
Context
}

#
LayoutDeserializeFlags

pub struct LayoutDeserializeFlags {
// private fields
}

#
LayoutDeserializeFlags::LayoutDeserializeFlags

#
LayoutDeserializeFlags::from_int

fn LayoutDeserializeFlags::from_int(value : Int) -> LayoutDeserializeFlags

#
LayoutDeserializeFlags::to_int

#
LayoutIter

pub type LayoutIter

#
LayoutIter::at_last_line

fn LayoutIter::at_last_line(self : LayoutIter) -> Bool

#
LayoutIter::get_baseline

fn LayoutIter::get_baseline(self : LayoutIter) -> Int

#
LayoutIter::get_char_extents

fn LayoutIter::get_char_extents(self : LayoutIter) -> Rectangle

#
LayoutIter::get_cluster_extents

fn LayoutIter::get_cluster_extents(self : LayoutIter) -> (Rectangle, Rectangle)

#
LayoutIter::get_index

fn LayoutIter::get_index(self : LayoutIter) -> Int

#
LayoutIter::get_layout

fn LayoutIter::get_layout(self : LayoutIter) -> Layout?

#
LayoutIter::get_layout_extents

fn LayoutIter::get_layout_extents(self : LayoutIter) -> (Rectangle, Rectangle)

#
LayoutIter::get_line

fn LayoutIter::get_line(self : LayoutIter) -> LayoutLine?

#
LayoutIter::get_line_extents

fn LayoutIter::get_line_extents(self : LayoutIter) -> (Rectangle, Rectangle)

#
LayoutIter::get_line_readonly

fn LayoutIter::get_line_readonly(self : LayoutIter) -> LayoutLine?

#
LayoutIter::get_line_yrange

fn LayoutIter::get_line_yrange(self : LayoutIter) -> (Int, Int)

#
LayoutIter::get_run

fn LayoutIter::get_run(self : LayoutIter) -> GlyphItem?

#
LayoutIter::get_run_baseline

fn LayoutIter::get_run_baseline(self : LayoutIter) -> Int

#
LayoutIter::get_run_extents

fn LayoutIter::get_run_extents(self : LayoutIter) -> (Rectangle, Rectangle)

#
LayoutIter::get_run_readonly

fn LayoutIter::get_run_readonly(self : LayoutIter) -> GlyphItem?

#
LayoutIter::next_char

fn LayoutIter::next_char(self : LayoutIter) -> Bool

#
LayoutIter::next_cluster

fn LayoutIter::next_cluster(self : LayoutIter) -> Bool

#
LayoutIter::next_line

fn LayoutIter::next_line(self : LayoutIter) -> Bool

#
LayoutIter::next_run

fn LayoutIter::next_run(self : LayoutIter) -> Bool

#
LayoutLine

pub type LayoutLine

#
LayoutLine::get_extents

fn LayoutLine::get_extents(self : LayoutLine) -> (Rectangle, Rectangle)

#
LayoutLine::get_height

fn LayoutLine::get_height(self : LayoutLine) -> Int

#
LayoutLine::get_is_paragraph_start

fn LayoutLine::get_is_paragraph_start(self_ : LayoutLine) -> UInt

#
LayoutLine::get_layout

fn LayoutLine::get_layout(self_ : LayoutLine) -> Layout

#
LayoutLine::get_length

fn LayoutLine::get_length(self : LayoutLine) -> Int

#
LayoutLine::get_pixel_extents

fn LayoutLine::get_pixel_extents(self : LayoutLine) -> (Rectangle, Rectangle)

#
LayoutLine::get_resolved_dir

fn LayoutLine::get_resolved_dir(self_ : LayoutLine) -> UInt

#
LayoutLine::get_resolved_direction

fn LayoutLine::get_resolved_direction(self : LayoutLine) -> Direction

#
LayoutLine::get_start_index

fn LayoutLine::get_start_index(self : LayoutLine) -> Int

#
LayoutLine::get_x_ranges

fn LayoutLine::get_x_ranges(self : LayoutLine, start_index : Int, end_index : Int) -> Array[Int]

#
LayoutLine::index_to_x

fn LayoutLine::index_to_x(self : LayoutLine, index_ : Int, trailing : Bool) -> Int

#
LayoutLine::is_paragraph_start

fn LayoutLine::is_paragraph_start(self : LayoutLine) -> Bool

#
LayoutLine::ref_

fn LayoutLine::ref_(self : LayoutLine) -> LayoutLine?

#
LayoutLine::set_is_paragraph_start

fn LayoutLine::set_is_paragraph_start(self_ : LayoutLine, value : UInt) -> Unit

#
LayoutLine::set_length

fn LayoutLine::set_length(self_ : LayoutLine, value : Int) -> Unit

#
LayoutLine::set_resolved_dir

fn LayoutLine::set_resolved_dir(self_ : LayoutLine, value : UInt) -> Unit

#
LayoutLine::set_start_index

fn LayoutLine::set_start_index(self_ : LayoutLine, value : Int) -> Unit

#
LayoutLine::x_to_index

fn LayoutLine::x_to_index(self : LayoutLine, x_pos : Int) -> (Bool, Int, Int)

#
LayoutSerializeFlag

pub(all) enum LayoutSerializeFlag {
Default
Context
Output
}

#
LayoutSerializeFlags

pub struct LayoutSerializeFlags {
// private fields
}

#
LayoutSerializeFlags::LayoutSerializeFlags

#
LayoutSerializeFlags::from_int

fn LayoutSerializeFlags::from_int(value : Int) -> LayoutSerializeFlags

#
LayoutSerializeFlags::to_int

fn LayoutSerializeFlags::to_int(self : LayoutSerializeFlags) -> Int

#
LogAttr

pub type LogAttr
impl ILogAttr for LogAttr

#
LogAttr::_zero

fn LogAttr::_zero() -> LogAttr

#
LogAttr::get_backspace_deletes_character

fn LogAttr::get_backspace_deletes_character(self_ : LogAttr) -> UInt

#
LogAttr::get_break_inserts_hyphen

fn LogAttr::get_break_inserts_hyphen(self_ : LogAttr) -> UInt

#
LogAttr::get_break_removes_preceding

fn LogAttr::get_break_removes_preceding(self_ : LogAttr) -> UInt

#
LogAttr::get_is_char_break

fn LogAttr::get_is_char_break(self_ : LogAttr) -> UInt

#
LogAttr::get_is_cursor_position

fn LogAttr::get_is_cursor_position(self_ : LogAttr) -> UInt

#
LogAttr::get_is_expandable_space

fn LogAttr::get_is_expandable_space(self_ : LogAttr) -> UInt

#
LogAttr::get_is_line_break

fn LogAttr::get_is_line_break(self_ : LogAttr) -> UInt

#
LogAttr::get_is_mandatory_break

fn LogAttr::get_is_mandatory_break(self_ : LogAttr) -> UInt

#
LogAttr::get_is_sentence_boundary

fn LogAttr::get_is_sentence_boundary(self_ : LogAttr) -> UInt

#
LogAttr::get_is_sentence_end

fn LogAttr::get_is_sentence_end(self_ : LogAttr) -> UInt

#
LogAttr::get_is_sentence_start

fn LogAttr::get_is_sentence_start(self_ : LogAttr) -> UInt

#
LogAttr::get_is_white

fn LogAttr::get_is_white(self_ : LogAttr) -> UInt

#
LogAttr::get_is_word_boundary

fn LogAttr::get_is_word_boundary(self_ : LogAttr) -> UInt

#
LogAttr::get_is_word_end

fn LogAttr::get_is_word_end(self_ : LogAttr) -> UInt

#
LogAttr::get_is_word_start

fn LogAttr::get_is_word_start(self_ : LogAttr) -> UInt

#
LogAttr::get_reserved

fn LogAttr::get_reserved(self_ : LogAttr) -> UInt

#
LogAttr::set_backspace_deletes_character

fn LogAttr::set_backspace_deletes_character(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_break_inserts_hyphen

fn LogAttr::set_break_inserts_hyphen(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_break_removes_preceding

fn LogAttr::set_break_removes_preceding(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_is_char_break

fn LogAttr::set_is_char_break(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_is_cursor_position

fn LogAttr::set_is_cursor_position(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_is_expandable_space

fn LogAttr::set_is_expandable_space(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_is_line_break

fn LogAttr::set_is_line_break(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_is_mandatory_break

fn LogAttr::set_is_mandatory_break(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_is_sentence_boundary

fn LogAttr::set_is_sentence_boundary(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_is_sentence_end

fn LogAttr::set_is_sentence_end(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_is_sentence_start

fn LogAttr::set_is_sentence_start(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_is_white

fn LogAttr::set_is_white(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_is_word_boundary

fn LogAttr::set_is_word_boundary(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_is_word_end

fn LogAttr::set_is_word_end(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_is_word_start

fn LogAttr::set_is_word_start(self_ : LogAttr, value : UInt) -> Unit

#
LogAttr::set_reserved

fn LogAttr::set_reserved(self_ : LogAttr, value : UInt) -> Unit

#
Matrix

pub type Matrix
impl IMatrix for Matrix

#
Matrix::_zero

fn Matrix::_zero() -> Matrix

#
Matrix::concat

fn Matrix::concat(self : Matrix, new_matrix : Matrix) -> Unit

#
Matrix::get_font_scale_factor

fn Matrix::get_font_scale_factor(self : Matrix) -> Double

#
Matrix::get_font_scale_factors

fn Matrix::get_font_scale_factors(self : Matrix) -> (Double, Double)

#
Matrix::get_slant_ratio

fn Matrix::get_slant_ratio(self : Matrix) -> Double

#
Matrix::get_x0

fn Matrix::get_x0(self_ : Matrix) -> Double

#
Matrix::get_xx

fn Matrix::get_xx(self_ : Matrix) -> Double

#
Matrix::get_xy

fn Matrix::get_xy(self_ : Matrix) -> Double

#
Matrix::get_y0

fn Matrix::get_y0(self_ : Matrix) -> Double

#
Matrix::get_yx

fn Matrix::get_yx(self_ : Matrix) -> Double

#
Matrix::get_yy

fn Matrix::get_yy(self_ : Matrix) -> Double

#
Matrix::rotate

fn Matrix::rotate(self : Matrix, degrees : Double) -> Unit

#
Matrix::scale

fn Matrix::scale(self : Matrix, scale_x : Double, scale_y : Double) -> Unit

#
Matrix::set_x0

fn Matrix::set_x0(self_ : Matrix, value : Double) -> Unit

#
Matrix::set_xx

fn Matrix::set_xx(self_ : Matrix, value : Double) -> Unit

#
Matrix::set_xy

fn Matrix::set_xy(self_ : Matrix, value : Double) -> Unit

#
Matrix::set_y0

fn Matrix::set_y0(self_ : Matrix, value : Double) -> Unit

#
Matrix::set_yx

fn Matrix::set_yx(self_ : Matrix, value : Double) -> Unit

#
Matrix::set_yy

fn Matrix::set_yy(self_ : Matrix, value : Double) -> Unit

#
Matrix::transform_distance

fn Matrix::transform_distance(self : Matrix, dx : Double, dy : Double) -> (Double, Double)

#
Matrix::transform_pixel_rectangle

fn Matrix::transform_pixel_rectangle(self : Matrix, rect : Rectangle) -> Unit

#
Matrix::transform_point

fn Matrix::transform_point(self : Matrix, x : Double, y : Double) -> (Double, Double)

#
Matrix::transform_rectangle

fn Matrix::transform_rectangle(self : Matrix, rect : Rectangle) -> Unit

#
Matrix::translate

fn Matrix::translate(self : Matrix, tx : Double, ty : Double) -> Unit

#
Overline

pub(all) enum Overline {
None
Single
}

#
Rectangle

pub type Rectangle

#
Rectangle::_zero

fn Rectangle::_zero() -> Rectangle

#
Rectangle::get_height

fn Rectangle::get_height(self_ : Rectangle) -> Int

#
Rectangle::get_width

fn Rectangle::get_width(self_ : Rectangle) -> Int

#
Rectangle::get_x

fn Rectangle::get_x(self_ : Rectangle) -> Int

#
Rectangle::get_y

fn Rectangle::get_y(self_ : Rectangle) -> Int

#
Rectangle::set_height

fn Rectangle::set_height(self_ : Rectangle, value : Int) -> Unit

#
Rectangle::set_width

fn Rectangle::set_width(self_ : Rectangle, value : Int) -> Unit

#
Rectangle::set_x

fn Rectangle::set_x(self_ : Rectangle, value : Int) -> Unit

#
Rectangle::set_y

fn Rectangle::set_y(self_ : Rectangle, value : Int) -> Unit

#
RenderPart

pub(all) enum RenderPart {
Foreground
Background
Underline
Strikethrough
Overline
}

#
Renderer

pub type Renderer

#
Renderer::activate

fn Renderer::activate(self : Renderer) -> Unit

#
Renderer::as_gobject_object

fn Renderer::as_gobject_object(self : Renderer) ->
Object

#
Renderer::deactivate

fn Renderer::deactivate(self : Renderer) -> Unit

#
Renderer::draw_error_underline

fn Renderer::draw_error_underline(self : Renderer, x : Int, y : Int, width : Int, height : Int) -> Unit

#
Renderer::draw_glyph

fn Renderer::draw_glyph(self : Renderer, font : &IFont, glyph : UInt, x : Double, y : Double) -> Unit

#
Renderer::draw_glyph_item

fn Renderer::draw_glyph_item(self : Renderer, text : String?, glyph_item : GlyphItem, x : Int, y : Int) -> Unit

#
Renderer::draw_glyphs

fn Renderer::draw_glyphs(self : Renderer, font : &IFont, glyphs : GlyphString, x : Int, y : Int) -> Unit

#
Renderer::draw_layout

fn Renderer::draw_layout(self : Renderer, layout : &ILayout, x : Int, y : Int) -> Unit

#
Renderer::draw_layout_line

fn Renderer::draw_layout_line(self : Renderer, line : LayoutLine, x : Int, y : Int) -> Unit

#
Renderer::draw_rectangle

fn Renderer::draw_rectangle(self : Renderer, part : RenderPart, x : Int, y : Int, width : Int, height : Int) -> Unit

#
Renderer::draw_trapezoid

fn Renderer::draw_trapezoid(self : Renderer, part : RenderPart, y1_ : Double, x11 : Double, x21 : Double, y2 : Double, x12 : Double, x22 : Double) -> Unit

#
Renderer::get_alpha

fn Renderer::get_alpha(self : Renderer, part : RenderPart) -> UInt

#
Renderer::get_color

fn Renderer::get_color(self : Renderer, part : RenderPart) -> Color?

#
Renderer::get_layout

fn Renderer::get_layout(self : Renderer) -> Layout?

#
Renderer::get_layout_line

fn Renderer::get_layout_line(self : Renderer) -> LayoutLine?

#
Renderer::get_matrix

fn Renderer::get_matrix(self : Renderer) -> Matrix?

#
Renderer::part_changed

fn Renderer::part_changed(self : Renderer, part : RenderPart) -> Unit

#
Renderer::set_alpha

fn Renderer::set_alpha(self : Renderer, part : RenderPart, alpha : UInt) -> Unit

#
Renderer::set_color

fn Renderer::set_color(self : Renderer, part : RenderPart, color : Color?) -> Unit

#
Renderer::set_matrix

fn Renderer::set_matrix(self : Renderer, matrix : Matrix?) -> Unit

#
Script

pub(all) enum Script {
InvalidCode
Common
Inherited
Arabic
Armenian
Bengali
Bopomofo
Cherokee
Coptic
Cyrillic
Deseret
Devanagari
Ethiopic
Georgian
Gothic
Greek
Gujarati
Gurmukhi
Han
Hangul
Hebrew
Hiragana
Kannada
Katakana
Khmer
Lao
Latin
Malayalam
Mongolian
Myanmar
Ogham
OldItalic
Oriya
Runic
Sinhala
Syriac
Tamil
Telugu
Thaana
Thai
Tibetan
CanadianAboriginal
Yi
Tagalog
Hanunoo
Buhid
Tagbanwa
Braille
Cypriot
Limbu
Osmanya
Shavian
LinearB
TaiLe
Ugaritic
NewTaiLue
Buginese
Glagolitic
Tifinagh
SylotiNagri
OldPersian
Kharoshthi
Unknown
Balinese
Cuneiform
Phoenician
PhagsPa
Nko
KayahLi
Lepcha
Rejang
Sundanese
Saurashtra
Cham
OlChiki
Vai
Carian
Lycian
Lydian
Batak
Brahmi
Mandaic
Chakma
MeroiticCursive
MeroiticHieroglyphs
Miao
Sharada
SoraSompeng
Takri
BassaVah
CaucasianAlbanian
Duployan
Elbasan
Grantha
Khojki
Khudawadi
LinearA
Mahajani
Manichaean
MendeKikakui
Modi
Mro
Nabataean
OldNorthArabian
OldPermic
PahawhHmong
Palmyrene
PauCinHau
PsalterPahlavi
Siddham
Tirhuta
WarangCiti
Ahom
AnatolianHieroglyphs
Hatran
Multani
OldHungarian
Signwriting
}

#
ShapeFlag

pub(all) enum ShapeFlag {
None
RoundPositions
}

#
ShapeFlags

pub struct ShapeFlags {
// private fields
}

#
ShapeFlags::ShapeFlags

fn ShapeFlags::ShapeFlags(flags : Array[ShapeFlag]) -> ShapeFlags

#
ShapeFlags::from_int

fn ShapeFlags::from_int(value : Int) -> ShapeFlags

#
ShapeFlags::to_int

fn ShapeFlags::to_int(self : ShapeFlags) -> Int

#
ShowFlag

pub(all) enum ShowFlag {
None
Spaces
LineBreaks
Ignorables
}

#
ShowFlags

pub struct ShowFlags {
// private fields
}

#
ShowFlags::ShowFlags

fn ShowFlags::ShowFlags(flags : Array[ShowFlag]) -> ShowFlags

#
ShowFlags::from_int

fn ShowFlags::from_int(value : Int) -> ShowFlags

#
ShowFlags::to_int

fn ShowFlags::to_int(self : ShowFlags) -> Int

#
Stretch

pub(all) enum Stretch {
UltraCondensed
ExtraCondensed
Condensed
SemiCondensed
Normal
SemiExpanded
Expanded
ExtraExpanded
UltraExpanded
}

#
Style

pub(all) enum Style {
Normal
Oblique
Italic
}

#
TabAlign

pub(all) enum TabAlign {
Left
Right
Center
Decimal
}

#
TabArray

pub type TabArray

#
TabArray::from_string

fn TabArray::from_string(text : String) -> TabArray?

#
TabArray::get_decimal_point

fn TabArray::get_decimal_point(self : TabArray, tab_index : Int) -> UInt

#
TabArray::get_positions_in_pixels

fn TabArray::get_positions_in_pixels(self : TabArray) -> Bool

#
TabArray::get_size

fn TabArray::get_size(self : TabArray) -> Int

#
TabArray::get_tab

fn TabArray::get_tab(self : TabArray, tab_index : Int) -> (TabAlign, Int)

#
TabArray::get_tabs

fn TabArray::get_tabs(self : TabArray) -> (Array[TabAlign], Array[Int])

#
TabArray::new

fn TabArray::new(initial_size : Int, positions_in_pixels : Bool) -> TabArray

#
TabArray::resize

fn TabArray::resize(self : TabArray, new_size : Int) -> Unit

#
TabArray::set_decimal_point

fn TabArray::set_decimal_point(self : TabArray, tab_index : Int, decimal_point : UInt) -> Unit

#
TabArray::set_positions_in_pixels

fn TabArray::set_positions_in_pixels(self : TabArray, positions_in_pixels : Bool) -> Unit

#
TabArray::set_tab

fn TabArray::set_tab(self : TabArray, tab_index : Int, alignment : TabAlign, location : Int) -> Unit

#
TabArray::sort

fn TabArray::sort(self : TabArray) -> Unit

#
TabArray::to_string

fn TabArray::to_string(self : TabArray) -> String

#
TextTransform

pub(all) enum TextTransform {
None
Lowercase
Uppercase
Capitalize
}

#
Underline

pub(all) enum Underline {
None
Single
Double
Low
Error
SingleLine
DoubleLine
ErrorLine
}

#
Variant

pub(all) enum Variant {
Normal
SmallCaps
AllSmallCaps
PetiteCaps
AllPetiteCaps
Unicase
TitleCaps
}

#
Weight

pub(all) enum Weight {
Thin
Ultralight
Light
Semilight
Book
Normal
Medium
Semibold
Bold
Ultrabold
Heavy
Ultraheavy
}

#
WrapMode

pub(all) enum WrapMode {
Word
Char
WordChar
None
}

#
ANALYSIS_FLAG_CENTERED_BASELINE

let ANALYSIS_FLAG_CENTERED_BASELINE : Int

#
ANALYSIS_FLAG_IS_ELLIPSIS

let ANALYSIS_FLAG_IS_ELLIPSIS : Int

#
ANALYSIS_FLAG_NEED_HYPHEN

let ANALYSIS_FLAG_NEED_HYPHEN : Int

#
ATTR_INDEX_FROM_TEXT_BEGINNING

let ATTR_INDEX_FROM_TEXT_BEGINNING : UInt

#
ATTR_INDEX_TO_TEXT_END

let ATTR_INDEX_TO_TEXT_END : UInt

#
GLYPH_EMPTY

let GLYPH_EMPTY : UInt

#
GLYPH_INVALID_INPUT

let GLYPH_INVALID_INPUT : UInt

#
GLYPH_UNKNOWN_FLAG

let GLYPH_UNKNOWN_FLAG : UInt

#
SCALE

let SCALE : Int

#
VERSION_MAJOR

let VERSION_MAJOR : Int

#
VERSION_MICRO

let VERSION_MICRO : Int

#
VERSION_MINOR

let VERSION_MINOR : Int

#
attr_allow_breaks_new

fn attr_allow_breaks_new(allow_breaks : Bool) -> Attribute

#
attr_background_alpha_new

fn attr_background_alpha_new(alpha : UInt) -> Attribute

#
attr_background_new

fn attr_background_new(red : UInt, green : UInt, blue : UInt) -> Attribute

#
attr_baseline_shift_new

fn attr_baseline_shift_new(shift : Int) -> Attribute

#
attr_break

fn attr_break(text : String, length : Int, attr_list : AttrList, offset : Int, attrs : Array[LogAttr]) -> Unit

#
attr_fallback_new

fn attr_fallback_new(enable_fallback : Bool) -> Attribute

#
attr_family_new

fn attr_family_new(family : String) -> Attribute

#
attr_font_scale_new

fn attr_font_scale_new(scale : FontScale) -> Attribute

#
attr_foreground_alpha_new

fn attr_foreground_alpha_new(alpha : UInt) -> Attribute

#
attr_foreground_new

fn attr_foreground_new(red : UInt, green : UInt, blue : UInt) -> Attribute

#
attr_gravity_hint_new

fn attr_gravity_hint_new(hint : GravityHint) -> Attribute

#
attr_gravity_new

fn attr_gravity_new(gravity : Gravity) -> Attribute

#
attr_insert_hyphens_new

fn attr_insert_hyphens_new(insert_hyphens : Bool) -> Attribute

#
attr_letter_spacing_new

fn attr_letter_spacing_new(letter_spacing : Int) -> Attribute

#
attr_line_height_new

fn attr_line_height_new(factor : Double) -> Attribute

#
attr_line_height_new_absolute

fn attr_line_height_new_absolute(height : Int) -> Attribute

#
attr_overline_color_new

fn attr_overline_color_new(red : UInt, green : UInt, blue : UInt) -> Attribute

#
attr_overline_new

fn attr_overline_new(overline : Overline) -> Attribute

#
attr_rise_new

fn attr_rise_new(rise : Int) -> Attribute

#
attr_scale_new

fn attr_scale_new(scale_factor : Double) -> Attribute

#
attr_sentence_new

fn attr_sentence_new() -> Attribute

#
attr_show_new

fn attr_show_new(flags : ShowFlags) -> Attribute

#
attr_stretch_new

fn attr_stretch_new(stretch : Stretch) -> Attribute

#
attr_strikethrough_color_new

fn attr_strikethrough_color_new(red : UInt, green : UInt, blue : UInt) -> Attribute

#
attr_strikethrough_new

fn attr_strikethrough_new(strikethrough : Bool) -> Attribute

#
attr_style_new

fn attr_style_new(style : Style) -> Attribute

#
attr_text_transform_new

fn attr_text_transform_new(transform : TextTransform) -> Attribute

#
attr_underline_color_new

fn attr_underline_color_new(red : UInt, green : UInt, blue : UInt) -> Attribute

#
attr_underline_new

fn attr_underline_new(underline : Underline) -> Attribute

#
attr_variant_new

fn attr_variant_new(variant : Variant) -> Attribute

#
attr_weight_new

fn attr_weight_new(weight : Weight) -> Attribute

#
attr_word_new

fn attr_word_new() -> Attribute

#
default_break

fn default_break(text : String, length : Int, analysis : Analysis?) -> Array[LogAttr]

#
extents_to_pixels

fn extents_to_pixels(inclusive : Rectangle, nearest : Rectangle) -> Unit

#
find_paragraph_boundary

fn find_paragraph_boundary(text : String, length : Int) -> (Int, Int)

#
get_log_attrs

fn get_log_attrs(text : String, length : Int, level : Int, language : Language) -> Array[LogAttr]

#
is_zero_width

fn is_zero_width(ch : UInt) -> Bool

#
itemize

fn itemize(context : &IContext, text : String, start_index : Int, length : Int, attrs : AttrList, cached_iter : AttrIterator?) -> Array[Item]

#
itemize_with_base_dir

fn itemize_with_base_dir(context : &IContext, base_dir : Direction, text : String, start_index : Int, length : Int, attrs : AttrList, cached_iter : AttrIterator?) -> Array[Item]

#
log2vis_get_embedding_levels

fn log2vis_get_embedding_levels(text : String, length : Int, pbase_dir : Direction) -> (Array[UInt], Direction)

#
parse_markup

fn parse_markup(markup_text : String, length : Int, accel_marker : UInt) -> (AttrList, String, UInt) raise
Error_

#
parse_stretch

fn parse_stretch(str : String, warn : Bool) -> Stretch?

#
parse_style

fn parse_style(str : String, warn : Bool) -> Style?

#
parse_variant

fn parse_variant(str : String, warn : Bool) -> Variant?

#
parse_weight

fn parse_weight(str : String, warn : Bool) -> Weight?

#
quantize_line_geometry

fn quantize_line_geometry(thickness : Int, position : Int) -> (Int, Int)

#
reorder_items

fn reorder_items(items : Array[Item]) -> Array[Item]

#
shape

fn shape(text : String, length : Int, analysis : Analysis) -> GlyphString

Converts an itemized text segment into glyphs.

#
shape_full

fn shape_full(item_text : String, item_length : Int, paragraph_text : String?, paragraph_length : Int, analysis : Analysis) -> GlyphString

Shapes an item with optional surrounding paragraph text.

#
shape_item

fn shape_item(item : Item, paragraph_text : String?, paragraph_length : Int, log_attrs : FixedArray[LogAttr]?, flags : ShapeFlags) -> GlyphString

Shapes an item, applying optional logical attributes and shaping flags.

#
shape_with_flags

fn shape_with_flags(item_text : String, item_length : Int, paragraph_text : String?, paragraph_length : Int, analysis : Analysis, flags : ShapeFlags) -> GlyphString

Shapes an item with optional paragraph context and shaping flags.

#
tailor_break

fn tailor_break(text : String, length : Int, analysis : Analysis, offset : Int, attrs : Array[LogAttr]) -> Unit

#
unichar_direction

fn unichar_direction(ch : UInt) -> Direction

#
units_from_double

fn units_from_double(d : Double) -> Int

#
units_to_double

fn units_to_double(i : Int) -> Double

#
version

fn version() -> Int

#
version_check

fn version_check(required_major : Int, required_minor : Int, required_micro : Int) -> String?

#
version_string

fn version_string() -> String

Source Files