diff --git a/gdk4-macos/src/auto/versions.txt b/gdk4-macos/src/auto/versions.txt index 88cd8449e044..309a5cb46107 100644 --- a/gdk4-macos/src/auto/versions.txt +++ b/gdk4-macos/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66) -from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539) +Generated by gir (https://github.com/gtk-rs/gir @ 65b693752cd9) +from gir-files (https://github.com/gtk-rs/gir-files @ ef7c8d351e57) diff --git a/gdk4-macos/sys/versions.txt b/gdk4-macos/sys/versions.txt index 88cd8449e044..309a5cb46107 100644 --- a/gdk4-macos/sys/versions.txt +++ b/gdk4-macos/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66) -from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539) +Generated by gir (https://github.com/gtk-rs/gir @ 65b693752cd9) +from gir-files (https://github.com/gtk-rs/gir-files @ ef7c8d351e57) diff --git a/gdk4-wayland/src/auto/versions.txt b/gdk4-wayland/src/auto/versions.txt index 88cd8449e044..309a5cb46107 100644 --- a/gdk4-wayland/src/auto/versions.txt +++ b/gdk4-wayland/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66) -from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539) +Generated by gir (https://github.com/gtk-rs/gir @ 65b693752cd9) +from gir-files (https://github.com/gtk-rs/gir-files @ ef7c8d351e57) diff --git a/gdk4-wayland/sys/versions.txt b/gdk4-wayland/sys/versions.txt index 88cd8449e044..309a5cb46107 100644 --- a/gdk4-wayland/sys/versions.txt +++ b/gdk4-wayland/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66) -from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539) +Generated by gir (https://github.com/gtk-rs/gir @ 65b693752cd9) +from gir-files (https://github.com/gtk-rs/gir-files @ ef7c8d351e57) diff --git a/gdk4-win32/src/auto/versions.txt b/gdk4-win32/src/auto/versions.txt index 88cd8449e044..309a5cb46107 100644 --- a/gdk4-win32/src/auto/versions.txt +++ b/gdk4-win32/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66) -from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539) +Generated by gir (https://github.com/gtk-rs/gir @ 65b693752cd9) +from gir-files (https://github.com/gtk-rs/gir-files @ ef7c8d351e57) diff --git a/gdk4-win32/sys/versions.txt b/gdk4-win32/sys/versions.txt index 88cd8449e044..309a5cb46107 100644 --- a/gdk4-win32/sys/versions.txt +++ b/gdk4-win32/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66) -from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539) +Generated by gir (https://github.com/gtk-rs/gir @ 65b693752cd9) +from gir-files (https://github.com/gtk-rs/gir-files @ ef7c8d351e57) diff --git a/gdk4-x11/src/auto/versions.txt b/gdk4-x11/src/auto/versions.txt index 88cd8449e044..309a5cb46107 100644 --- a/gdk4-x11/src/auto/versions.txt +++ b/gdk4-x11/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66) -from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539) +Generated by gir (https://github.com/gtk-rs/gir @ 65b693752cd9) +from gir-files (https://github.com/gtk-rs/gir-files @ ef7c8d351e57) diff --git a/gdk4-x11/sys/versions.txt b/gdk4-x11/sys/versions.txt index 88cd8449e044..309a5cb46107 100644 --- a/gdk4-x11/sys/versions.txt +++ b/gdk4-x11/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66) -from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539) +Generated by gir (https://github.com/gtk-rs/gir @ 65b693752cd9) +from gir-files (https://github.com/gtk-rs/gir-files @ ef7c8d351e57) diff --git a/gdk4/src/auto/versions.txt b/gdk4/src/auto/versions.txt index 88cd8449e044..309a5cb46107 100644 --- a/gdk4/src/auto/versions.txt +++ b/gdk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66) -from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539) +Generated by gir (https://github.com/gtk-rs/gir @ 65b693752cd9) +from gir-files (https://github.com/gtk-rs/gir-files @ ef7c8d351e57) diff --git a/gdk4/sys/versions.txt b/gdk4/sys/versions.txt index 88cd8449e044..309a5cb46107 100644 --- a/gdk4/sys/versions.txt +++ b/gdk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66) -from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539) +Generated by gir (https://github.com/gtk-rs/gir @ 65b693752cd9) +from gir-files (https://github.com/gtk-rs/gir-files @ ef7c8d351e57) diff --git a/gir b/gir index 1d0088ebcb66..65b693752cd9 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit 1d0088ebcb66e5324fc5f8efa7ee993eff45faaa +Subproject commit 65b693752cd96d4d7d999583d1f2fb4af605c41f diff --git a/gir-files b/gir-files index 6715d605e539..ef7c8d351e57 160000 --- a/gir-files +++ b/gir-files @@ -1 +1 @@ -Subproject commit 6715d605e539493e8a7ac1189445dafc70284a40 +Subproject commit ef7c8d351e5796ae223496d46d05d0d94d49ae50 diff --git a/gsk4/src/auto/enums.rs b/gsk4/src/auto/enums.rs index 96496f1638b9..baf232c3986c 100644 --- a/gsk4/src/auto/enums.rs +++ b/gsk4/src/auto/enums.rs @@ -1480,6 +1480,10 @@ pub enum RenderNodeType { #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] #[doc(alias = "GSK_COMPOSITE_NODE")] CompositeNode, + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + #[doc(alias = "GSK_ISOLATION_NODE")] + IsolationNode, #[doc(hidden)] __Unknown(i32), } @@ -1534,6 +1538,8 @@ impl IntoGlib for RenderNodeType { Self::PasteNode => ffi::GSK_PASTE_NODE, #[cfg(feature = "v4_22")] Self::CompositeNode => ffi::GSK_COMPOSITE_NODE, + #[cfg(feature = "v4_22")] + Self::IsolationNode => ffi::GSK_ISOLATION_NODE, Self::__Unknown(value) => value, } } @@ -1589,6 +1595,8 @@ impl FromGlib for RenderNodeType { ffi::GSK_PASTE_NODE => Self::PasteNode, #[cfg(feature = "v4_22")] ffi::GSK_COMPOSITE_NODE => Self::CompositeNode, + #[cfg(feature = "v4_22")] + ffi::GSK_ISOLATION_NODE => Self::IsolationNode, value => Self::__Unknown(value), } } diff --git a/gsk4/src/auto/path.rs b/gsk4/src/auto/path.rs index eb355e2e0919..b8abdd54ecdb 100644 --- a/gsk4/src/auto/path.rs +++ b/gsk4/src/auto/path.rs @@ -88,6 +88,22 @@ impl Path { } } + //#[cfg(feature = "v4_22")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + //#[doc(alias = "gsk_path_get_next")] + //#[doc(alias = "get_next")] + //pub fn next(&self, point: /*Unimplemented*/PathPoint) -> bool { + // unsafe { TODO: call ffi:gsk_path_get_next() } + //} + + //#[cfg(feature = "v4_22")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + //#[doc(alias = "gsk_path_get_previous")] + //#[doc(alias = "get_previous")] + //pub fn previous(&self, point: /*Unimplemented*/PathPoint) -> bool { + // unsafe { TODO: call ffi:gsk_path_get_previous() } + //} + #[doc(alias = "gsk_path_get_start_point")] #[doc(alias = "get_start_point")] pub fn start_point(&self) -> Option { @@ -123,6 +139,25 @@ impl Path { } } + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + #[doc(alias = "gsk_path_get_tight_bounds")] + #[doc(alias = "get_tight_bounds")] + pub fn tight_bounds(&self) -> Option { + unsafe { + let mut bounds = graphene::Rect::uninitialized(); + let ret = from_glib(ffi::gsk_path_get_tight_bounds( + self.to_glib_none().0, + bounds.to_glib_none_mut().0, + )); + if ret { + Some(bounds) + } else { + None + } + } + } + #[doc(alias = "gsk_path_in_fill")] pub fn in_fill(&self, point: &graphene::Point, fill_rule: FillRule) -> bool { unsafe { diff --git a/gsk4/src/auto/versions.txt b/gsk4/src/auto/versions.txt index 88cd8449e044..309a5cb46107 100644 --- a/gsk4/src/auto/versions.txt +++ b/gsk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66) -from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539) +Generated by gir (https://github.com/gtk-rs/gir @ 65b693752cd9) +from gir-files (https://github.com/gtk-rs/gir-files @ ef7c8d351e57) diff --git a/gsk4/sys/src/lib.rs b/gsk4/sys/src/lib.rs index fbd211cfaa83..695769e6e176 100644 --- a/gsk4/sys/src/lib.rs +++ b/gsk4/sys/src/lib.rs @@ -174,6 +174,9 @@ pub const GSK_PASTE_NODE: GskRenderNodeType = 33; #[cfg(feature = "v4_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] pub const GSK_COMPOSITE_NODE: GskRenderNodeType = 34; +#[cfg(feature = "v4_22")] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] +pub const GSK_ISOLATION_NODE: GskRenderNodeType = 35; pub type GskScalingFilter = c_int; pub const GSK_SCALING_FILTER_LINEAR: GskScalingFilter = 0; @@ -195,6 +198,12 @@ pub const GSK_TRANSFORM_CATEGORY_2D_TRANSLATE: GskTransformCategory = 5; pub const GSK_TRANSFORM_CATEGORY_IDENTITY: GskTransformCategory = 6; // Flags +pub type GskIsolation = c_uint; +pub const GSK_ISOLATION_NONE: GskIsolation = 0; +pub const GSK_ISOLATION_BACKGROUND: GskIsolation = 1; +pub const GSK_ISOLATION_COPY_PASTE: GskIsolation = 2; +pub const GSK_ISOLATION_ALL: GskIsolation = 4294967295; + pub type GskPathForeachFlags = c_uint; pub const GSK_PATH_FOREACH_ALLOW_ONLY_LINES: GskPathForeachFlags = 0; pub const GSK_PATH_FOREACH_ALLOW_QUAD: GskPathForeachFlags = 1; @@ -836,6 +845,20 @@ impl ::std::fmt::Debug for GskInsetShadowNode { } } +#[repr(C)] +#[allow(dead_code)] +pub struct GskIsolationNode { + _data: [u8; 0], + _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, +} + +impl ::std::fmt::Debug for GskIsolationNode { + fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { + f.debug_struct(&format!("GskIsolationNode @ {self:p}")) + .finish() + } +} + #[repr(C)] #[allow(dead_code)] pub struct GskLinearGradientNode { @@ -1224,6 +1247,13 @@ extern "C" { //========================================================================= pub fn gsk_transform_category_get_type() -> GType; + //========================================================================= + // GskIsolation + //========================================================================= + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + pub fn gsk_isolation_get_type() -> GType; + //========================================================================= // GskPathForeachFlags //========================================================================= @@ -1320,6 +1350,12 @@ extern "C" { #[cfg(feature = "v4_14")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))] pub fn gsk_path_get_end_point(self_: *mut GskPath, result: *mut GskPathPoint) -> gboolean; + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + pub fn gsk_path_get_next(self_: *mut GskPath, point: *mut GskPathPoint) -> gboolean; + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + pub fn gsk_path_get_previous(self_: *mut GskPath, point: *mut GskPathPoint) -> gboolean; #[cfg(feature = "v4_14")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))] pub fn gsk_path_get_start_point(self_: *mut GskPath, result: *mut GskPathPoint) -> gboolean; @@ -1330,6 +1366,12 @@ extern "C" { stroke: *const GskStroke, bounds: *mut graphene::graphene_rect_t, ) -> gboolean; + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + pub fn gsk_path_get_tight_bounds( + self_: *mut GskPath, + bounds: *mut graphene::graphene_rect_t, + ) -> gboolean; #[cfg(feature = "v4_14")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))] pub fn gsk_path_in_fill( @@ -2136,6 +2178,8 @@ extern "C" { //========================================================================= // GskCompositeNode //========================================================================= + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] pub fn gsk_composite_node_get_type() -> GType; #[cfg(feature = "v4_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] @@ -2366,6 +2410,25 @@ extern "C" { ) -> *const GskRoundedRect; pub fn gsk_inset_shadow_node_get_spread(node: *const GskInsetShadowNode) -> c_float; + //========================================================================= + // GskIsolationNode + //========================================================================= + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + pub fn gsk_isolation_node_get_type() -> GType; + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + pub fn gsk_isolation_node_new( + child: *mut GskRenderNode, + isolations: GskIsolation, + ) -> *mut GskIsolationNode; + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + pub fn gsk_isolation_node_get_child(node: *const GskIsolationNode) -> *mut GskRenderNode; + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + pub fn gsk_isolation_node_get_isolations(node: *const GskIsolationNode) -> GskIsolation; + //========================================================================= // GskLinearGradientNode //========================================================================= diff --git a/gsk4/sys/tests/abi.rs b/gsk4/sys/tests/abi.rs index 1d259ea72a3b..aaca7eeb692a 100644 --- a/gsk4/sys/tests/abi.rs +++ b/gsk4/sys/tests/abi.rs @@ -243,6 +243,13 @@ const RUST_LAYOUTS: &[(&str, Layout)] = &[ alignment: align_of::(), }, ), + ( + "GskIsolation", + Layout { + size: size_of::(), + alignment: align_of::(), + }, + ), ( "GskLineCap", Layout { @@ -405,6 +412,11 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[ ("(gint) GSK_GL_UNIFORM_TYPE_VEC3", "6"), ("(gint) GSK_GL_UNIFORM_TYPE_VEC4", "7"), ("(gint) GSK_INSET_SHADOW_NODE", "11"), + ("(guint) GSK_ISOLATION_ALL", "4294967295"), + ("(guint) GSK_ISOLATION_BACKGROUND", "1"), + ("(guint) GSK_ISOLATION_COPY_PASTE", "2"), + ("(gint) GSK_ISOLATION_NODE", "35"), + ("(guint) GSK_ISOLATION_NONE", "0"), ("(gint) GSK_LINEAR_GRADIENT_NODE", "4"), ("(gint) GSK_LINE_CAP_BUTT", "0"), ("(gint) GSK_LINE_CAP_ROUND", "1"), diff --git a/gsk4/sys/tests/constant.c b/gsk4/sys/tests/constant.c index 7c7dc5a833c5..094b45978ddc 100644 --- a/gsk4/sys/tests/constant.c +++ b/gsk4/sys/tests/constant.c @@ -75,6 +75,11 @@ int main() { PRINT_CONSTANT((gint) GSK_GL_UNIFORM_TYPE_VEC3); PRINT_CONSTANT((gint) GSK_GL_UNIFORM_TYPE_VEC4); PRINT_CONSTANT((gint) GSK_INSET_SHADOW_NODE); + PRINT_CONSTANT((guint) GSK_ISOLATION_ALL); + PRINT_CONSTANT((guint) GSK_ISOLATION_BACKGROUND); + PRINT_CONSTANT((guint) GSK_ISOLATION_COPY_PASTE); + PRINT_CONSTANT((gint) GSK_ISOLATION_NODE); + PRINT_CONSTANT((guint) GSK_ISOLATION_NONE); PRINT_CONSTANT((gint) GSK_LINEAR_GRADIENT_NODE); PRINT_CONSTANT((gint) GSK_LINE_CAP_BUTT); PRINT_CONSTANT((gint) GSK_LINE_CAP_ROUND); diff --git a/gsk4/sys/tests/layout.c b/gsk4/sys/tests/layout.c index b611e9928422..016426013151 100644 --- a/gsk4/sys/tests/layout.c +++ b/gsk4/sys/tests/layout.c @@ -13,6 +13,7 @@ int main() { printf("%s;%zu;%zu\n", "GskFillRule", sizeof(GskFillRule), alignof(GskFillRule)); printf("%s;%zu;%zu\n", "GskGLShaderClass", sizeof(GskGLShaderClass), alignof(GskGLShaderClass)); printf("%s;%zu;%zu\n", "GskGLUniformType", sizeof(GskGLUniformType), alignof(GskGLUniformType)); + printf("%s;%zu;%zu\n", "GskIsolation", sizeof(GskIsolation), alignof(GskIsolation)); printf("%s;%zu;%zu\n", "GskLineCap", sizeof(GskLineCap), alignof(GskLineCap)); printf("%s;%zu;%zu\n", "GskLineJoin", sizeof(GskLineJoin), alignof(GskLineJoin)); printf("%s;%zu;%zu\n", "GskMaskMode", sizeof(GskMaskMode), alignof(GskMaskMode)); diff --git a/gsk4/sys/versions.txt b/gsk4/sys/versions.txt index 88cd8449e044..309a5cb46107 100644 --- a/gsk4/sys/versions.txt +++ b/gsk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66) -from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539) +Generated by gir (https://github.com/gtk-rs/gir @ 65b693752cd9) +from gir-files (https://github.com/gtk-rs/gir-files @ ef7c8d351e57) diff --git a/gtk4/src/auto/picture.rs b/gtk4/src/auto/picture.rs index 918ed7b38e8a..0ac013e168ec 100644 --- a/gtk4/src/auto/picture.rs +++ b/gtk4/src/auto/picture.rs @@ -130,6 +130,13 @@ impl Picture { unsafe { from_glib_none(ffi::gtk_picture_get_file(self.to_glib_none().0)) } } + #[doc(alias = "gtk_picture_get_isolate_contents")] + #[doc(alias = "get_isolate_contents")] + #[doc(alias = "isolate-contents")] + pub fn is_isolate_contents(&self) -> bool { + unsafe { from_glib(ffi::gtk_picture_get_isolate_contents(self.to_glib_none().0)) } + } + #[cfg_attr(feature = "v4_8", deprecated = "Since 4.8")] #[allow(deprecated)] #[doc(alias = "gtk_picture_get_keep_aspect_ratio")] @@ -199,6 +206,19 @@ impl Picture { } } + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + #[doc(alias = "gtk_picture_set_isolate_contents")] + #[doc(alias = "isolate-contents")] + pub fn set_isolate_contents(&self, isolate_contents: bool) { + unsafe { + ffi::gtk_picture_set_isolate_contents( + self.to_glib_none().0, + isolate_contents.into_glib(), + ); + } + } + #[cfg_attr(feature = "v4_8", deprecated = "Since 4.8")] #[allow(deprecated)] #[doc(alias = "gtk_picture_set_keep_aspect_ratio")] @@ -333,6 +353,31 @@ impl Picture { } } + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + #[doc(alias = "isolate-contents")] + pub fn connect_isolate_contents_notify(&self, f: F) -> SignalHandlerId { + unsafe extern "C" fn notify_isolate_contents_trampoline( + this: *mut ffi::GtkPicture, + _param_spec: glib::ffi::gpointer, + f: glib::ffi::gpointer, + ) { + let f: &F = &*(f as *const F); + f(&from_glib_borrow(this)) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw( + self.as_ptr() as *mut _, + c"notify::isolate-contents".as_ptr() as *const _, + Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( + notify_isolate_contents_trampoline:: as *const (), + )), + Box_::into_raw(f), + ) + } + } + #[cfg_attr(feature = "v4_8", deprecated = "Since 4.8")] #[doc(alias = "keep-aspect-ratio")] pub fn connect_keep_aspect_ratio_notify( @@ -434,6 +479,14 @@ impl PictureBuilder { } } + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + pub fn isolate_contents(self, isolate_contents: bool) -> Self { + Self { + builder: self.builder.property("isolate-contents", isolate_contents), + } + } + #[cfg_attr(feature = "v4_8", deprecated = "Since 4.8")] pub fn keep_aspect_ratio(self, keep_aspect_ratio: bool) -> Self { Self { diff --git a/gtk4/src/auto/snapshot.rs b/gtk4/src/auto/snapshot.rs index d9a5aa02466e..0af62060c475 100644 --- a/gtk4/src/auto/snapshot.rs +++ b/gtk4/src/auto/snapshot.rs @@ -462,6 +462,13 @@ pub trait SnapshotExt: IsA + 'static { } } + //#[cfg(feature = "v4_22")] + //#[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + //#[doc(alias = "gtk_snapshot_push_isolation")] + //fn push_isolation(&self, allowed: /*Ignored*/gsk::Isolation) { + // unsafe { TODO: call ffi:gtk_snapshot_push_isolation() } + //} + #[cfg(feature = "v4_10")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] #[doc(alias = "gtk_snapshot_push_mask")] diff --git a/gtk4/src/auto/versions.txt b/gtk4/src/auto/versions.txt index 88cd8449e044..309a5cb46107 100644 --- a/gtk4/src/auto/versions.txt +++ b/gtk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66) -from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539) +Generated by gir (https://github.com/gtk-rs/gir @ 65b693752cd9) +from gir-files (https://github.com/gtk-rs/gir-files @ ef7c8d351e57) diff --git a/gtk4/sys/src/lib.rs b/gtk4/sys/src/lib.rs index 85e91ca123e6..9fae25e58e15 100644 --- a/gtk4/sys/src/lib.rs +++ b/gtk4/sys/src/lib.rs @@ -17033,6 +17033,7 @@ extern "C" { #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))] pub fn gtk_picture_get_content_fit(self_: *mut GtkPicture) -> GtkContentFit; pub fn gtk_picture_get_file(self_: *mut GtkPicture) -> *mut gio::GFile; + pub fn gtk_picture_get_isolate_contents(self_: *mut GtkPicture) -> gboolean; pub fn gtk_picture_get_keep_aspect_ratio(self_: *mut GtkPicture) -> gboolean; pub fn gtk_picture_get_paintable(self_: *mut GtkPicture) -> *mut gdk::GdkPaintable; pub fn gtk_picture_set_alternative_text( @@ -17045,6 +17046,9 @@ extern "C" { pub fn gtk_picture_set_content_fit(self_: *mut GtkPicture, content_fit: GtkContentFit); pub fn gtk_picture_set_file(self_: *mut GtkPicture, file: *mut gio::GFile); pub fn gtk_picture_set_filename(self_: *mut GtkPicture, filename: *const c_char); + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + pub fn gtk_picture_set_isolate_contents(self_: *mut GtkPicture, isolate_contents: gboolean); pub fn gtk_picture_set_keep_aspect_ratio(self_: *mut GtkPicture, keep_aspect_ratio: gboolean); pub fn gtk_picture_set_paintable(self_: *mut GtkPicture, paintable: *mut gdk::GdkPaintable); pub fn gtk_picture_set_pixbuf(self_: *mut GtkPicture, pixbuf: *mut gdk_pixbuf::GdkPixbuf); @@ -18516,6 +18520,9 @@ extern "C" { bounds: *const graphene::graphene_rect_t, take_args: *mut glib::GBytes, ); + #[cfg(feature = "v4_22")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] + pub fn gtk_snapshot_push_isolation(snapshot: *mut GtkSnapshot, allowed: gsk::GskIsolation); #[cfg(feature = "v4_10")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))] pub fn gtk_snapshot_push_mask(snapshot: *mut GtkSnapshot, mask_mode: gsk::GskMaskMode); diff --git a/gtk4/sys/versions.txt b/gtk4/sys/versions.txt index 88cd8449e044..309a5cb46107 100644 --- a/gtk4/sys/versions.txt +++ b/gtk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 1d0088ebcb66) -from gir-files (https://github.com/gtk-rs/gir-files @ 6715d605e539) +Generated by gir (https://github.com/gtk-rs/gir @ 65b693752cd9) +from gir-files (https://github.com/gtk-rs/gir-files @ ef7c8d351e57)