sig
val cast : 'a Gobject.obj -> Pango.layout
external create : Pango.context -> Pango.layout = "ml_pango_layout_new"
external copy : Pango.layout -> Pango.layout = "ml_pango_layout_copy"
external get_context : Pango.layout -> Pango.context
= "ml_pango_layout_get_context"
external get_text : Pango.layout -> string = "ml_pango_layout_get_text"
external set_text : Pango.layout -> string -> unit
= "ml_pango_layout_set_text"
external set_markup : Pango.layout -> string -> unit
= "ml_pango_layout_set_markup"
external set_markup_with_accel :
Pango.layout -> string -> Glib.unichar -> unit
= "ml_pango_layout_set_markup_with_accel"
external get_width : Pango.layout -> int = "ml_pango_layout_get_width"
external set_width : Pango.layout -> int -> unit
= "ml_pango_layout_set_width"
external get_indent : Pango.layout -> int = "ml_pango_layout_get_indent"
external set_indent : Pango.layout -> int -> unit
= "ml_pango_layout_set_indent"
external get_spacing : Pango.layout -> int = "ml_pango_layout_get_spacing"
external set_spacing : Pango.layout -> int -> unit
= "ml_pango_layout_set_spacing"
external get_wrap : Pango.layout -> Pango.Tags.wrap_mode
= "ml_pango_layout_get_wrap"
external set_wrap : Pango.layout -> Pango.Tags.wrap_mode -> unit
= "ml_pango_layout_set_wrap"
external get_justify : Pango.layout -> bool = "ml_pango_layout_get_justify"
external set_justify : Pango.layout -> bool -> unit
= "ml_pango_layout_set_justify"
external get_single_paragraph_mode : Pango.layout -> bool
= "ml_pango_layout_get_single_paragraph_mode"
external set_single_paragraph_mode : Pango.layout -> bool -> unit
= "ml_pango_layout_set_single_paragraph_mode"
external context_changed : Pango.layout -> unit
= "ml_pango_layout_context_changed"
external get_size : Pango.layout -> Pango.units * Pango.units
= "ml_pango_layout_get_size"
external get_pixel_size : Pango.layout -> int * int
= "ml_pango_layout_get_pixel_size"
external get_extent : Pango.layout -> Pango.rectangle
= "ml_pango_layout_get_extent"
external get_pixel_extent : Pango.layout -> Pango.rectangle
= "ml_pango_layout_get_pixel_extent"
external index_to_pos : Pango.layout -> int -> Pango.rectangle
= "ml_pango_layout_index_to_pos"
external xy_to_index : Pango.layout -> x:int -> y:int -> int * int * bool
= "ml_pango_layout_xy_to_index"
external set_ellipsize : Pango.layout -> Pango.Tags.ellipsize_mode -> unit
= "ml_pango_layout_set_ellipsize"
external get_ellipsize : Pango.layout -> Pango.Tags.ellipsize_mode
= "ml_pango_layout_get_ellipsize"
end