From fe104493227b1ccbc02c836fb2c50d01acc8c0b3 Mon Sep 17 00:00:00 2001 From: Naofumi Yasufuku Date: Fri, 6 Jun 2003 00:30:13 +0000 Subject: Allow language parameter to be omitted to get the metrics for the entire 2003-04-12 Naofumi Yasufuku * pango.defs (pango_context_get_metrics): Allow language parameter to be omitted to get the metrics for the entire font. (pango_itemize): Allow cached_iter parameter to be omitted. (pango_font_description_better_match): Allow old_match parameter to be omitted to determine if new_match is a match at all. (pango_font_get_metrics): Allow language parameter to be omitted to get the metrics for the entire font. (pango_layout_set_font_description): Allow 'None' desc parameter to unset the current font description. (pango_layout_set_tabs): Allow 'None' tabs parameter to reinstate the default tabs. (pango_language_matches): Changed to function. Allow 'None' language parameter which matches nothing but '*'. Fixes #109848 --- pango.defs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'pango.defs') diff --git a/pango.defs b/pango.defs index 5ec45f52..66d0106a 100644 --- a/pango.defs +++ b/pango.defs @@ -412,7 +412,7 @@ (caller-owns-return #t) (parameters '("const-PangoFontDescription*" "desc") - '("PangoLanguage*" "language") + '("PangoLanguage*" "language" (null-ok) (default "NULL")) ) ) @@ -470,7 +470,7 @@ '("int" "start_index") '("int" "length") '("PangoAttrList*" "attrs") - '("PangoAttrIterator*" "cached_iter") + '("PangoAttrIterator*" "cached_iter" (null-ok) (default "NULL")) ) ) @@ -735,7 +735,7 @@ (c-name "pango_font_description_better_match") (return-type "gboolean") (parameters - '("const-PangoFontDescription*" "old_match") + '("const-PangoFontDescription*" "old_match" (null-ok) (default "NULL")) '("const-PangoFontDescription*" "new_match") ) ) @@ -881,7 +881,7 @@ (c-name "pango_font_get_metrics") (return-type "PangoFontMetrics*") (parameters - '("PangoLanguage*" "language") + '("PangoLanguage*" "language" (null-ok) (default "NULL")) ) ) @@ -1157,7 +1157,7 @@ (c-name "pango_layout_set_font_description") (return-type "none") (parameters - '("const-PangoFontDescription*" "desc") + '("const-PangoFontDescription*" "desc" (null-ok)) ) ) @@ -1256,7 +1256,7 @@ (c-name "pango_layout_set_tabs") (return-type "none") (parameters - '("PangoTabArray*" "tabs") + '("PangoTabArray*" "tabs" (null-ok)) ) ) @@ -1704,11 +1704,11 @@ ) ) -(define-method matches - (of-object "PangoLanguage") +(define-function pango_language_matches (c-name "pango_language_matches") (return-type "gboolean") (parameters + '("PangoLanguage*" "language" (null-ok)) '("const-char*" "range_list") ) ) -- cgit v1.2.1