Skip to content

Commit a11f388

Browse files
Regenerate with latest gir-files
1 parent 9e66316 commit a11f388

File tree

30 files changed

+628
-24
lines changed

30 files changed

+628
-24
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 @ eff839d4745d)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd)
1+
Generated by gir (https://github.com/gtk-rs/gir @ af6703cf6545)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)

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 @ eff839d4745d)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd)
1+
Generated by gir (https://github.com/gtk-rs/gir @ af6703cf6545)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)

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 @ eff839d4745d)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd)
1+
Generated by gir (https://github.com/gtk-rs/gir @ af6703cf6545)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)

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 @ eff839d4745d)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd)
1+
Generated by gir (https://github.com/gtk-rs/gir @ af6703cf6545)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)

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 @ eff839d4745d)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd)
1+
Generated by gir (https://github.com/gtk-rs/gir @ af6703cf6545)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)

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 @ eff839d4745d)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 62da9eb7c4bd)
1+
Generated by gir (https://github.com/gtk-rs/gir @ af6703cf6545)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ e45712216c81)

gdk4/src/auto/dmabuf_texture_builder.rs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ impl DmabufTextureBuilder {
2626
unsafe { from_glib_full(ffi::gdk_dmabuf_texture_builder_new()) }
2727
}
2828

29+
//#[cfg(feature = "v4_16")]
30+
//#[cfg_attr(docsrs, doc(cfg(feature = "v4_16")))]
31+
//#[doc(alias = "gdk_dmabuf_texture_builder_get_color_state")]
32+
//#[doc(alias = "get_color_state")]
33+
//#[doc(alias = "color-state")]
34+
//pub fn color_state(&self) -> /*Ignored*/Option<ColorState> {
35+
// unsafe { TODO: call ffi:gdk_dmabuf_texture_builder_get_color_state() }
36+
//}
37+
2938
#[doc(alias = "gdk_dmabuf_texture_builder_get_display")]
3039
#[doc(alias = "get_display")]
3140
pub fn display(&self) -> Display {
@@ -118,6 +127,14 @@ impl DmabufTextureBuilder {
118127
unsafe { ffi::gdk_dmabuf_texture_builder_get_width(self.to_glib_none().0) }
119128
}
120129

130+
//#[cfg(feature = "v4_16")]
131+
//#[cfg_attr(docsrs, doc(cfg(feature = "v4_16")))]
132+
//#[doc(alias = "gdk_dmabuf_texture_builder_set_color_state")]
133+
//#[doc(alias = "color-state")]
134+
//pub fn set_color_state(&self, color_state: /*Ignored*/Option<&ColorState>) {
135+
// unsafe { TODO: call ffi:gdk_dmabuf_texture_builder_set_color_state() }
136+
//}
137+
121138
#[doc(alias = "gdk_dmabuf_texture_builder_set_display")]
122139
#[doc(alias = "display")]
123140
pub fn set_display(&self, display: &impl IsA<Display>) {
@@ -223,6 +240,33 @@ impl DmabufTextureBuilder {
223240
}
224241
}
225242

243+
#[cfg(feature = "v4_16")]
244+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_16")))]
245+
#[doc(alias = "color-state")]
246+
pub fn connect_color_state_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
247+
unsafe extern "C" fn notify_color_state_trampoline<
248+
F: Fn(&DmabufTextureBuilder) + 'static,
249+
>(
250+
this: *mut ffi::GdkDmabufTextureBuilder,
251+
_param_spec: glib::ffi::gpointer,
252+
f: glib::ffi::gpointer,
253+
) {
254+
let f: &F = &*(f as *const F);
255+
f(&from_glib_borrow(this))
256+
}
257+
unsafe {
258+
let f: Box_<F> = Box_::new(f);
259+
connect_raw(
260+
self.as_ptr() as *mut _,
261+
b"notify::color-state\0".as_ptr() as *const _,
262+
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
263+
notify_color_state_trampoline::<F> as *const (),
264+
)),
265+
Box_::into_raw(f),
266+
)
267+
}
268+
}
269+
226270
#[cfg(feature = "v4_14")]
227271
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
228272
#[doc(alias = "display")]

gdk4/src/auto/draw_context.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// This file was generated by gir (https://github.com/gtk-rs/gir)
22
// from gir-files (https://github.com/gtk-rs/gir-files)
33
// DO NOT EDIT
4+
#![allow(deprecated)]
45

56
use crate::{ffi, Display, Surface};
67
use glib::{prelude::*, translate::*};
@@ -19,6 +20,8 @@ impl DrawContext {
1920
}
2021

2122
pub trait DrawContextExt: IsA<DrawContext> + 'static {
23+
#[cfg_attr(feature = "v4_16", deprecated = "Since 4.16")]
24+
#[allow(deprecated)]
2225
#[doc(alias = "gdk_draw_context_begin_frame")]
2326
fn begin_frame(&self, region: &cairo::Region) {
2427
unsafe {
@@ -29,6 +32,8 @@ pub trait DrawContextExt: IsA<DrawContext> + 'static {
2932
}
3033
}
3134

35+
#[cfg_attr(feature = "v4_16", deprecated = "Since 4.16")]
36+
#[allow(deprecated)]
3237
#[doc(alias = "gdk_draw_context_end_frame")]
3338
fn end_frame(&self) {
3439
unsafe {
@@ -56,6 +61,8 @@ pub trait DrawContextExt: IsA<DrawContext> + 'static {
5661
}
5762
}
5863

64+
#[cfg_attr(feature = "v4_16", deprecated = "Since 4.16")]
65+
#[allow(deprecated)]
5966
#[doc(alias = "gdk_draw_context_is_in_frame")]
6067
fn is_in_frame(&self) -> bool {
6168
unsafe {

gdk4/src/auto/gl_texture_builder.rs

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44

55
use crate::{ffi, GLContext, MemoryFormat, Texture};
66
use glib::translate::*;
7+
#[cfg(feature = "v4_16")]
8+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_16")))]
9+
use glib::{
10+
prelude::*,
11+
signal::{connect_raw, SignalHandlerId},
12+
};
13+
#[cfg(feature = "v4_16")]
14+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_16")))]
15+
use std::boxed::Box as Box_;
716

817
glib::wrapper! {
918
#[doc(alias = "GdkGLTextureBuilder")]
@@ -21,6 +30,15 @@ impl GLTextureBuilder {
2130
unsafe { from_glib_full(ffi::gdk_gl_texture_builder_new()) }
2231
}
2332

33+
//#[cfg(feature = "v4_16")]
34+
//#[cfg_attr(docsrs, doc(cfg(feature = "v4_16")))]
35+
//#[doc(alias = "gdk_gl_texture_builder_get_color_state")]
36+
//#[doc(alias = "get_color_state")]
37+
//#[doc(alias = "color-state")]
38+
//pub fn color_state(&self) -> /*Ignored*/ColorState {
39+
// unsafe { TODO: call ffi:gdk_gl_texture_builder_get_color_state() }
40+
//}
41+
2442
#[doc(alias = "gdk_gl_texture_builder_get_context")]
2543
#[doc(alias = "get_context")]
2644
pub fn context(&self) -> Option<GLContext> {
@@ -91,6 +109,44 @@ impl GLTextureBuilder {
91109
pub fn width(&self) -> i32 {
92110
unsafe { ffi::gdk_gl_texture_builder_get_width(self.to_glib_none().0) }
93111
}
112+
113+
//#[cfg(feature = "v4_16")]
114+
//#[cfg_attr(docsrs, doc(cfg(feature = "v4_16")))]
115+
//#[doc(alias = "gdk_gl_texture_builder_set_color_state")]
116+
//#[doc(alias = "color-state")]
117+
//pub fn set_color_state(&self, color_state: /*Ignored*/&ColorState) {
118+
// unsafe { TODO: call ffi:gdk_gl_texture_builder_set_color_state() }
119+
//}
120+
121+
#[cfg(feature = "v4_16")]
122+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_16")))]
123+
#[doc(alias = "color-state")]
124+
pub fn connect_color_state_notify<F: Fn(&Self) + Send + Sync + 'static>(
125+
&self,
126+
f: F,
127+
) -> SignalHandlerId {
128+
unsafe extern "C" fn notify_color_state_trampoline<
129+
F: Fn(&GLTextureBuilder) + Send + Sync + 'static,
130+
>(
131+
this: *mut ffi::GdkGLTextureBuilder,
132+
_param_spec: glib::ffi::gpointer,
133+
f: glib::ffi::gpointer,
134+
) {
135+
let f: &F = &*(f as *const F);
136+
f(&from_glib_borrow(this))
137+
}
138+
unsafe {
139+
let f: Box_<F> = Box_::new(f);
140+
connect_raw(
141+
self.as_ptr() as *mut _,
142+
b"notify::color-state\0".as_ptr() as *const _,
143+
Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
144+
notify_color_state_trampoline::<F> as *const (),
145+
)),
146+
Box_::into_raw(f),
147+
)
148+
}
149+
}
94150
}
95151

96152
#[cfg(feature = "v4_12")]

gdk4/src/auto/surface.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ pub trait SurfaceExt: IsA<Surface> + 'static {
255255
}
256256
}
257257

258+
#[cfg_attr(feature = "v4_16", deprecated = "Since 4.16")]
259+
#[allow(deprecated)]
258260
#[doc(alias = "gdk_surface_set_opaque_region")]
259261
fn set_opaque_region(&self, region: Option<&cairo::Region>) {
260262
unsafe {

0 commit comments

Comments
 (0)