diff --git a/Gir.toml b/Gir.toml index 714f5d8..1eb9f99 100644 --- a/Gir.toml +++ b/Gir.toml @@ -13,7 +13,6 @@ generate = [ "Pango.AttrType", "Pango.BidiType", "Pango.Color", - "Pango.Coverage", "Pango.CoverageLevel", "Pango.Direction", "Pango.EllipsizeMode", @@ -106,6 +105,14 @@ status = "generate" name = "language" const = true +[[object]] +name = "Pango.Coverage" +status = "generate" + [[object.function]] + name = "new" + [object.function.return] + nullable = false + [[object]] name = "Pango.FontDescription" status = "generate" diff --git a/gir b/gir index f00d658..9f70278 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit f00d658188d192f5cc4e72408c86e15d30ea6f9a +Subproject commit 9f7027849138bd327ec77470967dc906c3fab051 diff --git a/src/auto/alias.rs b/src/auto/alias.rs index 9ca6093..309fba2 100644 --- a/src/auto/alias.rs +++ b/src/auto/alias.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT #[allow(unused_imports)] diff --git a/src/auto/attr_list.rs b/src/auto/attr_list.rs index 2ddc019..0538c7e 100644 --- a/src/auto/attr_list.rs +++ b/src/auto/attr_list.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use ffi; @@ -45,3 +45,9 @@ impl AttrList { } } } + +impl Default for AttrList { + fn default() -> Self { + Self::new() + } +} diff --git a/src/auto/attribute.rs b/src/auto/attribute.rs index 64cc7be..3ff488e 100644 --- a/src/auto/attribute.rs +++ b/src/auto/attribute.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use AttrClass; diff --git a/src/auto/color.rs b/src/auto/color.rs index ecb0297..9247033 100644 --- a/src/auto/color.rs +++ b/src/auto/color.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use ffi; diff --git a/src/auto/context.rs b/src/auto/context.rs index 1306c45..26ba92c 100644 --- a/src/auto/context.rs +++ b/src/auto/context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use Direction; @@ -36,6 +36,12 @@ impl Context { } } +impl Default for Context { + fn default() -> Self { + Self::new() + } +} + pub trait ContextExt { #[cfg(feature = "v1_32_4")] fn changed(&self); diff --git a/src/auto/coverage.rs b/src/auto/coverage.rs index e767875..23e0a17 100644 --- a/src/auto/coverage.rs +++ b/src/auto/coverage.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use CoverageLevel; @@ -58,9 +58,15 @@ impl Coverage { } } - pub fn new() -> Option { + pub fn new() -> Coverage { unsafe { from_glib_none(ffi::pango_coverage_new()) } } } + +impl Default for Coverage { + fn default() -> Self { + Self::new() + } +} diff --git a/src/auto/engine_shape.rs b/src/auto/engine_shape.rs index 7e027e1..defa48a 100644 --- a/src/auto/engine_shape.rs +++ b/src/auto/engine_shape.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use ffi; diff --git a/src/auto/enums.rs b/src/auto/enums.rs index b496c78..bcbfba4 100644 --- a/src/auto/enums.rs +++ b/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use ffi; diff --git a/src/auto/flags.rs b/src/auto/flags.rs index f814f5e..75c1461 100644 --- a/src/auto/flags.rs +++ b/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use ffi; diff --git a/src/auto/font.rs b/src/auto/font.rs index ecd305b..2b88afa 100644 --- a/src/auto/font.rs +++ b/src/auto/font.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use Coverage; diff --git a/src/auto/font_description.rs b/src/auto/font_description.rs index 3ce38b5..2ecd723 100644 --- a/src/auto/font_description.rs +++ b/src/auto/font_description.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use FontMask; @@ -187,6 +187,12 @@ impl FontDescription { } } +impl Default for FontDescription { + fn default() -> Self { + Self::new() + } +} + impl PartialEq for FontDescription { #[inline] fn eq(&self, other: &Self) -> bool { diff --git a/src/auto/font_face.rs b/src/auto/font_face.rs index c5a2fc7..7dbee8c 100644 --- a/src/auto/font_face.rs +++ b/src/auto/font_face.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use FontDescription; diff --git a/src/auto/font_family.rs b/src/auto/font_family.rs index b3b4a2f..92f53c1 100644 --- a/src/auto/font_family.rs +++ b/src/auto/font_family.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use FontFace; diff --git a/src/auto/font_map.rs b/src/auto/font_map.rs index 219766d..9bc3a02 100644 --- a/src/auto/font_map.rs +++ b/src/auto/font_map.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use Context; diff --git a/src/auto/font_metrics.rs b/src/auto/font_metrics.rs index 6af5d67..19d24d7 100644 --- a/src/auto/font_metrics.rs +++ b/src/auto/font_metrics.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use ffi; @@ -73,3 +73,9 @@ impl FontMetrics { } } } + +impl Default for FontMetrics { + fn default() -> Self { + Self::new() + } +} diff --git a/src/auto/fontset.rs b/src/auto/fontset.rs index 26844a3..ad6ec0d 100644 --- a/src/auto/fontset.rs +++ b/src/auto/fontset.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use Font; diff --git a/src/auto/functions.rs b/src/auto/functions.rs index 0b4ca23..8dcb03f 100644 --- a/src/auto/functions.rs +++ b/src/auto/functions.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use AttrList; diff --git a/src/auto/glyph_item.rs b/src/auto/glyph_item.rs index daa0300..28b02bb 100644 --- a/src/auto/glyph_item.rs +++ b/src/auto/glyph_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use AttrList; diff --git a/src/auto/glyph_item_iter.rs b/src/auto/glyph_item_iter.rs index d11cb04..45c1f40 100644 --- a/src/auto/glyph_item_iter.rs +++ b/src/auto/glyph_item_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use GlyphItem; diff --git a/src/auto/glyph_string.rs b/src/auto/glyph_string.rs index 9713fb4..5a85236 100644 --- a/src/auto/glyph_string.rs +++ b/src/auto/glyph_string.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use Font; @@ -69,3 +69,9 @@ impl GlyphString { // unsafe { TODO: call ffi::pango_glyph_string_x_to_index() } //} } + +impl Default for GlyphString { + fn default() -> Self { + Self::new() + } +} diff --git a/src/auto/layout.rs b/src/auto/layout.rs index fc426cc..2865f2d 100644 --- a/src/auto/layout.rs +++ b/src/auto/layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use Alignment; diff --git a/src/auto/layout_iter.rs b/src/auto/layout_iter.rs index ba2eddf..41c79ef 100644 --- a/src/auto/layout_iter.rs +++ b/src/auto/layout_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use Layout; diff --git a/src/auto/layout_line.rs b/src/auto/layout_line.rs index ee8ad6b..202bca4 100644 --- a/src/auto/layout_line.rs +++ b/src/auto/layout_line.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use Rectangle; diff --git a/src/auto/matrix.rs b/src/auto/matrix.rs index 07fbc5d..17a636e 100644 --- a/src/auto/matrix.rs +++ b/src/auto/matrix.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use ffi; diff --git a/src/auto/mod.rs b/src/auto/mod.rs index 2851a1b..b5d2626 100644 --- a/src/auto/mod.rs +++ b/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT mod context; diff --git a/src/auto/renderer.rs b/src/auto/renderer.rs index 1801f01..d6e97b1 100644 --- a/src/auto/renderer.rs +++ b/src/auto/renderer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use Color; diff --git a/src/auto/tab_array.rs b/src/auto/tab_array.rs index d3e8e37..bbf9556 100644 --- a/src/auto/tab_array.rs +++ b/src/auto/tab_array.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (f00d658) from gir-files (0bcaef9) +// This file was generated by gir (9f70278) from gir-files (0bcaef9) // DO NOT EDIT use TabAlign;