diff options
author | John Finlay <finlay@src.gnome.org> | 2006-07-24 21:50:44 +0000 |
---|---|---|
committer | John Finlay <finlay@src.gnome.org> | 2006-07-24 21:50:44 +0000 |
commit | 1a0fe754cdc93ea2e42ce50b6e8ec2230efa914b (patch) | |
tree | b910a3f0920af3e9448d09b70c1808179756c8d8 | |
parent | 21ffc4face9dc5c92cc73a8de64de05c04065ac8 (diff) | |
download | pygtk-1a0fe754cdc93ea2e42ce50b6e8ec2230efa914b.tar.gz |
ignore-glob (pango_default_break): ignore
* pango.override (*_get_type, *_ref, *_unref, *_free): ignore-glob
(pango_default_break): ignore
* pango.defs (pango_attr_shape_new_with_data, pango_default_break)
(pango_context_get_font_map, pango_context_set_matrix)
(pango_context_get_matrix, pango_itemize_with_base_dir)
(pango_coverage_new, pango_glyph_item_split, pango_glyph_item_free)
(pango_glyph_item_apply_attrs, pango_glyph_item_letter_space)
(pango_item_get_type, pango_item_new, pango_item_copy)
(pango_item_free, pango_item_split, pango_script_for_unichar)
(pango_script_iter_new, pango_script_iter_get_range)
(pango_script_iter_next, pango_script_iter_free)
(pango_script_get_sample_language, pango_script_includes_script)
(pango_matrix_get_type, pango_matrix_copy, pango_matrix_free)
(pango_matrix_translate, pango_matrix_scale, pango_matrix_rotate)
(pango_matrix_concat, pango_get_mirror_char, pango_unichar_direction)
(pango_find_base_dir): Add. Add virtuals.
(pango_font_metrics_new, pango_find_map, pango_map_get_engine)
(pango_map_get_engines, pango_module_register): Add with ifdef
PANGO_ENABLE_BACKEND
(pango_split_file_list, pango_trim_string, pango_read_line)
(pango_skip_space, pango_scan_word, pango_scan_string)
(pango_scan_int, pango_config_key_get, pango_lookup_aliases)
(pango_parse_style, pango_parse_variant, pango_parse_weight)
(pango_parse_stretch, pango_get_sysconf_subdirectory)
(pango_get_lib_subdirectory, pango_log2vis_get_embedding_levels)
(pango_get_sample_string, pango_is_zero_width): Add with ifdef
USE_PANGO_UTILS
* pango-types.defs (WrapMode): Add PANGO_WRAP_WORD_CHAR. Reorganize.
-rw-r--r-- | ChangeLog | 33 | ||||
-rw-r--r-- | pango-types.defs | 436 | ||||
-rw-r--r-- | pango.defs | 1074 | ||||
-rw-r--r-- | pango.override | 18 |
4 files changed, 1308 insertions, 253 deletions
@@ -1,3 +1,36 @@ +2006-07-24 John Finlay <finlay@moeraki.com> + + * pango.override (*_get_type, *_ref, *_unref, *_free): ignore-glob + (pango_default_break): ignore + + * pango.defs (pango_attr_shape_new_with_data, pango_default_break) + (pango_context_get_font_map, pango_context_set_matrix) + (pango_context_get_matrix, pango_itemize_with_base_dir) + (pango_coverage_new, pango_glyph_item_split, pango_glyph_item_free) + (pango_glyph_item_apply_attrs, pango_glyph_item_letter_space) + (pango_item_get_type, pango_item_new, pango_item_copy) + (pango_item_free, pango_item_split, pango_script_for_unichar) + (pango_script_iter_new, pango_script_iter_get_range) + (pango_script_iter_next, pango_script_iter_free) + (pango_script_get_sample_language, pango_script_includes_script) + (pango_matrix_get_type, pango_matrix_copy, pango_matrix_free) + (pango_matrix_translate, pango_matrix_scale, pango_matrix_rotate) + (pango_matrix_concat, pango_get_mirror_char, pango_unichar_direction) + (pango_find_base_dir): Add. Add virtuals. + (pango_font_metrics_new, pango_find_map, pango_map_get_engine) + (pango_map_get_engines, pango_module_register): Add with ifdef + PANGO_ENABLE_BACKEND + (pango_split_file_list, pango_trim_string, pango_read_line) + (pango_skip_space, pango_scan_word, pango_scan_string) + (pango_scan_int, pango_config_key_get, pango_lookup_aliases) + (pango_parse_style, pango_parse_variant, pango_parse_weight) + (pango_parse_stretch, pango_get_sysconf_subdirectory) + (pango_get_lib_subdirectory, pango_log2vis_get_embedding_levels) + (pango_get_sample_string, pango_is_zero_width): Add with ifdef + USE_PANGO_UTILS + + * pango-types.defs (WrapMode): Add PANGO_WRAP_WORD_CHAR. Reorganize. + 2006-07-23 John Finlay <finlay@moeraki.com> * atk.override (AtkObjectFactory__do_create_accessible) diff --git a/pango-types.defs b/pango-types.defs index ddbd3691..2f9e734a 100644 --- a/pango-types.defs +++ b/pango-types.defs @@ -1,70 +1,4 @@ ;; -*- scheme -*- -; object definitions ... - -(define-object Context - (in-module "Pango") - (parent "GObject") - (c-name "PangoContext") - (gtype-id "PANGO_TYPE_CONTEXT") -) - -(define-object Font - (in-module "Pango") - (parent "GObject") - (c-name "PangoFont") - (gtype-id "PANGO_TYPE_FONT") -) - -(define-object FontFace - (in-module "Pango") - (parent "GObject") - (c-name "PangoFontFace") - (gtype-id "PANGO_TYPE_FONT_FACE") -) - -(define-object FontFamily - (in-module "Pango") - (parent "GObject") - (c-name "PangoFontFamily") - (gtype-id "PANGO_TYPE_FONT_FAMILY") -) - -(define-object FontMap - (in-module "Pango") - (parent "GObject") - (c-name "PangoFontMap") - (gtype-id "PANGO_TYPE_FONT_MAP") -) - -(define-object Fontset - (in-module "Pango") - (parent "GObject") - (c-name "PangoFontset") - (gtype-id "PANGO_TYPE_FONTSET") -) - -(define-object FontsetSimple - (in-module "Pango") - (parent "PangoFontset") - (c-name "PangoFontsetSimple") - (gtype-id "PANGO_TYPE_FONTSET_SIMPLE") -) - -(define-object Layout - (in-module "Pango") - (parent "GObject") - (c-name "PangoLayout") - (gtype-id "PANGO_TYPE_LAYOUT") -) - -(define-object Renderer - (in-module "Pango") - (parent "GObject") - (c-name "PangoRenderer") - (gtype-id "PANGO_TYPE_RENDERER") -) - - ;; boxed definitions ... (define-boxed AttrList @@ -102,7 +36,7 @@ (gtype-id "PANGO_TYPE_FONT_METRICS") (copy-func "pango_font_metrics_ref") (release-func "pango_font_metrics_unref") -) +) (define-boxed GlyphString (in-module "Pango") @@ -117,26 +51,6 @@ ) ) -(define-boxed Language - (in-module "Pango") - (c-name "PangoLanguage") - (gtype-id "PANGO_TYPE_LANGUAGE") -) - -(define-boxed LayoutLine - (in-module "Pango") - (c-name "PangoLayoutLine") - (gtype-id "PANGO_TYPE_LAYOUT_LINE") - (fields - ; '("PangoLayout*" "layout") ;; omitted for fear of creating reference cycles - '("gint" "start_index") - '("gint" "length") - '("GSList*" "runs") - '("guint" "is_paragraph_start") - '("guint" "resolved_dir") - ) -) - (define-boxed Item (in-module "Pango") (c-name "PangoItem") @@ -154,6 +68,12 @@ (gtype-id "PANGO_TYPE_ITEM") ) +(define-boxed Language + (in-module "Pango") + (c-name "PangoLanguage") + (gtype-id "PANGO_TYPE_LANGUAGE") +) + (define-boxed LayoutIter (in-module "Pango") (c-name "PangoLayoutIter") @@ -162,6 +82,26 @@ ) +(define-boxed LayoutLine + (in-module "Pango") + (c-name "PangoLayoutLine") + (gtype-id "PANGO_TYPE_LAYOUT_LINE") + (fields + ; '("PangoLayout*" "layout") ;; omitted for fear of creating reference cycles + '("gint" "start_index") + '("gint" "length") + '("GSList*" "runs") + '("guint" "is_paragraph_start") + '("guint" "resolved_dir") + ) +) + +(define-boxed Matrix + (in-module "Pango") + (c-name "PangoMatrix") + (gtype-id "PANGO_TYPE_MATRIX") +) + (define-boxed TabArray (in-module "Pango") (c-name "PangoTabArray") @@ -171,8 +111,106 @@ ) +; object definitions ... + +(define-object Context + (in-module "Pango") + (parent "GObject") + (c-name "PangoContext") + (gtype-id "PANGO_TYPE_CONTEXT") +) + +(define-object Engine + (in-module "Pango") + (parent "GObject") + (c-name "PangoEngine") + (gtype-id "PANGO_TYPE_ENGINE") +) + +(define-object EngineLang + (in-module "Pango") + (parent "PangoEngine") + (c-name "PangoEngineLang") + (gtype-id "PANGO_TYPE_ENGINE_LANG") +) + +(define-object EngineShape + (in-module "Pango") + (parent "PangoEngine") + (c-name "PangoEngineShape") + (gtype-id "PANGO_TYPE_ENGINE_SHAPE") +) + +(define-object Font + (in-module "Pango") + (parent "GObject") + (c-name "PangoFont") + (gtype-id "PANGO_TYPE_FONT") +) + +(define-object FontFace + (in-module "Pango") + (parent "GObject") + (c-name "PangoFontFace") + (gtype-id "PANGO_TYPE_FONT_FACE") +) + +(define-object FontFamily + (in-module "Pango") + (parent "GObject") + (c-name "PangoFontFamily") + (gtype-id "PANGO_TYPE_FONT_FAMILY") +) + +(define-object FontMap + (in-module "Pango") + (parent "GObject") + (c-name "PangoFontMap") + (gtype-id "PANGO_TYPE_FONT_MAP") +) + +(define-object Fontset + (in-module "Pango") + (parent "GObject") + (c-name "PangoFontset") + (gtype-id "PANGO_TYPE_FONTSET") +) + +(define-object FontsetSimple + (in-module "Pango") + (parent "PangoFontset") + (c-name "PangoFontsetSimple") + (gtype-id "PANGO_TYPE_FONTSET_SIMPLE") +) + +(define-object Layout + (in-module "Pango") + (parent "GObject") + (c-name "PangoLayout") + (gtype-id "PANGO_TYPE_LAYOUT") +) + +(define-object Renderer + (in-module "Pango") + (parent "GObject") + (c-name "PangoRenderer") + (gtype-id "PANGO_TYPE_RENDERER") +) + + ;; Enumerations and flags ... +(define-enum Alignment + (in-module "Pango") + (c-name "PangoAlignment") + (gtype-id "PANGO_TYPE_ALIGNMENT") + (values + '("left" "PANGO_ALIGN_LEFT") + '("center" "PANGO_ALIGN_CENTER") + '("right" "PANGO_ALIGN_RIGHT") + ) +) + (define-enum AttrType (in-module "Pango") (c-name "PangoAttrType") @@ -194,18 +232,11 @@ '("rise" "PANGO_ATTR_RISE") '("shape" "PANGO_ATTR_SHAPE") '("scale" "PANGO_ATTR_SCALE") - ) -) - -(define-enum Underline - (in-module "Pango") - (c-name "PangoUnderline") - (gtype-id "PANGO_TYPE_UNDERLINE") - (values - '("none" "PANGO_UNDERLINE_NONE") - '("single" "PANGO_UNDERLINE_SINGLE") - '("double" "PANGO_UNDERLINE_DOUBLE") - '("low" "PANGO_UNDERLINE_LOW") + '("fallback" "PANGO_ATTR_FALLBACK") + '("letter-spacing" "PANGO_ATTR_LETTER_SPACING") + '("underline-color" "PANGO_ATTR_UNDERLINE_COLOR") + '("strikethrough-color" "PANGO_ATTR_STRIKETHROUGH_COLOR") + '("absolute-size" "PANGO_ATTR_ABSOLUTE_SIZE") ) ) @@ -221,38 +252,112 @@ ) ) -(define-enum Style +(define-enum Direction (in-module "Pango") - (c-name "PangoStyle") - (gtype-id "PANGO_TYPE_STYLE") + (c-name "PangoDirection") + (gtype-id "PANGO_TYPE_DIRECTION") (values - '("normal" "PANGO_STYLE_NORMAL") - '("oblique" "PANGO_STYLE_OBLIQUE") - '("italic" "PANGO_STYLE_ITALIC") + '("ltr" "PANGO_DIRECTION_LTR") + '("rtl" "PANGO_DIRECTION_RTL") + '("ttb-ltr" "PANGO_DIRECTION_TTB_LTR") + '("ttb-rtl" "PANGO_DIRECTION_TTB_RTL") + '("weak-ltr" "PANGO_DIRECTION_WEAK_LTR") + '("weak-rtl" "PANGO_DIRECTION_WEAK_RTL") + '("neutral" "PANGO_DIRECTION_NEUTRAL") ) ) -(define-enum Variant +(define-enum EllipsizeMode (in-module "Pango") - (c-name "PangoVariant") - (gtype-id "PANGO_TYPE_VARIANT") + (c-name "PangoEllipsizeMode") + (gtype-id "PANGO_TYPE_ELLIPSIZE_MODE") (values - '("normal" "PANGO_VARIANT_NORMAL") - '("small-caps" "PANGO_VARIANT_SMALL_CAPS") + '("none" "PANGO_ELLIPSIZE_NONE") + '("start" "PANGO_ELLIPSIZE_START") + '("middle" "PANGO_ELLIPSIZE_MIDDLE") + '("end" "PANGO_ELLIPSIZE_END") ) ) -(define-enum Weight +(define-enum RenderPart (in-module "Pango") - (c-name "PangoWeight") - (gtype-id "PANGO_TYPE_WEIGHT") + (c-name "PangoRenderPart") + (gtype-id "PANGO_TYPE_RENDER_PART") (values - '("ultralight" "PANGO_WEIGHT_ULTRALIGHT") - '("light" "PANGO_WEIGHT_LIGHT") - '("normal" "PANGO_WEIGHT_NORMAL") - '("bold" "PANGO_WEIGHT_BOLD") - '("ultrabold" "PANGO_WEIGHT_ULTRABOLD") - '("heavy" "PANGO_WEIGHT_HEAVY") + '("foreground" "PANGO_RENDER_PART_FOREGROUND") + '("background" "PANGO_RENDER_PART_BACKGROUND") + '("underline" "PANGO_RENDER_PART_UNDERLINE") + '("strikethrough" "PANGO_RENDER_PART_STRIKETHROUGH") + ) +) + +(define-enum Script + (in-module "Pango") + (c-name "PangoScript") + (gtype-id "PANGO_TYPE_SCRIPT") + (values + '("invalid-code" "PANGO_SCRIPT_INVALID_CODE") + '("common" "PANGO_SCRIPT_COMMON") + '("inherited" "PANGO_SCRIPT_INHERITED") + '("arabic" "PANGO_SCRIPT_ARABIC") + '("armenian" "PANGO_SCRIPT_ARMENIAN") + '("bengali" "PANGO_SCRIPT_BENGALI") + '("bopomofo" "PANGO_SCRIPT_BOPOMOFO") + '("cherokee" "PANGO_SCRIPT_CHEROKEE") + '("coptic" "PANGO_SCRIPT_COPTIC") + '("cyrillic" "PANGO_SCRIPT_CYRILLIC") + '("deseret" "PANGO_SCRIPT_DESERET") + '("devanagari" "PANGO_SCRIPT_DEVANAGARI") + '("ethiopic" "PANGO_SCRIPT_ETHIOPIC") + '("georgian" "PANGO_SCRIPT_GEORGIAN") + '("gothic" "PANGO_SCRIPT_GOTHIC") + '("greek" "PANGO_SCRIPT_GREEK") + '("gujarati" "PANGO_SCRIPT_GUJARATI") + '("gurmukhi" "PANGO_SCRIPT_GURMUKHI") + '("han" "PANGO_SCRIPT_HAN") + '("hangul" "PANGO_SCRIPT_HANGUL") + '("hebrew" "PANGO_SCRIPT_HEBREW") + '("hiragana" "PANGO_SCRIPT_HIRAGANA") + '("kannada" "PANGO_SCRIPT_KANNADA") + '("katakana" "PANGO_SCRIPT_KATAKANA") + '("khmer" "PANGO_SCRIPT_KHMER") + '("lao" "PANGO_SCRIPT_LAO") + '("latin" "PANGO_SCRIPT_LATIN") + '("malayalam" "PANGO_SCRIPT_MALAYALAM") + '("mongolian" "PANGO_SCRIPT_MONGOLIAN") + '("myanmar" "PANGO_SCRIPT_MYANMAR") + '("ogham" "PANGO_SCRIPT_OGHAM") + '("old-italic" "PANGO_SCRIPT_OLD_ITALIC") + '("oriya" "PANGO_SCRIPT_ORIYA") + '("runic" "PANGO_SCRIPT_RUNIC") + '("sinhala" "PANGO_SCRIPT_SINHALA") + '("syriac" "PANGO_SCRIPT_SYRIAC") + '("tamil" "PANGO_SCRIPT_TAMIL") + '("telugu" "PANGO_SCRIPT_TELUGU") + '("thaana" "PANGO_SCRIPT_THAANA") + '("thai" "PANGO_SCRIPT_THAI") + '("tibetan" "PANGO_SCRIPT_TIBETAN") + '("canadian-aboriginal" "PANGO_SCRIPT_CANADIAN_ABORIGINAL") + '("yi" "PANGO_SCRIPT_YI") + '("tagalog" "PANGO_SCRIPT_TAGALOG") + '("hanunoo" "PANGO_SCRIPT_HANUNOO") + '("buhid" "PANGO_SCRIPT_BUHID") + '("tagbanwa" "PANGO_SCRIPT_TAGBANWA") + '("braille" "PANGO_SCRIPT_BRAILLE") + '("cypriot" "PANGO_SCRIPT_CYPRIOT") + '("limbu" "PANGO_SCRIPT_LIMBU") + '("osmanya" "PANGO_SCRIPT_OSMANYA") + '("shavian" "PANGO_SCRIPT_SHAVIAN") + '("linear-b" "PANGO_SCRIPT_LINEAR_B") + '("tai-le" "PANGO_SCRIPT_TAI_LE") + '("ugaritic" "PANGO_SCRIPT_UGARITIC") + '("new-tai-lue" "PANGO_SCRIPT_NEW_TAI_LUE") + '("buginese" "PANGO_SCRIPT_BUGINESE") + '("glagolitic" "PANGO_SCRIPT_GLAGOLITIC") + '("tifinagh" "PANGO_SCRIPT_TIFINAGH") + '("syloti-nagri" "PANGO_SCRIPT_SYLOTI_NAGRI") + '("old-persian" "PANGO_SCRIPT_OLD_PERSIAN") + '("kharoshthi" "PANGO_SCRIPT_KHAROSHTHI") ) ) @@ -273,83 +378,86 @@ ) ) -(define-flags FontMask +(define-enum Style (in-module "Pango") - (c-name "PangoFontMask") - (gtype-id "PANGO_TYPE_FONT_MASK") + (c-name "PangoStyle") + (gtype-id "PANGO_TYPE_STYLE") (values - '("family" "PANGO_FONT_MASK_FAMILY") - '("style" "PANGO_FONT_MASK_STYLE") - '("variant" "PANGO_FONT_MASK_VARIANT") - '("weight" "PANGO_FONT_MASK_WEIGHT") - '("stretch" "PANGO_FONT_MASK_STRETCH") - '("size" "PANGO_FONT_MASK_SIZE") + '("normal" "PANGO_STYLE_NORMAL") + '("oblique" "PANGO_STYLE_OBLIQUE") + '("italic" "PANGO_STYLE_ITALIC") ) ) -(define-enum Alignment +(define-enum TabAlign (in-module "Pango") - (c-name "PangoAlignment") - (gtype-id "PANGO_TYPE_ALIGNMENT") + (c-name "PangoTabAlign") + (gtype-id "PANGO_TYPE_TAB_ALIGN") (values - '("left" "PANGO_ALIGN_LEFT") - '("center" "PANGO_ALIGN_CENTER") - '("right" "PANGO_ALIGN_RIGHT") + '("left" "PANGO_TAB_LEFT") ) ) -(define-enum WrapMode +(define-enum Underline (in-module "Pango") - (c-name "PangoWrapMode") - (gtype-id "PANGO_TYPE_WRAP_MODE") + (c-name "PangoUnderline") + (gtype-id "PANGO_TYPE_UNDERLINE") (values - '("word" "PANGO_WRAP_WORD") - '("char" "PANGO_WRAP_CHAR") + '("none" "PANGO_UNDERLINE_NONE") + '("single" "PANGO_UNDERLINE_SINGLE") + '("double" "PANGO_UNDERLINE_DOUBLE") + '("low" "PANGO_UNDERLINE_LOW") + '("error" "PANGO_UNDERLINE_ERROR") ) ) -(define-enum TabAlign +(define-enum Variant (in-module "Pango") - (c-name "PangoTabAlign") - (gtype-id "PANGO_TYPE_TAB_ALIGN") + (c-name "PangoVariant") + (gtype-id "PANGO_TYPE_VARIANT") (values - '("left" "PANGO_TAB_LEFT") + '("normal" "PANGO_VARIANT_NORMAL") + '("small-caps" "PANGO_VARIANT_SMALL_CAPS") ) ) -(define-enum Direction +(define-enum Weight (in-module "Pango") - (c-name "PangoDirection") - (gtype-id "PANGO_TYPE_DIRECTION") + (c-name "PangoWeight") + (gtype-id "PANGO_TYPE_WEIGHT") (values - '("ltr" "PANGO_DIRECTION_LTR") - '("rtl" "PANGO_DIRECTION_RTL") - '("ttb-ltr" "PANGO_DIRECTION_TTB_LTR") - '("ttb-rtl" "PANGO_DIRECTION_TTB_RTL") + '("ultralight" "PANGO_WEIGHT_ULTRALIGHT") + '("light" "PANGO_WEIGHT_LIGHT") + '("normal" "PANGO_WEIGHT_NORMAL") + '("semibold" "PANGO_WEIGHT_SEMIBOLD") + '("bold" "PANGO_WEIGHT_BOLD") + '("ultrabold" "PANGO_WEIGHT_ULTRABOLD") + '("heavy" "PANGO_WEIGHT_HEAVY") ) ) -(define-enum EllipsizeMode +(define-enum WrapMode (in-module "Pango") - (c-name "PangoEllipsizeMode") - (gtype-id "PANGO_TYPE_ELLIPSIZE_MODE") + (c-name "PangoWrapMode") + (gtype-id "PANGO_TYPE_WRAP_MODE") (values - '("none" "PANGO_ELLIPSIZE_NONE") - '("start" "PANGO_ELLIPSIZE_START") - '("middle" "PANGO_ELLIPSIZE_MIDDLE") - '("end" "PANGO_ELLIPSIZE_END") + '("word" "PANGO_WRAP_WORD") + '("char" "PANGO_WRAP_CHAR") + '("word-char" "PANGO_WRAP_WORD_CHAR") ) ) -(define-enum RenderPart +(define-flags FontMask (in-module "Pango") - (c-name "PangoRenderPart") - (gtype-id "PANGO_TYPE_RENDER_PART") + (c-name "PangoFontMask") + (gtype-id "PANGO_TYPE_FONT_MASK") (values - '("foreground" "PANGO_RENDER_PART_FOREGROUND") - '("background" "PANGO_RENDER_PART_BACKGROUND") - '("underline" "PANGO_RENDER_PART_UNDERLINE") - '("strikethrough" "PANGO_RENDER_PART_STRIKETHROUGH") + '("family" "PANGO_FONT_MASK_FAMILY") + '("style" "PANGO_FONT_MASK_STYLE") + '("variant" "PANGO_FONT_MASK_VARIANT") + '("weight" "PANGO_FONT_MASK_WEIGHT") + '("stretch" "PANGO_FONT_MASK_STRETCH") + '("size" "PANGO_FONT_MASK_SIZE") ) ) @@ -21,7 +21,7 @@ (return-type "none") ) -(define-function pango_color_parse +(define-function color_parse (c-name "pango_color_parse") (is-constructor-of "PangoColor") (return-type "gboolean") @@ -103,6 +103,14 @@ ) ) +(define-function AttrSizeAbsolute + (c-name "pango_attr_size_new_absolute") + (return-type "PangoAttribute*") + (parameters + '("int" "size") + ) +) + (define-function AttrStyle (c-name "pango_attr_style_new") (return-type "PangoAttribute*") @@ -151,6 +159,16 @@ ) ) +(define-function AttrUnderlineColor + (c-name "pango_attr_underline_color_new") + (return-type "PangoAttribute*") + (parameters + '("guint16" "red") + '("guint16" "green") + '("guint16" "blue") + ) +) + (define-function AttrStrikethrough (c-name "pango_attr_strikethrough_new") (return-type "PangoAttribute*") @@ -159,20 +177,21 @@ ) ) -(define-function AttrRise - (c-name "pango_attr_rise_new") +(define-function AttrStrikethroughColor + (c-name "pango_attr_strikethrough_color_new") (return-type "PangoAttribute*") (parameters - '("int" "rise") + '("guint16" "red") + '("guint16" "green") + '("guint16" "blue") ) ) -(define-function AttrShape - (c-name "pango_attr_shape_new") +(define-function AttrRise + (c-name "pango_attr_rise_new") (return-type "PangoAttribute*") (parameters - '("const-PangoRectangle*" "ink_rect") - '("const-PangoRectangle*" "logical_rect") + '("int" "rise") ) ) @@ -192,42 +211,35 @@ ) ) -(define-function AttrSizeAbsolute - (c-name "pango_attr_size_new_absolute") - (return-type "PangoAttribute*") - (parameters - '("int" "size") - ) -) - -(define-function AttrUnderlineColor - (c-name "pango_attr_underline_color_new") +(define-function AttrLetterSpacing + (c-name "pango_attr_letter_spacing_new") (return-type "PangoAttribute*") (parameters - '("guint16" "red") - '("guint16" "green") - '("guint16" "blue") + '("int" "letter_spacing") ) ) - -(define-function AttrStrikethroughColor - (c-name "pango_attr_strikethrough_color_new") + +(define-function AttrShape + (c-name "pango_attr_shape_new") (return-type "PangoAttribute*") (parameters - '("guint16" "red") - '("guint16" "green") - '("guint16" "blue") + '("const-PangoRectangle*" "ink_rect") + '("const-PangoRectangle*" "logical_rect") ) ) - -(define-function AttrLetterSpacing - (c-name "pango_attr_letter_spacing_new") + +(define-function attr_shape_new_with_data + (c-name "pango_attr_shape_new_with_data") (return-type "PangoAttribute*") (parameters - '("int" "letter_spacing") + '("const-PangoRectangle*" "ink_rect") + '("const-PangoRectangle*" "logical_rect") + '("gpointer" "data") + '("PangoAttrDataCopyFunc" "copy_func") + '("GDestroyNotify" "destroy_func") ) ) - + (define-function pango_attr_list_get_type (c-name "pango_attr_list_get_type") (return-type "GType") @@ -295,12 +307,6 @@ ) ) -(define-method get_iterator - (of-object "PangoAttrList") - (c-name "pango_attr_list_get_iterator") - (return-type "PangoAttrIterator*") -) - (define-method filter (of-object "PangoAttrList") (c-name "pango_attr_list_filter") @@ -311,6 +317,12 @@ ) ) +(define-method get_iterator + (of-object "PangoAttrList") + (c-name "pango_attr_list_get_iterator") + (return-type "PangoAttrIterator*") +) + (define-method range (of-object "PangoAttrIterator") (c-name "pango_attr_iterator_range") @@ -379,6 +391,24 @@ ) ) +(define-virtual copy + (of-object "PangoAttr") + (return-type "PangoAttribute*") +) + +(define-virtual destroy + (of-object "PangoAttr") + (return-type "none") +) + +(define-virtual equal + (of-object "PangoAttr") + (return-type "gboolean") + (parameters + '("const-PangoAttribute*" "attr2") + ) +) + ;; From /opt/gtk2/include/pango-1.0/pango/pango-break.h @@ -417,10 +447,27 @@ ) ) +(define-function default_break + (c-name "pango_default_break") + (return-type "none") + (parameters + '("const-gchar*" "text") + '("int" "length") + '("PangoAnalysis*" "analysis") + '("PangoLogAttr*" "attrs") + '("int" "attrs_len") + ) +) + ;; From /opt/gtk2/include/pango-1.0/pango/pango-context.h +(define-function context_get_type + (c-name "pango_context_get_type") + (return-type "GType") +) + (define-function pango_context_new (c-name "pango_context_new") (return-type "PangoContext*") @@ -436,6 +483,12 @@ ) ) +(define-method get_font_map + (of-object "PangoContext") + (c-name "pango_context_get_font_map") + (return-type "PangoFontMap*") +) + (define-method list_families (of-object "PangoContext") (c-name "pango_context_list_families") @@ -521,6 +574,21 @@ (return-type "PangoDirection") ) +(define-method set_matrix + (of-object "PangoContext") + (c-name "pango_context_set_matrix") + (return-type "none") + (parameters + '("const-PangoMatrix*" "matrix") + ) +) + +(define-method get_matrix + (of-object "PangoContext") + (c-name "pango_context_get_matrix") + (return-type "const-PangoMatrix*") +) + (define-function itemize (c-name "pango_itemize") (return-type "GList*") @@ -534,10 +602,30 @@ ) ) +(define-function itemize_with_base_dir + (c-name "pango_itemize_with_base_dir") + (return-type "GList*") + (parameters + '("PangoContext*" "context") + '("PangoDirection" "base_dir") + '("const-char*" "text") + '("int" "start_index") + '("int" "length") + '("PangoAttrList*" "attrs") + '("PangoAttrIterator*" "cached_iter") + ) +) + ;; From /opt/gtk2/include/pango-1.0/pango/pango-coverage.h +(define-function coverage_new + (c-name "pango_coverage_new") + (is-constructor-of "PangoCoverage") + (return-type "PangoCoverage*") +) + (define-method ref (of-object "PangoCoverage") (c-name "pango_coverage_ref") @@ -606,8 +694,148 @@ +;; From pango-engine.h + +(ifdef PANGO_ENABLE_ENGINE + +(define-function engine_get_type + (c-name "pango_engine_get_type") + (return-type "GType") +) + +(define-function engine_lang_get_type + (c-name "pango_engine_lang_get_type") + (return-type "GType") +) + +(define-function engine_shape_get_type + (c-name "pango_engine_shape_get_type") + (return-type "GType") +) + +(define-virtual script_break + (of-object "PangoEngineLang") + (return-type "none") + (parameters + '("const-char*" "text") + '("int" "len") + '("PangoAnalysis*" "analysis") + '("PangoLogAttr*" "attrs") + '("int" "attrs_len") + ) +) + +(define-virtual script_shape + (of-object "PangoEngineShape") + (return-type "none") + (parameters + '("PangoFont*" "font") + '("const-char*" "text") + '("int" "length") + '("PangoAnalysis*" "analysis") + '("PangoGlyphString*" "glyphs") + ) +) + +(define-virtual covers + (of-object "PangoEngineShape") + (return-type "PangoCoverageLevel") + (parameters + '("PangoFont*" "font") + '("PangoLanguage*" "language") + '("gunichar" "wc") + ) +) +) ;; PANGO_ENABLE_ENGINE + + +;; From pango-enum-types.h + +(define-function attr_type_get_type + (c-name "pango_attr_type_get_type") + (return-type "GType") +) + +(define-function underline_get_type + (c-name "pango_underline_get_type") + (return-type "GType") +) + +(define-function coverage_level_get_type + (c-name "pango_coverage_level_get_type") + (return-type "GType") +) + +(define-function style_get_type + (c-name "pango_style_get_type") + (return-type "GType") +) + +(define-function variant_get_type + (c-name "pango_variant_get_type") + (return-type "GType") +) + +(define-function weight_get_type + (c-name "pango_weight_get_type") + (return-type "GType") +) + +(define-function stretch_get_type + (c-name "pango_stretch_get_type") + (return-type "GType") +) + +(define-function font_mask_get_type + (c-name "pango_font_mask_get_type") + (return-type "GType") +) + +(define-function alignment_get_type + (c-name "pango_alignment_get_type") + (return-type "GType") +) + +(define-function wrap_mode_get_type + (c-name "pango_wrap_mode_get_type") + (return-type "GType") +) + +(define-function ellipsize_mode_get_type + (c-name "pango_ellipsize_mode_get_type") + (return-type "GType") +) + +(define-function render_part_get_type + (c-name "pango_render_part_get_type") + (return-type "GType") +) + +(define-function script_get_type + (c-name "pango_script_get_type") + (return-type "GType") +) + +(define-function tab_align_get_type + (c-name "pango_tab_align_get_type") + (return-type "GType") +) + +(define-function direction_get_type + (c-name "pango_direction_get_type") + (return-type "GType") +) + + + ;; From /opt/gtk2/include/pango-1.0/pango/pango-font.h + +(define-function font_description_get_type + (c-name "pango_font_description_get_type") + (return-type "GType") +) + (define-function pango_font_description_new (c-name "pango_font_description_new") (is-constructor-of "PangoFontDescription") @@ -755,6 +983,21 @@ (return-type "gint") ) +(define-method set_absolute_size + (of-object "PangoFontDescription") + (c-name "pango_font_description_set_absolute_size") + (return-type "none") + (parameters + '("double" "size") + ) +) + +(define-method get_size_is_absolute + (of-object "PangoFontDescription") + (c-name "pango_font_description_get_size_is_absolute") + (return-type "gboolean") +) + (define-method get_set_fields (of-object "PangoFontDescription") (c-name "pango_font_description_get_set_fields") @@ -821,21 +1064,6 @@ (return-type "char*") ) -(define-method set_absolute_size - (of-object "PangoFontDescription") - (c-name "pango_font_description_set_absolute_size") - (return-type "none") - (parameters - '("double" "size") - ) -) - -(define-method get_size_is_absolute - (of-object "PangoFontDescription") - (c-name "pango_font_description_get_size_is_absolute") - (return-type "gboolean") -) - (define-function pango_font_metrics_get_type (c-name "pango_font_metrics_get_type") (return-type "GType") @@ -877,35 +1105,38 @@ (return-type "int") ) -(define-method get_strikethrough_position +(define-method get_underline_position (of-object "PangoFontMetrics") - (c-name "pango_font_metrics_get_strikethrough_position") + (c-name "pango_font_metrics_get_underline_position") (return-type "int") ) -(define-method get_strikethrough_thickness +(define-method get_underline_thickness (of-object "PangoFontMetrics") - (c-name "pango_font_metrics_get_strikethrough_thickness") + (c-name "pango_font_metrics_get_underline_thickness") (return-type "int") ) -(define-method get_underline_position +(define-method get_strikethrough_position (of-object "PangoFontMetrics") - (c-name "pango_font_metrics_get_underline_position") + (c-name "pango_font_metrics_get_strikethrough_position") (return-type "int") ) -(define-method get_underline_thickness +(define-method get_strikethrough_thickness (of-object "PangoFontMetrics") - (c-name "pango_font_metrics_get_underline_thickness") + (c-name "pango_font_metrics_get_strikethrough_thickness") (return-type "int") ) -; (define-function pango_font_metrics_new -; (c-name "pango_font_metrics_new") -; (is-constructor-of "PangoFontMetrics") -; (return-type "PangoFontMetrics*") -; ) +(ifdef PANGO_ENABLE_BACKEND + +(define-function font_metrics_new + (c-name "pango_font_metrics_new") + (is-constructor-of "PangoFontMetrics") + (return-type "PangoFontMetrics*") +) +) ;; PANGO_ENABLE_BACKEND (define-function pango_font_family_get_type (c-name "pango_font_family_get_type") @@ -1017,10 +1248,100 @@ (return-type "PangoFontMap*") ) +(define-virtual list_faces + (of-object "PangoFontFamily") + (return-type "none") + (parameters + '("PangoFontFace***" "faces") + '("int*" "n_faces") + ) +) + +(define-virtual get_name + (of-object "PangoFontFamily") + (return-type "const-char*") +) + +(define-virtual is_monospace + (of-object "PangoFontFamily") + (return-type "gboolean") +) + +(define-virtual get_face_name + (of-object "PangoFontFace") + (return-type "const-char*") +) + +(define-virtual describe + (of-object "PangoFontFace") + (return-type "PangoFontDescription*") +) + +(define-virtual list_sizes + (of-object "PangoFontFace") + (return-type "none") + (parameters + '("int**" "sizes") + '("int*" "n_sizes") + ) +) + +(define-virtual describe + (of-object "PangoFont") + (return-type "PangoFontDescription*") +) + +(define-virtual get_coverage + (of-object "PangoFont") + (return-type "PangoCoverage*") + (parameters + '("PangoLanguage*" "lang") + ) +) + +(define-virtual find_shaper + (of-object "PangoFont") + (return-type "PangoEngineShape*") + (parameters + '("PangoLanguage*" "lang") + '("guint32" "ch") + ) +) + +(define-virtual get_glyph_extents + (of-object "PangoFont") + (return-type "none") + (parameters + '("PangoGlyph" "glyph") + '("PangoRectangle*" "ink_rect") + '("PangoRectangle*" "logical_rect") + ) +) + +(define-virtual get_metrics + (of-object "PangoFont") + (return-type "PangoFontMetrics*") + (parameters + '("PangoLanguage*" "language") + ) +) + +(define-virtual get_font_map + (of-object "PangoFont") + (return-type "PangoFontMap*") +) + + + ;; From /opt/gtk2/include/pango-1.0/pango/pango-fontmap.h +(define-function font_map_get_type + (c-name "pango_font_map_get_type") + (return-type "GType") +) + (define-method load_font (of-object "PangoFontMap") (c-name "pango_font_map_load_font") @@ -1058,10 +1379,43 @@ (return-type "const-char*") ) +(define-virtual load_font + (of-object "PangoFontMap") + (return-type "PangoFont*") + (parameters + '("PangoContext*" "context") + '("const-PangoFontDescription*" "desc") + ) +) + +(define-virtual list_families + (of-object "PangoFontMap") + (return-type "none") + (parameters + '("PangoFontFamily***" "families") + '("int*" "n_families") + ) +) + +(define-virtual load_fontset + (of-object "PangoFontMap") + (return-type "PangoFontset*") + (parameters + '("PangoContext*" "context") + '("const-PangoFontDescription*" "desc") + '("PangoLanguage*" "language") + ) +) + ;; From /opt/gtk2/include/pango-1.0/pango/pango-fontset.h +(define-function fontset_get_type + (c-name "pango_fontset_get_type") + (return-type "GType") +) + (define-method get_font (of-object "PangoFontset") (c-name "pango_fontset_get_font") @@ -1082,11 +1436,16 @@ (c-name "pango_fontset_foreach") (return-type "none") (parameters - '("PangoFontSetForeachFunc" "func") + '("PangoFontsetForeachFunc" "func") '("gpointer" "data") ) ) +(define-function fontset_simple_get_type + (c-name "pango_fontset_simple_get_type") + (return-type "GType") +) + (define-function pango_fontset_simple_new (c-name "pango_fontset_simple_new") (is-constructor-of "PangoFontsetSimple") @@ -1111,6 +1470,74 @@ (return-type "int") ) +(define-virtual get_font + (of-object "PangoFontset") + (return-type "PangoFont*") + (parameters + '("guint" "wc") + ) +) + +(define-virtual get_metrics + (of-object "PangoFontset") + (return-type "PangoFontMetrics*") +) + +(define-virtual get_language + (of-object "PangoFontset") + (return-type "PangoLanguage*") +) + +(define-virtual foreach + (of-object "PangoFontset") + (return-type "none") + (parameters + '("PangoFontsetForeachFunc" "func") + '("gpointer" "data") + ) +) + + + +;; From pango-glyph-item.h + +(define-method split + (of-object "PangoGlyphItem") + (c-name "pango_glyph_item_split") + (return-type "PangoGlyphItem*") + (parameters + '("const-char*" "text") + '("int" "split_index") + ) +) + +(define-method free + (of-object "PangoGlyphItem") + (c-name "pango_glyph_item_free") + (return-type "none") +) + +(define-method apply_attrs + (of-object "PangoGlyphItem") + (c-name "pango_glyph_item_apply_attrs") + (return-type "GSList*") + (parameters + '("const-char*" "text") + '("PangoAttrList*" "list") + ) +) + +(define-method letter_space + (of-object "PangoGlyphItem") + (c-name "pango_glyph_item_letter_space") + (return-type "none") + (parameters + '("const-char*" "text") + '("PangoLogAttr*" "log_attrs") + '("int" "letter_spacing") + ) +) + ;; From /opt/gtk2/include/pango-1.0/pango/pango-glyph.h @@ -1232,6 +1659,43 @@ +;; From pango-item.h + +(define-function item_get_type + (c-name "pango_item_get_type") + (return-type "GType") +) + +(define-function item_new + (c-name "pango_item_new") + (is-constructor-of "PangoItem") + (return-type "PangoItem*") +) + +(define-method copy + (of-object "PangoItem") + (c-name "pango_item_copy") + (return-type "PangoItem*") +) + +(define-method free + (of-object "PangoItem") + (c-name "pango_item_free") + (return-type "none") +) + +(define-method split + (of-object "PangoItem") + (c-name "pango_item_split") + (return-type "PangoItem*") + (parameters + '("int" "split_index") + '("int" "split_offset") + ) +) + + + ;; From /opt/gtk2/include/pango-1.0/pango/pango-layout.h (define-function pango_layout_get_type @@ -1602,17 +2066,22 @@ (return-type "GSList*") ) -; (define-method ref -; (of-object "PangoLayoutLine") -; (c-name "pango_layout_line_ref") -; (return-type "none") -; ) +(define-function layout_line_get_type + (c-name "pango_layout_line_get_type") + (return-type "GType") +) -; (define-method unref -; (of-object "PangoLayoutLine") -; (c-name "pango_layout_line_unref") -; (return-type "none") -; ) +(define-method ref + (of-object "PangoLayoutLine") + (c-name "pango_layout_line_ref") + (return-type "PangoLayoutLine*") +) + +(define-method unref + (of-object "PangoLayoutLine") + (c-name "pango_layout_line_unref") + (return-type "none") +) (define-method x_to_index (of-object "PangoLayoutLine") @@ -1800,6 +2269,50 @@ +;; From pango-modules.h + +(ifdef PANGO_ENABLE_BACKEND + +(define-function find_map + (c-name "pango_find_map") + (return-type "PangoMap*") + (parameters + '("PangoLanguage*" "language") + '("guint" "engine_type_id") + '("guint" "render_type_id") + ) +) + +(define-method get_engine + (of-object "PangoMap") + (c-name "pango_map_get_engine") + (return-type "PangoEngine*") + (parameters + '("PangoScript" "script") + ) +) + +(define-method get_engines + (of-object "PangoMap") + (c-name "pango_map_get_engines") + (return-type "none") + (parameters + '("PangoScript" "script") + '("GSList**" "exact_engines") + '("GSList**" "fallback_engines") + ) +) + +(define-function module_register + (c-name "pango_module_register") + (return-type "none") + (parameters + '("PangoIncludedModule*" "module") + ) +) +) ;; PANGO_ENABLE_BACKEND + + ;; From /home/jdahlin/dev/gtk-2.8/pango/pango/pango-renderer.h (define-function pango_renderer_get_type @@ -1948,6 +2461,161 @@ (return-type "const-PangoMatrix*") ) +(define-virtual draw_glyphs + (of-object "PangoRenderer") + (return-type "none") + (parameters + '("PangoFont*" "font") + '("PangoGlyphString*" "glyphs") + '("int" "x") + '("int" "y") + ) +) + +(define-virtual draw_rectangle + (of-object "PangoRenderer") + (return-type "none") + (parameters + '("PangoRenderPart" "part") + '("int" "x") + '("int" "y") + '("int" "width") + '("int" "height") + ) +) + +(define-virtual draw_error_underline + (of-object "PangoRenderer") + (return-type "none") + (parameters + '("int" "x") + '("int" "y") + '("int" "width") + '("int" "height") + ) +) + +(define-virtual draw_shape + (of-object "PangoRenderer") + (return-type "none") + (parameters + '("PangoAttrShape*" "attr") + '("int" "x") + '("int" "y") + ) +) + +(define-virtual draw_trapezoid + (of-object "PangoRenderer") + (return-type "none") + (parameters + '("PangoRenderPart" "part") + '("double" "y1_") + '("double" "x11") + '("double" "x21") + '("double" "y2") + '("double" "x12") + '("double" "x22") + ) +) + +(define-virtual draw_glyph + (of-object "PangoRenderer") + (return-type "none") + (parameters + '("PangoFont*" "font") + '("PangoGlyph" "glyph") + '("double" "x") + '("double" "y") + ) +) + +(define-virtual part_changed + (of-object "PangoRenderer") + (return-type "none") + (parameters + '("PangoRenderPart" "part") + ) +) + +(define-virtual begin + (of-object "PangoRenderer") + (return-type "none") +) + +(define-virtual end + (of-object "PangoRenderer") + (return-type "none") +) + +(define-virtual prepare_run + (of-object "PangoRenderer") + (return-type "none") + (parameters + '("PangoLayoutRun*" "run") + ) +) + +;; From pango-script.h + +(define-function script_for_unichar + (c-name "pango_script_for_unichar") + (return-type "PangoScript") + (parameters + '("gunichar" "ch") + ) +) + +(define-function script_iter_new + (c-name "pango_script_iter_new") + (is-constructor-of "PangoScriptIter") + (return-type "PangoScriptIter*") + (parameters + '("const-char*" "text") + '("int" "length") + ) +) + +(define-method get_range + (of-object "PangoScriptIter") + (c-name "pango_script_iter_get_range") + (return-type "none") + (parameters + '("const-char**" "start") + '("const-char**" "end") + '("PangoScript*" "script") + ) +) + +(define-method next + (of-object "PangoScriptIter") + (c-name "pango_script_iter_next") + (return-type "gboolean") +) + +(define-method free + (of-object "PangoScriptIter") + (c-name "pango_script_iter_free") + (return-type "none") +) + +(define-method get_sample_language + (of-object "PangoScript") + (c-name "pango_script_get_sample_language") + (return-type "PangoLanguage*") +) + +(define-method includes_script + (of-object "PangoLanguage") + (c-name "pango_language_includes_script") + (return-type "gboolean") + (parameters + '("PangoScript" "script") + ) +) + + + ;; From /opt/gtk2/include/pango-1.0/pango/pango-tabs.h (define-function pango_tab_array_new @@ -2047,6 +2715,66 @@ ;; From /opt/gtk2/include/pango-1.0/pango/pango-types.h +(define-function matrix_get_type + (c-name "pango_matrix_get_type") + (return-type "GType") +) + +(define-method copy + (of-object "PangoMatrix") + (c-name "pango_matrix_copy") + (return-type "PangoMatrix*") +) + +(define-method free + (of-object "PangoMatrix") + (c-name "pango_matrix_free") + (return-type "none") +) + +(define-method translate + (of-object "PangoMatrix") + (c-name "pango_matrix_translate") + (return-type "none") + (parameters + '("double" "tx") + '("double" "ty") + ) +) + +(define-method scale + (of-object "PangoMatrix") + (c-name "pango_matrix_scale") + (return-type "none") + (parameters + '("double" "scale_x") + '("double" "scale_y") + ) +) + +(define-method rotate + (of-object "PangoMatrix") + (c-name "pango_matrix_rotate") + (return-type "none") + (parameters + '("double" "degrees") + ) +) + +(define-method concat + (of-object "PangoMatrix") + (c-name "pango_matrix_concat") + (return-type "none") + (parameters + '("const-PangoMatrix*" "new_matrix") + ) +) + +(define-function language_get_type + (c-name "pango_language_get_type") + (return-type "GType") +) + (define-function pango_language_from_string (is-constructor-of "PangoLanguage") (c-name "pango_language_from_string") @@ -2090,6 +2818,36 @@ (return-type "const-char*") ) +(define-function get_mirror_char + (c-name "pango_get_mirror_char") + (return-type "gboolean") + (parameters + '("gunichar" "ch") + '("gunichar*" "mirrored_ch") + ) + (deprecated "deprecated") +) + +(define-function unichar_direction + (c-name "pango_unichar_direction") + (return-type "PangoDirection") + (parameters + '("gunichar" "ch") + ) +) + +(define-function find_base_dir + (c-name "pango_find_base_dir") + (return-type "PangoDirection") + (parameters + '("const-gchar*" "text") + '("gint" "length") + ) +) + + +;; + (define-function PIXELS (c-name "PANGO_PIXELS") (return-type "gint") @@ -2129,3 +2887,165 @@ '("PangoRectangle" "rect") ) ) + + + +;; From pango-utils.h + +(ifdef USE_PANGO_UTILS + +(define-function split_file_list + (c-name "pango_split_file_list") + (return-type "char**") + (parameters + '("const-char*" "str") + ) +) + +(define-function trim_string + (c-name "pango_trim_string") + (return-type "char*") + (parameters + '("const-char*" "str") + ) +) + +(define-function read_line + (c-name "pango_read_line") + (return-type "gint") + (parameters + '("FILE*" "stream") + '("GString*" "str") + ) +) + +(define-function skip_space + (c-name "pango_skip_space") + (return-type "gboolean") + (parameters + '("const-char**" "pos") + ) +) + +(define-function scan_word + (c-name "pango_scan_word") + (return-type "gboolean") + (parameters + '("const-char**" "pos") + '("GString*" "out") + ) +) + +(define-function scan_string + (c-name "pango_scan_string") + (return-type "gboolean") + (parameters + '("const-char**" "pos") + '("GString*" "out") + ) +) + +(define-function scan_int + (c-name "pango_scan_int") + (return-type "gboolean") + (parameters + '("const-char**" "pos") + '("int*" "out") + ) +) + +(define-function config_key_get + (c-name "pango_config_key_get") + (return-type "char*") + (parameters + '("const-char*" "key") + ) +) + +(define-function lookup_aliases + (c-name "pango_lookup_aliases") + (return-type "none") + (parameters + '("const-char*" "fontname") + '("char***" "families") + '("int*" "n_families") + ) +) + +(define-function parse_style + (c-name "pango_parse_style") + (return-type "gboolean") + (parameters + '("const-char*" "str") + '("PangoStyle*" "style") + '("gboolean" "warn") + ) +) + +(define-function parse_variant + (c-name "pango_parse_variant") + (return-type "gboolean") + (parameters + '("const-char*" "str") + '("PangoVariant*" "variant") + '("gboolean" "warn") + ) +) + +(define-function parse_weight + (c-name "pango_parse_weight") + (return-type "gboolean") + (parameters + '("const-char*" "str") + '("PangoWeight*" "weight") + '("gboolean" "warn") + ) +) + +(define-function parse_stretch + (c-name "pango_parse_stretch") + (return-type "gboolean") + (parameters + '("const-char*" "str") + '("PangoStretch*" "stretch") + '("gboolean" "warn") + ) +) + +(define-function get_sysconf_subdirectory + (c-name "pango_get_sysconf_subdirectory") + (return-type "const-char*") +) + +(define-function get_lib_subdirectory + (c-name "pango_get_lib_subdirectory") + (return-type "const-char*") +) + +(define-function log2vis_get_embedding_levels + (c-name "pango_log2vis_get_embedding_levels") + (return-type "guint8*") + (parameters + '("const-gchar*" "text") + '("int" "length") + '("PangoDirection*" "pbase_dir") + ) +) + +(define-method get_sample_string + (of-object "PangoLanguage") + (c-name "pango_language_get_sample_string") + (return-type "const-char*") +) + +(define-function is_zero_width + (c-name "pango_is_zero_width") + (return-type "gboolean") + (parameters + '("gunichar" "ch") + ) +) +) ;; USE_PANGO_UTILS + + + diff --git a/pango.override b/pango.override index f56c6fcb..e6c70357 100644 --- a/pango.override +++ b/pango.override @@ -522,29 +522,22 @@ modulename pango %% import gobject.GObject as PyGObject_Type %% -ignore-glob *_get_type +ignore-glob + *_get_type + *_ref + *_unref + *_free %% ignore pango_color_copy - pango_color_free pango_attribute_copy pango_attribute_destroy pango_attribute_equal - pango_attr_list_ref - pango_attr_list_unref - pango_coverage_ref - pango_coverage_unref pango_font_description_equal - pango_font_description_free - pango_font_descriptions_free pango_font_map_free_families - pango_font_metrics_ref - pango_font_metrics_unref pango_font_get_coverage pango_font_find_shaper - pango_glyph_string_free pango_layout_get_log_attrs - pango_tab_array_free %% ignore pango_context_new @@ -552,6 +545,7 @@ ignore pango_glyph_string_index_to_x pango_glyph_string_x_to_index pango_break + pango_default_break pango_shape %% override pango_attr_language_new kwargs |