Skip to content

Automated PR: Changes from updating gir/gir-files #2101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gdk4-macos/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
Generated by gir (https://github.com/gtk-rs/gir @ 59e3912ac141)
from gir-files (https://github.com/gtk-rs/gir-files @ a79d23cd6a42)
4 changes: 2 additions & 2 deletions gdk4-macos/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
Generated by gir (https://github.com/gtk-rs/gir @ 59e3912ac141)
from gir-files (https://github.com/gtk-rs/gir-files @ a79d23cd6a42)
4 changes: 2 additions & 2 deletions gdk4-wayland/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
Generated by gir (https://github.com/gtk-rs/gir @ 59e3912ac141)
from gir-files (https://github.com/gtk-rs/gir-files @ a79d23cd6a42)
4 changes: 2 additions & 2 deletions gdk4-wayland/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
Generated by gir (https://github.com/gtk-rs/gir @ 59e3912ac141)
from gir-files (https://github.com/gtk-rs/gir-files @ a79d23cd6a42)
4 changes: 2 additions & 2 deletions gdk4-win32/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
Generated by gir (https://github.com/gtk-rs/gir @ 59e3912ac141)
from gir-files (https://github.com/gtk-rs/gir-files @ a79d23cd6a42)
4 changes: 2 additions & 2 deletions gdk4-win32/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
Generated by gir (https://github.com/gtk-rs/gir @ 59e3912ac141)
from gir-files (https://github.com/gtk-rs/gir-files @ a79d23cd6a42)
4 changes: 2 additions & 2 deletions gdk4-x11/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
Generated by gir (https://github.com/gtk-rs/gir @ 59e3912ac141)
from gir-files (https://github.com/gtk-rs/gir-files @ a79d23cd6a42)
4 changes: 2 additions & 2 deletions gdk4-x11/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
Generated by gir (https://github.com/gtk-rs/gir @ 59e3912ac141)
from gir-files (https://github.com/gtk-rs/gir-files @ a79d23cd6a42)
72 changes: 72 additions & 0 deletions gdk4/src/auto/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,42 @@ pub enum MemoryFormat {
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_B8G8R8G8_422")]
B8g8r8g8422,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_X6G10_X6B10_X6R10_420")]
X6g10X6b10X6r10420,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_X6G10_X6B10_X6R10_422")]
X6g10X6b10X6r10422,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_X6G10_X6B10_X6R10_444")]
X6g10X6b10X6r10444,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_X4G12_X4B12_X4R12_420")]
X4g12X4b12X4r12420,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_X4G12_X4B12_X4R12_422")]
X4g12X4b12X4r12422,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_X4G12_X4B12_X4R12_444")]
X4g12X4b12X4r12444,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G16_B16_R16_420")]
G16B16R16420,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G16_B16_R16_422")]
G16B16R16422,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G16_B16_R16_444")]
G16B16R16444,
#[doc(hidden)]
__Unknown(i32),
}
Expand Down Expand Up @@ -1965,6 +2001,24 @@ impl IntoGlib for MemoryFormat {
Self::R8g8b8g8422 => ffi::GDK_MEMORY_R8G8B8G8_422,
#[cfg(feature = "v4_20")]
Self::B8g8r8g8422 => ffi::GDK_MEMORY_B8G8R8G8_422,
#[cfg(feature = "v4_20")]
Self::X6g10X6b10X6r10420 => ffi::GDK_MEMORY_X6G10_X6B10_X6R10_420,
#[cfg(feature = "v4_20")]
Self::X6g10X6b10X6r10422 => ffi::GDK_MEMORY_X6G10_X6B10_X6R10_422,
#[cfg(feature = "v4_20")]
Self::X6g10X6b10X6r10444 => ffi::GDK_MEMORY_X6G10_X6B10_X6R10_444,
#[cfg(feature = "v4_20")]
Self::X4g12X4b12X4r12420 => ffi::GDK_MEMORY_X4G12_X4B12_X4R12_420,
#[cfg(feature = "v4_20")]
Self::X4g12X4b12X4r12422 => ffi::GDK_MEMORY_X4G12_X4B12_X4R12_422,
#[cfg(feature = "v4_20")]
Self::X4g12X4b12X4r12444 => ffi::GDK_MEMORY_X4G12_X4B12_X4R12_444,
#[cfg(feature = "v4_20")]
Self::G16B16R16420 => ffi::GDK_MEMORY_G16_B16_R16_420,
#[cfg(feature = "v4_20")]
Self::G16B16R16422 => ffi::GDK_MEMORY_G16_B16_R16_422,
#[cfg(feature = "v4_20")]
Self::G16B16R16444 => ffi::GDK_MEMORY_G16_B16_R16_444,
Self::__Unknown(value) => value,
}
}
Expand Down Expand Up @@ -2083,6 +2137,24 @@ impl FromGlib<ffi::GdkMemoryFormat> for MemoryFormat {
ffi::GDK_MEMORY_R8G8B8G8_422 => Self::R8g8b8g8422,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_B8G8R8G8_422 => Self::B8g8r8g8422,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_X6G10_X6B10_X6R10_420 => Self::X6g10X6b10X6r10420,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_X6G10_X6B10_X6R10_422 => Self::X6g10X6b10X6r10422,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_X6G10_X6B10_X6R10_444 => Self::X6g10X6b10X6r10444,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_X4G12_X4B12_X4R12_420 => Self::X4g12X4b12X4r12420,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_X4G12_X4B12_X4R12_422 => Self::X4g12X4b12X4r12422,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_X4G12_X4B12_X4R12_444 => Self::X4g12X4b12X4r12444,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G16_B16_R16_420 => Self::G16B16R16420,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G16_B16_R16_422 => Self::G16B16R16422,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G16_B16_R16_444 => Self::G16B16R16444,
value => Self::__Unknown(value),
}
}
Expand Down
4 changes: 4 additions & 0 deletions gdk4/src/auto/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ bitflags! {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
#[doc(alias = "GdkDragAction")]
pub struct DragAction: u32 {
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_ACTION_NONE")]
const NONE = ffi::GDK_ACTION_NONE as _;
#[doc(alias = "GDK_ACTION_COPY")]
const COPY = ffi::GDK_ACTION_COPY as _;
#[doc(alias = "GDK_ACTION_MOVE")]
Expand Down
4 changes: 2 additions & 2 deletions gdk4/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
Generated by gir (https://github.com/gtk-rs/gir @ 59e3912ac141)
from gir-files (https://github.com/gtk-rs/gir-files @ a79d23cd6a42)
32 changes: 31 additions & 1 deletion gdk4/sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,34 @@ pub const GDK_MEMORY_R8G8B8G8_422: GdkMemoryFormat = 54;
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
pub const GDK_MEMORY_B8G8R8G8_422: GdkMemoryFormat = 55;
pub const GDK_MEMORY_N_FORMATS: GdkMemoryFormat = 56;
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
pub const GDK_MEMORY_X6G10_X6B10_X6R10_420: GdkMemoryFormat = 56;
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
pub const GDK_MEMORY_X6G10_X6B10_X6R10_422: GdkMemoryFormat = 57;
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
pub const GDK_MEMORY_X6G10_X6B10_X6R10_444: GdkMemoryFormat = 58;
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
pub const GDK_MEMORY_X4G12_X4B12_X4R12_420: GdkMemoryFormat = 59;
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
pub const GDK_MEMORY_X4G12_X4B12_X4R12_422: GdkMemoryFormat = 60;
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
pub const GDK_MEMORY_X4G12_X4B12_X4R12_444: GdkMemoryFormat = 61;
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
pub const GDK_MEMORY_G16_B16_R16_420: GdkMemoryFormat = 62;
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
pub const GDK_MEMORY_G16_B16_R16_422: GdkMemoryFormat = 63;
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
pub const GDK_MEMORY_G16_B16_R16_444: GdkMemoryFormat = 64;
pub const GDK_MEMORY_N_FORMATS: GdkMemoryFormat = 65;

pub type GdkNotifyType = c_int;
pub const GDK_NOTIFY_ANCESTOR: GdkNotifyType = 0;
Expand Down Expand Up @@ -2855,6 +2882,9 @@ pub const GDK_AXIS_FLAG_ROTATION: GdkAxisFlags = 1024;
pub const GDK_AXIS_FLAG_SLIDER: GdkAxisFlags = 2048;

pub type GdkDragAction = c_uint;
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
pub const GDK_ACTION_NONE: GdkDragAction = 0;
pub const GDK_ACTION_COPY: GdkDragAction = 1;
pub const GDK_ACTION_MOVE: GdkDragAction = 2;
pub const GDK_ACTION_LINK: GdkDragAction = 4;
Expand Down
12 changes: 11 additions & 1 deletion gdk4/sys/tests/abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(guint) GDK_ACTION_COPY", "1"),
("(guint) GDK_ACTION_LINK", "4"),
("(guint) GDK_ACTION_MOVE", "2"),
("(guint) GDK_ACTION_NONE", "0"),
("(guint) GDK_ALT_MASK", "8"),
("(guint) GDK_ANCHOR_FLIP", "3"),
("(guint) GDK_ANCHOR_FLIP_X", "1"),
Expand Down Expand Up @@ -3085,6 +3086,9 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GDK_MEMORY_G16A16", "22"),
("(gint) GDK_MEMORY_G16A16_PREMULTIPLIED", "21"),
("(gint) GDK_MEMORY_G16_B16R16_420", "41"),
("(gint) GDK_MEMORY_G16_B16_R16_420", "62"),
("(gint) GDK_MEMORY_G16_B16_R16_422", "63"),
("(gint) GDK_MEMORY_G16_B16_R16_444", "64"),
("(gint) GDK_MEMORY_G8", "20"),
("(gint) GDK_MEMORY_G8A8", "19"),
("(gint) GDK_MEMORY_G8A8_PREMULTIPLIED", "18"),
Expand All @@ -3106,7 +3110,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GDK_MEMORY_G8_R8_B8_420", "47"),
("(gint) GDK_MEMORY_G8_R8_B8_422", "49"),
("(gint) GDK_MEMORY_G8_R8_B8_444", "51"),
("(gint) GDK_MEMORY_N_FORMATS", "56"),
("(gint) GDK_MEMORY_N_FORMATS", "65"),
("(gint) GDK_MEMORY_R16G16B16", "9"),
("(gint) GDK_MEMORY_R16G16B16A16", "11"),
("(gint) GDK_MEMORY_R16G16B16A16_FLOAT", "14"),
Expand All @@ -3121,6 +3125,12 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GDK_MEMORY_R8G8B8A8_PREMULTIPLIED", "2"),
("(gint) GDK_MEMORY_R8G8B8G8_422", "54"),
("(gint) GDK_MEMORY_R8G8B8X8", "31"),
("(gint) GDK_MEMORY_X4G12_X4B12_X4R12_420", "59"),
("(gint) GDK_MEMORY_X4G12_X4B12_X4R12_422", "60"),
("(gint) GDK_MEMORY_X4G12_X4B12_X4R12_444", "61"),
("(gint) GDK_MEMORY_X6G10_X6B10_X6R10_420", "56"),
("(gint) GDK_MEMORY_X6G10_X6B10_X6R10_422", "57"),
("(gint) GDK_MEMORY_X6G10_X6B10_X6R10_444", "58"),
("(gint) GDK_MEMORY_X8B8G8R8", "32"),
("(gint) GDK_MEMORY_X8R8G8B8", "30"),
("(guint) GDK_META_MASK", "268435456"),
Expand Down
10 changes: 10 additions & 0 deletions gdk4/sys/tests/constant.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ int main() {
PRINT_CONSTANT((guint) GDK_ACTION_COPY);
PRINT_CONSTANT((guint) GDK_ACTION_LINK);
PRINT_CONSTANT((guint) GDK_ACTION_MOVE);
PRINT_CONSTANT((guint) GDK_ACTION_NONE);
PRINT_CONSTANT((guint) GDK_ALT_MASK);
PRINT_CONSTANT((guint) GDK_ANCHOR_FLIP);
PRINT_CONSTANT((guint) GDK_ANCHOR_FLIP_X);
Expand Down Expand Up @@ -2622,6 +2623,9 @@ int main() {
PRINT_CONSTANT((gint) GDK_MEMORY_G16A16);
PRINT_CONSTANT((gint) GDK_MEMORY_G16A16_PREMULTIPLIED);
PRINT_CONSTANT((gint) GDK_MEMORY_G16_B16R16_420);
PRINT_CONSTANT((gint) GDK_MEMORY_G16_B16_R16_420);
PRINT_CONSTANT((gint) GDK_MEMORY_G16_B16_R16_422);
PRINT_CONSTANT((gint) GDK_MEMORY_G16_B16_R16_444);
PRINT_CONSTANT((gint) GDK_MEMORY_G8);
PRINT_CONSTANT((gint) GDK_MEMORY_G8A8);
PRINT_CONSTANT((gint) GDK_MEMORY_G8A8_PREMULTIPLIED);
Expand Down Expand Up @@ -2658,6 +2662,12 @@ int main() {
PRINT_CONSTANT((gint) GDK_MEMORY_R8G8B8A8_PREMULTIPLIED);
PRINT_CONSTANT((gint) GDK_MEMORY_R8G8B8G8_422);
PRINT_CONSTANT((gint) GDK_MEMORY_R8G8B8X8);
PRINT_CONSTANT((gint) GDK_MEMORY_X4G12_X4B12_X4R12_420);
PRINT_CONSTANT((gint) GDK_MEMORY_X4G12_X4B12_X4R12_422);
PRINT_CONSTANT((gint) GDK_MEMORY_X4G12_X4B12_X4R12_444);
PRINT_CONSTANT((gint) GDK_MEMORY_X6G10_X6B10_X6R10_420);
PRINT_CONSTANT((gint) GDK_MEMORY_X6G10_X6B10_X6R10_422);
PRINT_CONSTANT((gint) GDK_MEMORY_X6G10_X6B10_X6R10_444);
PRINT_CONSTANT((gint) GDK_MEMORY_X8B8G8R8);
PRINT_CONSTANT((gint) GDK_MEMORY_X8R8G8B8);
PRINT_CONSTANT((guint) GDK_META_MASK);
Expand Down
4 changes: 2 additions & 2 deletions gdk4/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
Generated by gir (https://github.com/gtk-rs/gir @ 59e3912ac141)
from gir-files (https://github.com/gtk-rs/gir-files @ a79d23cd6a42)
2 changes: 1 addition & 1 deletion gir
Submodule gir updated 2 files
+28 −28 Cargo.lock
+11 −0 src/parser.rs
2 changes: 1 addition & 1 deletion gir-files
Submodule gir-files updated 7 files
+12 −7 GLib-2.0.gir
+5 −1 GModule-2.0.gir
+180 −8 Gdk-4.0.gir
+11 −2 Gio-2.0.gir
+298 −2 Gsk-4.0.gir
+296 −22 Gtk-4.0.gir
+231 −48 HarfBuzz-0.0.gir
3 changes: 3 additions & 0 deletions gsk4/src/auto/broadway_renderer.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
#![allow(deprecated)]

use crate::{ffi, Renderer};
use glib::{prelude::*, translate::*};
Expand All @@ -15,6 +16,8 @@ glib::wrapper! {
}

impl BroadwayRenderer {
#[cfg_attr(feature = "v4_20", deprecated = "Since 4.20")]
#[allow(deprecated)]
#[doc(alias = "gsk_broadway_renderer_new")]
pub fn new() -> BroadwayRenderer {
assert_initialized_main_thread!();
Expand Down
8 changes: 8 additions & 0 deletions gsk4/src/auto/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1310,6 +1310,10 @@ pub enum RenderNodeType {
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
#[doc(alias = "GSK_SUBSURFACE_NODE")]
SubsurfaceNode,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GSK_COMPONENT_TRANSFER_NODE")]
ComponentTransferNode,
#[doc(hidden)]
__Unknown(i32),
}
Expand Down Expand Up @@ -1356,6 +1360,8 @@ impl IntoGlib for RenderNodeType {
Self::StrokeNode => ffi::GSK_STROKE_NODE,
#[cfg(feature = "v4_14")]
Self::SubsurfaceNode => ffi::GSK_SUBSURFACE_NODE,
#[cfg(feature = "v4_20")]
Self::ComponentTransferNode => ffi::GSK_COMPONENT_TRANSFER_NODE,
Self::__Unknown(value) => value,
}
}
Expand Down Expand Up @@ -1403,6 +1409,8 @@ impl FromGlib<ffi::GskRenderNodeType> for RenderNodeType {
ffi::GSK_STROKE_NODE => Self::StrokeNode,
#[cfg(feature = "v4_14")]
ffi::GSK_SUBSURFACE_NODE => Self::SubsurfaceNode,
#[cfg(feature = "v4_20")]
ffi::GSK_COMPONENT_TRANSFER_NODE => Self::ComponentTransferNode,
value => Self::__Unknown(value),
}
}
Expand Down
26 changes: 26 additions & 0 deletions gsk4/src/auto/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,32 @@ impl Transform {
}
}

#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "gsk_transform_matrix_2d")]
#[must_use]
pub fn matrix_2d(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably needs manual impl similar to other transform methods

self,
xx: f32,
yx: f32,
xy: f32,
yy: f32,
dx: f32,
dy: f32,
) -> Option<Transform> {
unsafe {
from_glib_full(ffi::gsk_transform_matrix_2d(
self.into_glib_ptr(),
xx,
yx,
xy,
yy,
dx,
dy,
))
}
}

#[doc(alias = "gsk_transform_perspective")]
#[must_use]
pub fn perspective(self, depth: f32) -> Transform {
Expand Down
4 changes: 2 additions & 2 deletions gsk4/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ b3d444a058cf)
from gir-files (https://github.com/gtk-rs/gir-files @ 5c1e490fe50a)
Generated by gir (https://github.com/gtk-rs/gir @ 59e3912ac141)
from gir-files (https://github.com/gtk-rs/gir-files @ a79d23cd6a42)
Loading