[vala/staging] pango: Update to 1.44+
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] pango: Update to 1.44+
- Date: Thu, 21 Nov 2019 16:22:14 +0000 (UTC)
commit 5ea1510d9acd9f2474eafab24cf7281814392264
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Nov 21 16:19:47 2019 +0100
pango: Update to 1.44+
vapi/metadata/Pango-1.0-custom.vala | 26 +++---
vapi/metadata/Pango-1.0.metadata | 12 ++-
vapi/pango.vapi | 163 ++++++++++++++++++++++++++++--------
3 files changed, 149 insertions(+), 52 deletions(-)
---
diff --git a/vapi/metadata/Pango-1.0-custom.vala b/vapi/metadata/Pango-1.0-custom.vala
index e246a4bcd..2da616e77 100644
--- a/vapi/metadata/Pango-1.0-custom.vala
+++ b/vapi/metadata/Pango-1.0-custom.vala
@@ -23,6 +23,13 @@ namespace Pango {
public AttrFontDesc (Pango.FontDescription desc);
}
+ [CCode (cheader_filename = "pango/pango.h")]
+ [Compact]
+ public class AttrFontFeatures {
+ [CCode (has_construct_function = false, type = "PangoAttribute*")]
+ public AttrFontFeatures (string features);
+ }
+
[CCode (cheader_filename = "pango/pango.h", free_function = "pango_attr_iterator_destroy")]
[Compact]
public class AttrIterator {
@@ -41,6 +48,7 @@ namespace Pango {
[CCode (has_construct_function = false, type = "PangoAttribute*")]
public AttrShape (Pango.Rectangle ink_rect, Pango.Rectangle logical_rect);
[CCode (has_construct_function = false, simple_generics = true, type = "PangoAttribute*")]
+ [Version (since = "1.8")]
public AttrShape.with_data (Pango.Rectangle ink_rect, Pango.Rectangle logical_rect, owned T
data, Pango.AttrDataCopyFunc<T> copy_func);
}
@@ -49,6 +57,9 @@ namespace Pango {
public class AttrSize {
[CCode (has_construct_function = false, type = "PangoAttribute*")]
public AttrSize (int size);
+ [CCode (cname = "pango_attr_size_new_absolute", has_construct_function = false, type =
"PangoAttribute*")]
+ [Version (since = "1.8")]
+ public AttrSize.with_absolute (int size);
}
[CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy")]
@@ -56,19 +67,8 @@ namespace Pango {
public class Attribute {
}
- [CCode (cheader_filename = "pango/pango.h", ref_function = "pango_coverage_ref", unref_function =
"pango_coverage_unref")]
- [Compact]
- public class Coverage {
- [CCode (has_construct_function = false)]
- public Coverage ();
- public static Pango.Coverage from_bytes (uint8[] bytes);
- }
-
- [CCode (cheader_filename = "pango/pango.h")]
- [Compact]
- public class ScriptIter {
- [CCode (has_construct_function = false)]
- public ScriptIter (string text, int length);
+ [CCode (cheader_filename = "pango/pango.h", type_id = "pango_coverage_get_type ()", ref_function =
"pango_coverage_ref", unref_function = "pango_coverage_unref")]
+ public class Coverage : GLib.Object {
}
[CCode (cheader_filename = "pango/pango.h", has_target = false)]
diff --git a/vapi/metadata/Pango-1.0.metadata b/vapi/metadata/Pango-1.0.metadata
index 5873e8ced..a90585561 100644
--- a/vapi/metadata/Pango-1.0.metadata
+++ b/vapi/metadata/Pango-1.0.metadata
@@ -4,6 +4,7 @@ Attr*.attr skip
AttrColor struct=false base_type="Pango.Attribute"
AttrFloat struct=false base_type="Pango.Attribute"
AttrFontDesc struct=false base_type="Pango.Attribute"
+AttrFontFeatures struct=false base_type="Pango.Attribute"
AttrInt struct=false base_type="Pango.Attribute"
// AttrIterator struct=false base_type="Pango.Attribute"
AttrLanguage struct=false base_type="Pango.Attribute"
@@ -40,7 +41,6 @@ Coverage
Font
.find_shaper skip=false
.get_coverage skip=false
-attr_*_new skip=false
// Nullability of return values
AttrIterator
@@ -51,7 +51,6 @@ Font
.get_font_map nullable
Layout
.get_font_description nullable
-config_key_get* nullable
// Variadic
TabArray
@@ -74,3 +73,12 @@ GlyphItemIter struct
Matrix struct
*.ref unowned
+
+Attribute
+ .destroy destroys_instance
+AttrIterator
+ .destroy destroys_instance
+Coverage
+ .unref destroys_instance=false
+Item
+ .free destroys_instance
diff --git a/vapi/pango.vapi b/vapi/pango.vapi
index a0c6e1fed..6238121bd 100644
--- a/vapi/pango.vapi
+++ b/vapi/pango.vapi
@@ -42,16 +42,27 @@ namespace Pango {
public weak Pango.FontDescription desc;
[CCode (has_construct_function = false, type = "PangoAttribute*")]
public AttrFontDesc (Pango.FontDescription desc);
+ public static Pango.Attribute @new (Pango.FontDescription desc);
+ }
+ [CCode (cheader_filename = "pango/pango.h", has_type_id = false)]
+ [Compact]
+ [Version (since = "1.38")]
+ public class AttrFontFeatures : Pango.Attribute {
+ public weak string features;
+ [CCode (has_construct_function = false, type = "PangoAttribute*")]
+ public AttrFontFeatures (string features);
+ public static Pango.Attribute @new (string features);
}
[CCode (cheader_filename = "pango/pango.h", has_type_id = false)]
[Compact]
public class AttrInt : Pango.Attribute {
public int value;
}
- [CCode (cheader_filename = "pango/pango.h", free_function = "pango_attr_iterator_destroy",
has_type_id = false)]
+ [CCode (cheader_filename = "pango/pango.h", free_function = "pango_attr_iterator_destroy", type_id =
"pango_attr_iterator_get_type ()")]
[Compact]
public class AttrIterator {
public Pango.AttrIterator copy ();
+ [DestroysInstance]
public void destroy ();
public unowned Pango.Attribute? @get (Pango.AttrType type);
[Version (since = "1.2")]
@@ -66,6 +77,7 @@ namespace Pango {
public weak Pango.Language value;
[CCode (has_construct_function = false, type = "PangoAttribute*")]
public AttrLanguage (Pango.Language language);
+ public static Pango.Attribute @new (Pango.Language language);
}
[CCode (cheader_filename = "pango/pango.h", ref_function = "pango_attr_list_ref", type_id =
"pango_attr_list_get_type ()", unref_function = "pango_attr_list_unref")]
[Compact]
@@ -76,6 +88,8 @@ namespace Pango {
public Pango.AttrList? copy ();
[Version (since = "1.2")]
public Pango.AttrList? filter (Pango.AttrFilterFunc func);
+ [Version (since = "1.44")]
+ public GLib.SList<Pango.Attribute> get_attributes ();
public Pango.AttrIterator get_iterator ();
public void insert (owned Pango.Attribute attr);
public void insert_before (owned Pango.Attribute attr);
@@ -83,6 +97,8 @@ namespace Pango {
public unowned Pango.AttrList @ref ();
public void splice (Pango.AttrList other, int pos, int len);
public void unref ();
+ [Version (since = "1.44")]
+ public void update (int pos, int remove, int add);
}
[CCode (cheader_filename = "pango/pango.h", has_type_id = false)]
[Compact]
@@ -94,7 +110,11 @@ namespace Pango {
public Pango.Rectangle logical_rect;
[CCode (has_construct_function = false, type = "PangoAttribute*")]
public AttrShape (Pango.Rectangle ink_rect, Pango.Rectangle logical_rect);
+ public static Pango.Attribute @new (Pango.Rectangle ink_rect, Pango.Rectangle logical_rect);
+ [Version (since = "1.8")]
+ public static Pango.Attribute new_with_data (Pango.Rectangle ink_rect, Pango.Rectangle
logical_rect, void* data, [CCode (destroy_notify_pos = 4.1)] owned Pango.AttrDataCopyFunc? copy_func);
[CCode (has_construct_function = false, simple_generics = true, type = "PangoAttribute*")]
+ [Version (since = "1.8")]
public AttrShape.with_data (Pango.Rectangle ink_rect, Pango.Rectangle logical_rect, owned T
data, Pango.AttrDataCopyFunc<T> copy_func);
}
[CCode (cheader_filename = "pango/pango.h", has_type_id = false)]
@@ -104,19 +124,26 @@ namespace Pango {
public int size;
[CCode (has_construct_function = false, type = "PangoAttribute*")]
public AttrSize (int size);
+ public static Pango.Attribute @new (int size);
+ [Version (since = "1.8")]
+ public static Pango.Attribute new_absolute (int size);
+ [CCode (cname = "pango_attr_size_new_absolute", has_construct_function = false, type =
"PangoAttribute*")]
+ [Version (since = "1.8")]
+ public AttrSize.with_absolute (int size);
}
[CCode (cheader_filename = "pango/pango.h", has_type_id = false)]
[Compact]
public class AttrString : Pango.Attribute {
public weak string value;
}
- [CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy", has_type_id =
false)]
+ [CCode (cheader_filename = "pango/pango.h", free_function = "pango_attribute_destroy", type_id =
"pango_attribute_get_type ()")]
[Compact]
public class Attribute {
public uint end_index;
public weak Pango.AttrClass klass;
public uint start_index;
public Pango.Attribute copy ();
+ [DestroysInstance]
public void destroy ();
public bool equal (Pango.Attribute attr2);
[Version (since = "1.20")]
@@ -142,6 +169,8 @@ namespace Pango {
[Version (since = "1.6")]
public unowned Pango.Matrix? get_matrix ();
public Pango.FontMetrics get_metrics (Pango.FontDescription? desc, Pango.Language? language);
+ [Version (since = "1.44")]
+ public bool get_round_glyph_positions ();
[Version (since = "1.32.4")]
public uint get_serial ();
public void list_families ([CCode (array_length_cname = "n_families", array_length_pos =
1.1)] out (unowned Pango.FontFamily)[] families);
@@ -157,17 +186,22 @@ namespace Pango {
public void set_language (Pango.Language language);
[Version (since = "1.6")]
public void set_matrix (Pango.Matrix? matrix);
+ [Version (since = "1.44")]
+ public void set_round_glyph_positions (bool round_positions);
}
- [CCode (cheader_filename = "pango/pango.h", has_type_id = false, ref_function = "pango_coverage_ref",
unref_function = "pango_coverage_unref")]
- [Compact]
- public class Coverage {
+ [CCode (cheader_filename = "pango/pango.h", ref_function = "pango_coverage_ref", type_id =
"pango_coverage_get_type ()", unref_function = "pango_coverage_unref")]
+ public class Coverage : GLib.Object {
[CCode (has_construct_function = false)]
public Coverage ();
public Pango.Coverage copy ();
- public static Pango.Coverage from_bytes (uint8[] bytes);
+ [Version (deprecated = true, deprecated_since = "1.44")]
+ public static Pango.Coverage? from_bytes ([CCode (array_length_cname = "n_bytes",
array_length_pos = 1.1)] uint8[] bytes);
public Pango.CoverageLevel @get (int index_);
+ [Version (deprecated = true, deprecated_since = "1.44")]
public void max (Pango.Coverage other);
+ public unowned Pango.Coverage @ref ();
public void @set (int index_, Pango.CoverageLevel level);
+ [Version (deprecated = true, deprecated_since = "1.44")]
public void to_bytes ([CCode (array_length_cname = "n_bytes", array_length_pos = 1.1)] out
uint8[] bytes);
public void unref ();
}
@@ -205,12 +239,17 @@ namespace Pango {
[Version (since = "1.14")]
public Pango.FontDescription describe_with_absolute_size ();
public static void descriptions_free ([CCode (array_length_cname = "n_descs",
array_length_pos = 1.1)] owned Pango.FontDescription[]? descs);
- public virtual unowned Pango.EngineShape find_shaper (Pango.Language language, uint32 ch);
+ [Version (deprecated = true)]
+ public unowned Pango.EngineShape find_shaper (Pango.Language language, uint32 ch);
public virtual Pango.Coverage get_coverage (Pango.Language language);
+ [Version (since = "1.46")]
+ public unowned Pango.FontFace get_face ();
[Version (since = "1.10")]
public virtual unowned Pango.FontMap? get_font_map ();
public virtual void get_glyph_extents (Pango.Glyph glyph, out Pango.Rectangle ink_rect, out
Pango.Rectangle logical_rect);
public virtual Pango.FontMetrics get_metrics (Pango.Language? language);
+ [Version (since = "1.44")]
+ public bool has_char (unichar wc);
}
[CCode (cheader_filename = "pango/pango.h", copy_function = "g_boxed_copy", free_function =
"g_boxed_free", type_id = "pango_font_description_get_type ()")]
[Compact]
@@ -250,9 +289,9 @@ namespace Pango {
public void set_style (Pango.Style style);
public void set_variant (Pango.Variant variant);
[Version (since = "1.42")]
- public void set_variations (string settings);
+ public void set_variations (string variations);
[Version (since = "1.42")]
- public void set_variations_static (string settings);
+ public void set_variations_static (string variations);
public void set_weight (Pango.Weight weight);
public string to_filename ();
public string to_string ();
@@ -264,6 +303,8 @@ namespace Pango {
protected FontFace ();
public virtual Pango.FontDescription describe ();
public virtual unowned string get_face_name ();
+ [Version (since = "1.46")]
+ public virtual unowned Pango.FontFamily get_family ();
[Version (since = "1.18")]
public virtual bool is_synthesized ();
[Version (since = "1.4")]
@@ -273,6 +314,8 @@ namespace Pango {
public abstract class FontFamily : GLib.Object {
[CCode (has_construct_function = false)]
protected FontFamily ();
+ [Version (since = "1.46")]
+ public virtual unowned Pango.FontFace get_face (string name);
public virtual unowned string get_name ();
[Version (since = "1.4")]
public virtual bool is_monospace ();
@@ -288,10 +331,10 @@ namespace Pango {
public virtual void changed ();
[Version (since = "1.22")]
public Pango.Context create_context ();
+ [Version (since = "1.46")]
+ public virtual unowned Pango.FontFamily get_family (string name);
[Version (since = "1.32.4")]
public virtual uint get_serial ();
- [Version (deprecated = true, deprecated_since = "1.38", since = "1.4")]
- public unowned string get_shape_engine_type ();
public virtual void list_families ([CCode (array_length_cname = "n_families",
array_length_pos = 1.1)] out (unowned Pango.FontFamily)[] families);
public virtual Pango.Font? load_font (Pango.Context context, Pango.FontDescription desc);
public virtual Pango.Fontset? load_fontset (Pango.Context context, Pango.FontDescription
desc, Pango.Language language);
@@ -299,12 +342,12 @@ namespace Pango {
[CCode (cheader_filename = "pango/pango.h", ref_function = "pango_font_metrics_ref", type_id =
"pango_font_metrics_get_type ()", unref_function = "pango_font_metrics_unref")]
[Compact]
public class FontMetrics {
- [CCode (has_construct_function = false)]
- public FontMetrics ();
public int get_approximate_char_width ();
public int get_approximate_digit_width ();
public int get_ascent ();
public int get_descent ();
+ [Version (since = "1.44")]
+ public int get_height ();
[Version (since = "1.6")]
public int get_strikethrough_position ();
[Version (since = "1.6")]
@@ -382,7 +425,10 @@ namespace Pango {
public int offset;
[CCode (has_construct_function = false)]
public Item ();
+ [Version (since = "1.44")]
+ public void apply_attrs (Pango.AttrIterator iter);
public Pango.Item? copy ();
+ [DestroysInstance]
public void free ();
public Pango.Item split (int split_index, int split_offset);
}
@@ -417,6 +463,8 @@ namespace Pango {
public int get_character_count ();
public unowned Pango.Context get_context ();
public void get_cursor_pos (int index_, out Pango.Rectangle strong_pos, out Pango.Rectangle
weak_pos);
+ [Version (since = "1.46")]
+ public Pango.Direction get_direction (int index);
[Version (since = "1.6")]
public Pango.EllipsizeMode get_ellipsize ();
public void get_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
@@ -431,6 +479,8 @@ namespace Pango {
public int get_line_count ();
[Version (since = "1.16")]
public unowned Pango.LayoutLine? get_line_readonly (int line);
+ [Version (since = "1.44")]
+ public float get_line_spacing ();
public unowned GLib.SList<Pango.LayoutLine> get_lines ();
[Version (since = "1.16")]
public unowned GLib.SList<Pango.LayoutLine> get_lines_readonly ();
@@ -469,6 +519,8 @@ namespace Pango {
public void set_height (int height);
public void set_indent (int indent);
public void set_justify (bool justify);
+ [Version (since = "1.44")]
+ public void set_line_spacing (float factor);
public void set_markup (string markup, int length);
public void set_markup_with_accel (string markup, int length, unichar accel_marker, out
unichar accel_char);
public void set_single_paragraph_mode (bool setting);
@@ -517,6 +569,8 @@ namespace Pango {
public weak GLib.SList<Pango.LayoutRun> runs;
public int start_index;
public void get_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
+ [Version (since = "1.44")]
+ public void get_height (out int height);
public void get_pixel_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle
logical_rect);
public void get_x_ranges (int start_index, int end_index, [CCode (array_length_cname =
"n_ranges", array_length_pos = 3.1)] out int[] ranges);
public void index_to_x (int index_, bool trailing, out int x_pos);
@@ -576,10 +630,11 @@ namespace Pango {
public void set_color (Pango.RenderPart part, Pango.Color? color);
public void set_matrix (Pango.Matrix? matrix);
}
- [CCode (cheader_filename = "pango/pango.h", has_type_id = false)]
+ [CCode (cheader_filename = "pango/pango.h", copy_function = "g_boxed_copy", free_function =
"g_boxed_free", type_id = "pango_script_iter_get_type ()")]
[Compact]
public class ScriptIter {
[CCode (has_construct_function = false)]
+ [Version (since = "1.4")]
public ScriptIter (string text, int length);
[Version (since = "1.4")]
public void free ();
@@ -616,11 +671,6 @@ namespace Pango {
public weak Pango.Language language;
public weak GLib.SList<void*> extra_attrs;
}
- [CCode (cheader_filename = "pango/pango.h", has_type_id = false)]
- [Version (since = "1.38")]
- public struct AttrFontFeatures {
- public weak string features;
- }
[CCode (cheader_filename = "pango/pango.h", copy_function = "g_boxed_copy", free_function =
"g_boxed_free", type_id = "pango_color_get_type ()")]
public struct Color {
public uint16 red;
@@ -773,7 +823,12 @@ namespace Pango {
GRAVITY_HINT,
FONT_FEATURES,
FOREGROUND_ALPHA,
- BACKGROUND_ALPHA;
+ BACKGROUND_ALPHA,
+ ALLOW_BREAKS,
+ SHOW,
+ INSERT_HYPHENS,
+ OVERLINE,
+ OVERLINE_COLOR;
[Version (since = "1.22")]
public unowned string? get_name ();
public static Pango.AttrType register (string name);
@@ -859,13 +914,20 @@ namespace Pango {
STRONG,
LINE
}
+ [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_OVERLINE_", type_id =
"pango_overline_get_type ()")]
+ [Version (since = "1.46")]
+ public enum Overline {
+ NONE,
+ SINGLE
+ }
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_RENDER_PART_", type_id =
"pango_render_part_get_type ()")]
[Version (since = "1.8")]
public enum RenderPart {
FOREGROUND,
BACKGROUND,
UNDERLINE,
- STRIKETHROUGH
+ STRIKETHROUGH,
+ OVERLINE
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_SCRIPT_", type_id =
"pango_script_get_type ()")]
public enum Script {
@@ -992,6 +1054,20 @@ namespace Pango {
[Version (since = "1.4")]
public Pango.Language? get_sample_language ();
}
+ [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_SHAPE_", type_id =
"pango_shape_flags_get_type ()")]
+ [Flags]
+ public enum ShapeFlags {
+ NONE,
+ ROUND_POSITIONS
+ }
+ [CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_SHOW_", type_id =
"pango_show_flags_get_type ()")]
+ [Flags]
+ public enum ShowFlags {
+ NONE,
+ SPACES,
+ LINE_BREAKS,
+ IGNORABLES
+ }
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_STRETCH_", type_id =
"pango_stretch_get_type ()")]
public enum Stretch {
ULTRA_CONDENSED,
@@ -1020,7 +1096,10 @@ namespace Pango {
SINGLE,
DOUBLE,
LOW,
- ERROR
+ ERROR,
+ SINGLE_LINE,
+ DOUBLE_LINE,
+ ERROR_LINE
}
[CCode (cheader_filename = "pango/pango.h", cprefix = "PANGO_VARIANT_", type_id =
"pango_variant_get_type ()")]
public enum Variant {
@@ -1061,6 +1140,9 @@ namespace Pango {
[CCode (cheader_filename = "pango/pango.h", cname = "PANGO_ANALYSIS_FLAG_IS_ELLIPSIS")]
[Version (since = "1.36.7")]
public const int ANALYSIS_FLAG_IS_ELLIPSIS;
+ [CCode (cheader_filename = "pango/pango.h", cname = "PANGO_ANALYSIS_FLAG_NEED_HYPHEN")]
+ [Version (since = "1.44")]
+ public const int ANALYSIS_FLAG_NEED_HYPHEN;
[CCode (cheader_filename = "pango/pango.h", cname = "PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING")]
[Version (since = "1.24")]
public const int ATTR_INDEX_FROM_TEXT_BEGINNING;
@@ -1098,6 +1180,9 @@ namespace Pango {
[CCode (cheader_filename = "pango/pango.h")]
public const string VERSION_STRING;
[CCode (cheader_filename = "pango/pango.h")]
+ [Version (since = "1.44")]
+ public static Pango.Attribute attr_allow_breaks_new (bool allow_breaks);
+ [CCode (cheader_filename = "pango/pango.h")]
[Version (since = "1.38")]
public static Pango.Attribute attr_background_alpha_new (uint16 alpha);
[CCode (cheader_filename = "pango/pango.h")]
@@ -1119,13 +1204,25 @@ namespace Pango {
[Version (since = "1.16")]
public static Pango.Attribute attr_gravity_new (Pango.Gravity gravity);
[CCode (cheader_filename = "pango/pango.h")]
+ [Version (since = "1.44")]
+ public static Pango.Attribute attr_insert_hyphens_new (bool insert_hyphens);
+ [CCode (cheader_filename = "pango/pango.h")]
[Version (since = "1.6")]
public static Pango.Attribute attr_letter_spacing_new (int letter_spacing);
[CCode (cheader_filename = "pango/pango.h")]
+ [Version (since = "1.45")]
+ public static Pango.Attribute attr_overline_color_new (uint16 red, uint16 green, uint16 blue);
+ [CCode (cheader_filename = "pango/pango.h")]
+ [Version (since = "1.45")]
+ public static Pango.Attribute attr_overline_new (Pango.Overline overline);
+ [CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_rise_new (int rise);
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_scale_new (double scale_factor);
[CCode (cheader_filename = "pango/pango.h")]
+ [Version (since = "1.44")]
+ public static Pango.Attribute attr_show_new (Pango.ShowFlags flags);
+ [CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_stretch_new (Pango.Stretch stretch);
[CCode (cheader_filename = "pango/pango.h")]
[Version (since = "1.8")]
@@ -1144,14 +1241,9 @@ namespace Pango {
[CCode (cheader_filename = "pango/pango.h")]
public static Pango.Attribute attr_weight_new (Pango.Weight weight);
[CCode (cheader_filename = "pango/pango.h")]
+ [Version (deprecated = true, deprecated_since = "1.44")]
public static void @break (string text, int length, Pango.Analysis analysis, [CCode
(array_length_cname = "attrs_len", array_length_pos = 4.1)] Pango.LogAttr[] attrs);
[CCode (cheader_filename = "pango/pango.h")]
- [Version (deprecated = true, deprecated_since = "1.38")]
- public static string? config_key_get (string key);
- [CCode (cheader_filename = "pango/pango.h")]
- [Version (deprecated = true, deprecated_since = "1.38")]
- public static string? config_key_get_system (string key);
- [CCode (cheader_filename = "pango/pango.h")]
public static void default_break (string text, int length, Pango.Analysis? analysis, Pango.LogAttr
attrs, int attrs_len);
[CCode (cheader_filename = "pango/pango.h")]
[Version (since = "1.16")]
@@ -1162,16 +1254,10 @@ namespace Pango {
[CCode (cheader_filename = "pango/pango.h")]
public static void find_paragraph_boundary (string text, int length, out int
paragraph_delimiter_index, out int next_paragraph_start);
[CCode (cheader_filename = "pango/pango.h")]
- [Version (deprecated = true, deprecated_since = "1.38")]
- public static unowned string get_lib_subdirectory ();
- [CCode (cheader_filename = "pango/pango.h")]
public static void get_log_attrs (string text, int length, int level, Pango.Language language, [CCode
(array_length_cname = "attrs_len", array_length_pos = 5.1)] Pango.LogAttr[] log_attrs);
[CCode (cheader_filename = "pango/pango.h")]
public static bool get_mirror_char (unichar ch, unichar mirrored_ch);
[CCode (cheader_filename = "pango/pango.h")]
- [Version (deprecated = true, deprecated_since = "1.38")]
- public static unowned string get_sysconf_subdirectory ();
- [CCode (cheader_filename = "pango/pango.h")]
[Version (since = "1.10")]
public static bool is_zero_width (unichar ch);
[CCode (cheader_filename = "pango/pango.h")]
@@ -1183,9 +1269,6 @@ namespace Pango {
[Version (since = "1.4")]
public static uint8 log2vis_get_embedding_levels (string text, int length, Pango.Direction pbase_dir);
[CCode (cheader_filename = "pango/pango.h")]
- [Version (deprecated = true, deprecated_since = "1.32")]
- public static void lookup_aliases (string fontname, [CCode (array_length_cname = "n_families",
array_length_pos = 2.1)] out string[] families);
- [CCode (cheader_filename = "pango/pango.h")]
[Version (since = "1.31.0")]
public static bool markup_parser_finish (GLib.MarkupParseContext context, out Pango.AttrList
attr_list, out string text, out unichar accel_char) throws GLib.Error;
[CCode (cheader_filename = "pango/pango.h")]
@@ -1227,12 +1310,18 @@ namespace Pango {
[Version (since = "1.32")]
public static void shape_full (string item_text, int item_length, string? paragraph_text, int
paragraph_length, Pango.Analysis analysis, Pango.GlyphString glyphs);
[CCode (cheader_filename = "pango/pango.h")]
+ [Version (since = "1.44")]
+ public static void shape_with_flags (string item_text, int item_length, string? paragraph_text, int
paragraph_length, Pango.Analysis analysis, Pango.GlyphString glyphs, Pango.ShapeFlags flags);
+ [CCode (cheader_filename = "pango/pango.h")]
[Version (deprecated = true, deprecated_since = "1.38")]
public static bool skip_space (ref string pos);
[CCode (array_length = false, array_null_terminated = true, cheader_filename = "pango/pango.h")]
[Version (deprecated = true, deprecated_since = "1.38")]
public static string[] split_file_list (string str);
[CCode (cheader_filename = "pango/pango.h")]
+ [Version (since = "1.44")]
+ public static void tailor_break (string text, int length, Pango.Analysis analysis, int offset, [CCode
(array_length_cname = "log_attrs_len", array_length_pos = 5.1)] Pango.LogAttr[] log_attrs);
+ [CCode (cheader_filename = "pango/pango.h")]
[Version (deprecated = true, deprecated_since = "1.38")]
public static string trim_string (string str);
[CCode (cheader_filename = "pango/pango.h")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]