Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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 @ 491114ad76bd)
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
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 @ 491114ad76bd)
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
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 @ 491114ad76bd)
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
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 @ 491114ad76bd)
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
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 @ 491114ad76bd)
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
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 @ 491114ad76bd)
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
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 @ 491114ad76bd)
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
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 @ 491114ad76bd)
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)
184 changes: 184 additions & 0 deletions gdk4/src/auto/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1737,6 +1737,98 @@ pub enum MemoryFormat {
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
#[doc(alias = "GDK_MEMORY_X8B8G8R8")]
X8b8g8r8,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_B8R8_420")]
G8B8r8420,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_R8B8_420")]
G8R8b8420,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_B8R8_422")]
G8B8r8422,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_R8B8_422")]
G8R8b8422,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_B8R8_444")]
G8B8r8444,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_R8B8_444")]
G8R8b8444,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G10X6_B10X6R10X6_420")]
G10x6B10x6r10x6420,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G12X4_B12X4R12X4_420")]
G12x4B12x4r12x4420,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G16_B16R16_420")]
G16B16r16420,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_B8_R8_410")]
G8B8R8410,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_R8_B8_410")]
G8R8B8410,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_B8_R8_411")]
G8B8R8411,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_R8_B8_411")]
G8R8B8411,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_B8_R8_420")]
G8B8R8420,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_R8_B8_420")]
G8R8B8420,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_B8_R8_422")]
G8B8R8422,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_R8_B8_422")]
G8R8B8422,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_B8_R8_444")]
G8B8R8444,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8_R8_B8_444")]
G8R8B8444,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8B8G8R8_422")]
G8b8g8r8422,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_G8R8G8B8_422")]
G8r8g8b8422,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_R8G8B8G8_422")]
R8g8b8g8422,
#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "GDK_MEMORY_B8G8R8G8_422")]
B8g8r8g8422,
#[doc(hidden)]
__Unknown(i32),
}
Expand Down Expand Up @@ -1808,6 +1900,52 @@ impl IntoGlib for MemoryFormat {
Self::R8g8b8x8 => ffi::GDK_MEMORY_R8G8B8X8,
#[cfg(feature = "v4_14")]
Self::X8b8g8r8 => ffi::GDK_MEMORY_X8B8G8R8,
#[cfg(feature = "v4_20")]
Self::G8B8r8420 => ffi::GDK_MEMORY_G8_B8R8_420,
#[cfg(feature = "v4_20")]
Self::G8R8b8420 => ffi::GDK_MEMORY_G8_R8B8_420,
#[cfg(feature = "v4_20")]
Self::G8B8r8422 => ffi::GDK_MEMORY_G8_B8R8_422,
#[cfg(feature = "v4_20")]
Self::G8R8b8422 => ffi::GDK_MEMORY_G8_R8B8_422,
#[cfg(feature = "v4_20")]
Self::G8B8r8444 => ffi::GDK_MEMORY_G8_B8R8_444,
#[cfg(feature = "v4_20")]
Self::G8R8b8444 => ffi::GDK_MEMORY_G8_R8B8_444,
#[cfg(feature = "v4_20")]
Self::G10x6B10x6r10x6420 => ffi::GDK_MEMORY_G10X6_B10X6R10X6_420,
#[cfg(feature = "v4_20")]
Self::G12x4B12x4r12x4420 => ffi::GDK_MEMORY_G12X4_B12X4R12X4_420,
#[cfg(feature = "v4_20")]
Self::G16B16r16420 => ffi::GDK_MEMORY_G16_B16R16_420,
#[cfg(feature = "v4_20")]
Self::G8B8R8410 => ffi::GDK_MEMORY_G8_B8_R8_410,
#[cfg(feature = "v4_20")]
Self::G8R8B8410 => ffi::GDK_MEMORY_G8_R8_B8_410,
#[cfg(feature = "v4_20")]
Self::G8B8R8411 => ffi::GDK_MEMORY_G8_B8_R8_411,
#[cfg(feature = "v4_20")]
Self::G8R8B8411 => ffi::GDK_MEMORY_G8_R8_B8_411,
#[cfg(feature = "v4_20")]
Self::G8B8R8420 => ffi::GDK_MEMORY_G8_B8_R8_420,
#[cfg(feature = "v4_20")]
Self::G8R8B8420 => ffi::GDK_MEMORY_G8_R8_B8_420,
#[cfg(feature = "v4_20")]
Self::G8B8R8422 => ffi::GDK_MEMORY_G8_B8_R8_422,
#[cfg(feature = "v4_20")]
Self::G8R8B8422 => ffi::GDK_MEMORY_G8_R8_B8_422,
#[cfg(feature = "v4_20")]
Self::G8B8R8444 => ffi::GDK_MEMORY_G8_B8_R8_444,
#[cfg(feature = "v4_20")]
Self::G8R8B8444 => ffi::GDK_MEMORY_G8_R8_B8_444,
#[cfg(feature = "v4_20")]
Self::G8b8g8r8422 => ffi::GDK_MEMORY_G8B8G8R8_422,
#[cfg(feature = "v4_20")]
Self::G8r8g8b8422 => ffi::GDK_MEMORY_G8R8G8B8_422,
#[cfg(feature = "v4_20")]
Self::R8g8b8g8422 => ffi::GDK_MEMORY_R8G8B8G8_422,
#[cfg(feature = "v4_20")]
Self::B8g8r8g8422 => ffi::GDK_MEMORY_B8G8R8G8_422,
Self::__Unknown(value) => value,
}
}
Expand Down Expand Up @@ -1880,6 +2018,52 @@ impl FromGlib<ffi::GdkMemoryFormat> for MemoryFormat {
ffi::GDK_MEMORY_R8G8B8X8 => Self::R8g8b8x8,
#[cfg(feature = "v4_14")]
ffi::GDK_MEMORY_X8B8G8R8 => Self::X8b8g8r8,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_B8R8_420 => Self::G8B8r8420,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_R8B8_420 => Self::G8R8b8420,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_B8R8_422 => Self::G8B8r8422,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_R8B8_422 => Self::G8R8b8422,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_B8R8_444 => Self::G8B8r8444,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_R8B8_444 => Self::G8R8b8444,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G10X6_B10X6R10X6_420 => Self::G10x6B10x6r10x6420,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G12X4_B12X4R12X4_420 => Self::G12x4B12x4r12x4420,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G16_B16R16_420 => Self::G16B16r16420,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_B8_R8_410 => Self::G8B8R8410,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_R8_B8_410 => Self::G8R8B8410,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_B8_R8_411 => Self::G8B8R8411,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_R8_B8_411 => Self::G8R8B8411,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_B8_R8_420 => Self::G8B8R8420,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_R8_B8_420 => Self::G8R8B8420,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_B8_R8_422 => Self::G8B8R8422,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_R8_B8_422 => Self::G8R8B8422,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_B8_R8_444 => Self::G8B8R8444,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8_R8_B8_444 => Self::G8R8B8444,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8B8G8R8_422 => Self::G8b8g8r8422,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_G8R8G8B8_422 => Self::G8r8g8b8422,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_R8G8B8G8_422 => Self::R8g8b8g8422,
#[cfg(feature = "v4_20")]
ffi::GDK_MEMORY_B8G8R8G8_422 => Self::B8g8r8g8422,
value => Self::__Unknown(value),
}
}
Expand Down
40 changes: 40 additions & 0 deletions gdk4/src/auto/memory_texture_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,30 @@ impl MemoryTextureBuilder {
unsafe { ffi::gdk_memory_texture_builder_get_height(self.to_glib_none().0) }
}

#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "gdk_memory_texture_builder_get_offset")]
#[doc(alias = "get_offset")]
pub fn offset(&self, plane: u32) -> usize {
unsafe { ffi::gdk_memory_texture_builder_get_offset(self.to_glib_none().0, plane) }
}

#[doc(alias = "gdk_memory_texture_builder_get_stride")]
#[doc(alias = "get_stride")]
pub fn stride(&self) -> usize {
unsafe { ffi::gdk_memory_texture_builder_get_stride(self.to_glib_none().0) }
}

#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "gdk_memory_texture_builder_get_stride_for_plane")]
#[doc(alias = "get_stride_for_plane")]
pub fn stride_for_plane(&self, plane: u32) -> usize {
unsafe {
ffi::gdk_memory_texture_builder_get_stride_for_plane(self.to_glib_none().0, plane)
}
}

#[doc(alias = "gdk_memory_texture_builder_get_update_region")]
#[doc(alias = "get_update_region")]
#[doc(alias = "update-region")]
Expand Down Expand Up @@ -140,6 +158,15 @@ impl MemoryTextureBuilder {
}
}

#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "gdk_memory_texture_builder_set_offset")]
pub fn set_offset(&self, plane: u32, offset: usize) {
unsafe {
ffi::gdk_memory_texture_builder_set_offset(self.to_glib_none().0, plane, offset);
}
}

#[doc(alias = "gdk_memory_texture_builder_set_stride")]
#[doc(alias = "stride")]
pub fn set_stride(&self, stride: usize) {
Expand All @@ -148,6 +175,19 @@ impl MemoryTextureBuilder {
}
}

#[cfg(feature = "v4_20")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
#[doc(alias = "gdk_memory_texture_builder_set_stride_for_plane")]
pub fn set_stride_for_plane(&self, plane: u32, stride: usize) {
unsafe {
ffi::gdk_memory_texture_builder_set_stride_for_plane(
self.to_glib_none().0,
plane,
stride,
);
}
}

#[doc(alias = "gdk_memory_texture_builder_set_update_region")]
#[doc(alias = "update-region")]
pub fn set_update_region(&self, region: Option<&cairo::Region>) {
Expand Down
7 changes: 7 additions & 0 deletions gdk4/src/auto/texture_downloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ impl TextureDownloader {
}
}

//#[cfg(feature = "v4_20")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
//#[doc(alias = "gdk_texture_downloader_download_bytes_with_planes")]
//pub fn download_bytes_with_planes(&self, out_offsets: /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 18 }; 4, out_strides: /*Unimplemented*/FixedArray TypeId { ns_id: 0, id: 18 }; 4) -> glib::Bytes {
// unsafe { TODO: call ffi:gdk_texture_downloader_download_bytes_with_planes() }
//}

//#[doc(alias = "gdk_texture_downloader_download_into")]
//pub fn download_into(&self, data: &[u8], stride: usize) {
// unsafe { TODO: call ffi:gdk_texture_downloader_download_into() }
Expand Down
Loading