Skip to content

Commit 339ad89

Browse files
Regenerate with latest gir/gir-files
1 parent 6c9fb5d commit 339ad89

29 files changed

+1018
-61
lines changed

gdk4-wayland/src/auto/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 0e476ab5c1de)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ cfc0305f903b)
1+
Generated by gir (https://github.com/gtk-rs/gir @ c537d4a59043)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 2437ecd9a33d)

gdk4-wayland/sys/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 0e476ab5c1de)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ cfc0305f903b)
1+
Generated by gir (https://github.com/gtk-rs/gir @ c537d4a59043)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 2437ecd9a33d)

gdk4-win32/src/auto/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 0e476ab5c1de)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ cfc0305f903b)
1+
Generated by gir (https://github.com/gtk-rs/gir @ c537d4a59043)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 2437ecd9a33d)

gdk4-win32/sys/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 0e476ab5c1de)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ cfc0305f903b)
1+
Generated by gir (https://github.com/gtk-rs/gir @ c537d4a59043)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 2437ecd9a33d)

gdk4-x11/src/auto/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 0e476ab5c1de)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ cfc0305f903b)
1+
Generated by gir (https://github.com/gtk-rs/gir @ c537d4a59043)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 2437ecd9a33d)

gdk4-x11/sys/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 0e476ab5c1de)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ cfc0305f903b)
1+
Generated by gir (https://github.com/gtk-rs/gir @ c537d4a59043)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 2437ecd9a33d)

gdk4/src/auto/dmabuf_formats.rs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use glib::translate::*;
66

77
glib::wrapper! {
8-
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
8+
#[derive(Debug, PartialOrd, Ord, Hash)]
99
pub struct DmabufFormats(Shared<ffi::GdkDmabufFormats>);
1010

1111
match fn {
@@ -27,6 +27,16 @@ impl DmabufFormats {
2727
}
2828
}
2929

30+
#[doc(alias = "gdk_dmabuf_formats_equal")]
31+
fn equal(&self, formats2: Option<&DmabufFormats>) -> bool {
32+
unsafe {
33+
from_glib(ffi::gdk_dmabuf_formats_equal(
34+
self.to_glib_none().0,
35+
formats2.to_glib_none().0,
36+
))
37+
}
38+
}
39+
3040
#[doc(alias = "gdk_dmabuf_formats_get_format")]
3141
#[doc(alias = "get_format")]
3242
pub fn format(&self, idx: usize) -> (u32, u64) {
@@ -49,3 +59,12 @@ impl DmabufFormats {
4959
unsafe { ffi::gdk_dmabuf_formats_get_n_formats(self.to_glib_none().0) }
5060
}
5161
}
62+
63+
impl PartialEq for DmabufFormats {
64+
#[inline]
65+
fn eq(&self, other: &Self) -> bool {
66+
self.equal(other)
67+
}
68+
}
69+
70+
impl Eq for DmabufFormats {}

gdk4/src/auto/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 0e476ab5c1de)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ cfc0305f903b)
1+
Generated by gir (https://github.com/gtk-rs/gir @ c537d4a59043)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 2437ecd9a33d)

gdk4/sys/src/lib.rs

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,29 +160,75 @@ pub const GDK_MEMORY_R8G8B8A8: GdkMemoryFormat = 5;
160160
pub const GDK_MEMORY_A8B8G8R8: GdkMemoryFormat = 6;
161161
pub const GDK_MEMORY_R8G8B8: GdkMemoryFormat = 7;
162162
pub const GDK_MEMORY_B8G8R8: GdkMemoryFormat = 8;
163+
#[cfg(feature = "v4_6")]
164+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))]
163165
pub const GDK_MEMORY_R16G16B16: GdkMemoryFormat = 9;
166+
#[cfg(feature = "v4_6")]
167+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))]
164168
pub const GDK_MEMORY_R16G16B16A16_PREMULTIPLIED: GdkMemoryFormat = 10;
169+
#[cfg(feature = "v4_6")]
170+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))]
165171
pub const GDK_MEMORY_R16G16B16A16: GdkMemoryFormat = 11;
172+
#[cfg(feature = "v4_6")]
173+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))]
166174
pub const GDK_MEMORY_R16G16B16_FLOAT: GdkMemoryFormat = 12;
175+
#[cfg(feature = "v4_6")]
176+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))]
167177
pub const GDK_MEMORY_R16G16B16A16_FLOAT_PREMULTIPLIED: GdkMemoryFormat = 13;
178+
#[cfg(feature = "v4_6")]
179+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))]
168180
pub const GDK_MEMORY_R16G16B16A16_FLOAT: GdkMemoryFormat = 14;
169181
pub const GDK_MEMORY_R32G32B32_FLOAT: GdkMemoryFormat = 15;
182+
#[cfg(feature = "v4_6")]
183+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))]
170184
pub const GDK_MEMORY_R32G32B32A32_FLOAT_PREMULTIPLIED: GdkMemoryFormat = 16;
185+
#[cfg(feature = "v4_6")]
186+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))]
171187
pub const GDK_MEMORY_R32G32B32A32_FLOAT: GdkMemoryFormat = 17;
188+
#[cfg(feature = "v4_12")]
189+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
172190
pub const GDK_MEMORY_G8A8_PREMULTIPLIED: GdkMemoryFormat = 18;
191+
#[cfg(feature = "v4_12")]
192+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
173193
pub const GDK_MEMORY_G8A8: GdkMemoryFormat = 19;
194+
#[cfg(feature = "v4_12")]
195+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
174196
pub const GDK_MEMORY_G8: GdkMemoryFormat = 20;
197+
#[cfg(feature = "v4_12")]
198+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
175199
pub const GDK_MEMORY_G16A16_PREMULTIPLIED: GdkMemoryFormat = 21;
200+
#[cfg(feature = "v4_12")]
201+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
176202
pub const GDK_MEMORY_G16A16: GdkMemoryFormat = 22;
203+
#[cfg(feature = "v4_12")]
204+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
177205
pub const GDK_MEMORY_G16: GdkMemoryFormat = 23;
206+
#[cfg(feature = "v4_12")]
207+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
178208
pub const GDK_MEMORY_A8: GdkMemoryFormat = 24;
209+
#[cfg(feature = "v4_12")]
210+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
179211
pub const GDK_MEMORY_A16: GdkMemoryFormat = 25;
212+
#[cfg(feature = "v4_12")]
213+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
180214
pub const GDK_MEMORY_A16_FLOAT: GdkMemoryFormat = 26;
215+
#[cfg(feature = "v4_12")]
216+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
181217
pub const GDK_MEMORY_A32_FLOAT: GdkMemoryFormat = 27;
218+
#[cfg(feature = "v4_14")]
219+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
182220
pub const GDK_MEMORY_A8B8G8R8_PREMULTIPLIED: GdkMemoryFormat = 28;
221+
#[cfg(feature = "v4_14")]
222+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
183223
pub const GDK_MEMORY_B8G8R8X8: GdkMemoryFormat = 29;
224+
#[cfg(feature = "v4_14")]
225+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
184226
pub const GDK_MEMORY_X8R8G8B8: GdkMemoryFormat = 30;
227+
#[cfg(feature = "v4_14")]
228+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
185229
pub const GDK_MEMORY_R8G8B8X8: GdkMemoryFormat = 31;
230+
#[cfg(feature = "v4_14")]
231+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
186232
pub const GDK_MEMORY_X8B8G8R8: GdkMemoryFormat = 32;
187233
pub const GDK_MEMORY_N_FORMATS: GdkMemoryFormat = 33;
188234

@@ -3907,6 +3953,12 @@ extern "C" {
39073953
) -> gboolean;
39083954
#[cfg(feature = "v4_14")]
39093955
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
3956+
pub fn gdk_dmabuf_formats_equal(
3957+
formats1: *const GdkDmabufFormats,
3958+
formats2: *const GdkDmabufFormats,
3959+
) -> gboolean;
3960+
#[cfg(feature = "v4_14")]
3961+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
39103962
pub fn gdk_dmabuf_formats_get_format(
39113963
formats: *mut GdkDmabufFormats,
39123964
idx: size_t,

gdk4/sys/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 0e476ab5c1de)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ cfc0305f903b)
1+
Generated by gir (https://github.com/gtk-rs/gir @ c537d4a59043)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 2437ecd9a33d)

0 commit comments

Comments
 (0)