import "glib/glib" import "glib/glib-object" import "pango/pango-font" import "pango/pango-types" public [name="c"] struct PangoColor red: guint16 green: guint16 blue: guint16 end import func pango_color_get_type: GType import func pango_color_copy (PangoColor): PangoColor import func pango_color_free (PangoColor) import func pango_color_parse (PangoColor, [] char): gboolean struct PangoAttrList; dummy: int; end struct PangoAttrIterator; dummy: int; end enum PangoAttrType PANGO_ATTR_INVALID PANGO_ATTR_LANGUAGE PANGO_ATTR_FAMILY PANGO_ATTR_STYLE PANGO_ATTR_WEIGHT PANGO_ATTR_VARIANT PANGO_ATTR_STRETCH PANGO_ATTR_SIZE PANGO_ATTR_FONT_DESC PANGO_ATTR_FOREGROUND PANGO_ATTR_BACKGROUND PANGO_ATTR_UNDERLINE PANGO_ATTR_STRIKETHROUGH PANGO_ATTR_RISE PANGO_ATTR_SHAPE PANGO_ATTR_SCALE PANGO_ATTR_FALLBACK PANGO_ATTR_LETTER_SPACING end enum PangoUnderline PANGO_UNDERLINE_NONE PANGO_UNDERLINE_SINGLE PANGO_UNDERLINE_DOUBLE PANGO_UNDERLINE_LOW PANGO_UNDERLINE_ERROR end struct PangoAttribute klass: PangoAttrClass start_index: guint end_index: guint end typedef PangoAttrFilterFunc = {PangoAttribute, gpointer} gboolean struct PangoAttrClass type: PangoAttrType copy: {PangoAttribute} PangoAttribute destroy: {PangoAttribute} void equal: {PangoAttribute, PangoAttribute} gboolean end struct PangoAttrString attr: PangoAttribute value: [] char end struct PangoAttrLanguage attr: PangoAttribute value: PangoLanguage end struct PangoAttrInt attr: PangoAttribute value: int end struct PangoAttrFloat attr: PangoAttribute //value: double end struct PangoAttrColor attr: PangoAttribute color: local PangoColor end struct PangoAttrShape attr: PangoAttribute ink_rect: local PangoRectangle logical_rect: local PangoRectangle end struct PangoAttrFontDesc attr: PangoAttribute desc: PangoFontDescription end import func pango_attr_type_register ([] gchar): PangoAttrType import func pango_attribute_copy (PangoAttribute): PangoAttribute import func pango_attribute_destroy (PangoAttribute) import func pango_attribute_equal (PangoAttribute, PangoAttribute): gboolean import func pango_attr_language_new (PangoLanguage): PangoAttribute import func pango_attr_family_new ([] char): PangoAttribute import func pango_attr_foreground_new (guint16, guint16, guint16): PangoAttribute import func pango_attr_background_new (guint16, guint16, guint16): PangoAttribute import func pango_attr_size_new (int): PangoAttribute import func pango_attr_style_new (PangoStyle): PangoAttribute import func pango_attr_weight_new (PangoWeight): PangoAttribute import func pango_attr_variant_new (PangoVariant): PangoAttribute import func pango_attr_stretch_new (PangoStretch): PangoAttribute import func pango_attr_font_desc_new (PangoFontDescription): PangoAttribute import func pango_attr_underline_new (PangoUnderline): PangoAttribute import func pango_attr_strikethrough_new (gboolean): PangoAttribute import func pango_attr_rise_new (int): PangoAttribute import func pango_attr_shape_new (PangoRectangle, PangoRectangle): PangoAttribute //import func pango_attr_scale_new (double): PangoAttribute import func pango_attr_fallback_new (gboolean): PangoAttribute import func pango_attr_letter_spacing_new (int): PangoAttribute import func pango_attr_list_get_type: GType import func pango_attr_list_new: PangoAttrList import func pango_attr_list_ref (PangoAttrList) import func pango_attr_list_unref (PangoAttrList) import func pango_attr_list_copy (PangoAttrList): PangoAttrList import func pango_attr_list_insert (PangoAttrList, PangoAttribute) import func pango_attr_list_insert_before (PangoAttrList, PangoAttribute) import func pango_attr_list_change (PangoAttrList, PangoAttribute) import func pango_attr_list_splice (PangoAttrList, PangoAttrList, gint, gint) import func pango_attr_list_filter (PangoAttrList, PangoAttrFilterFunc, gpointer): PangoAttrList import func pango_attr_list_get_iterator (PangoAttrList): PangoAttrIterator import func pango_attr_iterator_range (PangoAttrIterator, [] gint, [] gint) import func pango_attr_iterator_next (PangoAttrIterator): gboolean import func pango_attr_iterator_copy (PangoAttrIterator): PangoAttrIterator import func pango_attr_iterator_destroy (PangoAttrIterator): PangoAttrIterator import func pango_attr_iterator_get (PangoAttrIterator, PangoAttrType): PangoAttribute import func pango_attr_iterator_get_font (PangoAttrIterator, PangoFontDescription, [] PangoLanguage, [] GSList) import func pango_attr_iterator_get_attrs (PangoAttrIterator): GSList //import func pango_parse_markup ([] char, int, gunichar, [] PangoAttrList, [][]char, [] gunichar, [] GError): gboolean end