Skip to content

Commit ea732db

Browse files
github-actions[bot]bilelmoussaoui
authored andcommitted
Regenerate with latest gir-files
1 parent 61ef82b commit ea732db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+793
-17
lines changed

gdk4-macos/src/auto/versions.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)

gdk4-macos/sys/versions.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)

gdk4-wayland/src/auto/versions.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)

gdk4-wayland/sys/versions.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)

gdk4-win32/src/auto/versions.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)

gdk4-win32/sys/versions.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)

gdk4-x11/src/auto/versions.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)

gdk4-x11/sys/versions.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Generated by gir (https://github.com/gtk-rs/gir @ 13192296259b)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 56728a5eb215)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 6668d0f5551a)

gdk4/src/auto/enums.rs

+184
Original file line numberDiff line numberDiff line change
@@ -1737,6 +1737,98 @@ pub enum MemoryFormat {
17371737
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
17381738
#[doc(alias = "GDK_MEMORY_X8B8G8R8")]
17391739
X8b8g8r8,
1740+
#[cfg(feature = "v4_20")]
1741+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1742+
#[doc(alias = "GDK_MEMORY_G8_B8R8_420")]
1743+
G8B8r8420,
1744+
#[cfg(feature = "v4_20")]
1745+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1746+
#[doc(alias = "GDK_MEMORY_G8_R8B8_420")]
1747+
G8R8b8420,
1748+
#[cfg(feature = "v4_20")]
1749+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1750+
#[doc(alias = "GDK_MEMORY_G8_B8R8_422")]
1751+
G8B8r8422,
1752+
#[cfg(feature = "v4_20")]
1753+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1754+
#[doc(alias = "GDK_MEMORY_G8_R8B8_422")]
1755+
G8R8b8422,
1756+
#[cfg(feature = "v4_20")]
1757+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1758+
#[doc(alias = "GDK_MEMORY_G8_B8R8_444")]
1759+
G8B8r8444,
1760+
#[cfg(feature = "v4_20")]
1761+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1762+
#[doc(alias = "GDK_MEMORY_G8_R8B8_444")]
1763+
G8R8b8444,
1764+
#[cfg(feature = "v4_20")]
1765+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1766+
#[doc(alias = "GDK_MEMORY_G10X6_B10X6R10X6_420")]
1767+
G10x6B10x6r10x6420,
1768+
#[cfg(feature = "v4_20")]
1769+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1770+
#[doc(alias = "GDK_MEMORY_G12X4_B12X4R12X4_420")]
1771+
G12x4B12x4r12x4420,
1772+
#[cfg(feature = "v4_20")]
1773+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1774+
#[doc(alias = "GDK_MEMORY_G16_B16R16_420")]
1775+
G16B16r16420,
1776+
#[cfg(feature = "v4_20")]
1777+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1778+
#[doc(alias = "GDK_MEMORY_G8_B8_R8_410")]
1779+
G8B8R8410,
1780+
#[cfg(feature = "v4_20")]
1781+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1782+
#[doc(alias = "GDK_MEMORY_G8_R8_B8_410")]
1783+
G8R8B8410,
1784+
#[cfg(feature = "v4_20")]
1785+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1786+
#[doc(alias = "GDK_MEMORY_G8_B8_R8_411")]
1787+
G8B8R8411,
1788+
#[cfg(feature = "v4_20")]
1789+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1790+
#[doc(alias = "GDK_MEMORY_G8_R8_B8_411")]
1791+
G8R8B8411,
1792+
#[cfg(feature = "v4_20")]
1793+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1794+
#[doc(alias = "GDK_MEMORY_G8_B8_R8_420")]
1795+
G8B8R8420,
1796+
#[cfg(feature = "v4_20")]
1797+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1798+
#[doc(alias = "GDK_MEMORY_G8_R8_B8_420")]
1799+
G8R8B8420,
1800+
#[cfg(feature = "v4_20")]
1801+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1802+
#[doc(alias = "GDK_MEMORY_G8_B8_R8_422")]
1803+
G8B8R8422,
1804+
#[cfg(feature = "v4_20")]
1805+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1806+
#[doc(alias = "GDK_MEMORY_G8_R8_B8_422")]
1807+
G8R8B8422,
1808+
#[cfg(feature = "v4_20")]
1809+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1810+
#[doc(alias = "GDK_MEMORY_G8_B8_R8_444")]
1811+
G8B8R8444,
1812+
#[cfg(feature = "v4_20")]
1813+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1814+
#[doc(alias = "GDK_MEMORY_G8_R8_B8_444")]
1815+
G8R8B8444,
1816+
#[cfg(feature = "v4_20")]
1817+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1818+
#[doc(alias = "GDK_MEMORY_G8B8G8R8_422")]
1819+
G8b8g8r8422,
1820+
#[cfg(feature = "v4_20")]
1821+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1822+
#[doc(alias = "GDK_MEMORY_G8R8G8B8_422")]
1823+
G8r8g8b8422,
1824+
#[cfg(feature = "v4_20")]
1825+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1826+
#[doc(alias = "GDK_MEMORY_R8G8B8G8_422")]
1827+
R8g8b8g8422,
1828+
#[cfg(feature = "v4_20")]
1829+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
1830+
#[doc(alias = "GDK_MEMORY_B8G8R8G8_422")]
1831+
B8g8r8g8422,
17401832
#[doc(hidden)]
17411833
__Unknown(i32),
17421834
}
@@ -1808,6 +1900,52 @@ impl IntoGlib for MemoryFormat {
18081900
Self::R8g8b8x8 => ffi::GDK_MEMORY_R8G8B8X8,
18091901
#[cfg(feature = "v4_14")]
18101902
Self::X8b8g8r8 => ffi::GDK_MEMORY_X8B8G8R8,
1903+
#[cfg(feature = "v4_20")]
1904+
Self::G8B8r8420 => ffi::GDK_MEMORY_G8_B8R8_420,
1905+
#[cfg(feature = "v4_20")]
1906+
Self::G8R8b8420 => ffi::GDK_MEMORY_G8_R8B8_420,
1907+
#[cfg(feature = "v4_20")]
1908+
Self::G8B8r8422 => ffi::GDK_MEMORY_G8_B8R8_422,
1909+
#[cfg(feature = "v4_20")]
1910+
Self::G8R8b8422 => ffi::GDK_MEMORY_G8_R8B8_422,
1911+
#[cfg(feature = "v4_20")]
1912+
Self::G8B8r8444 => ffi::GDK_MEMORY_G8_B8R8_444,
1913+
#[cfg(feature = "v4_20")]
1914+
Self::G8R8b8444 => ffi::GDK_MEMORY_G8_R8B8_444,
1915+
#[cfg(feature = "v4_20")]
1916+
Self::G10x6B10x6r10x6420 => ffi::GDK_MEMORY_G10X6_B10X6R10X6_420,
1917+
#[cfg(feature = "v4_20")]
1918+
Self::G12x4B12x4r12x4420 => ffi::GDK_MEMORY_G12X4_B12X4R12X4_420,
1919+
#[cfg(feature = "v4_20")]
1920+
Self::G16B16r16420 => ffi::GDK_MEMORY_G16_B16R16_420,
1921+
#[cfg(feature = "v4_20")]
1922+
Self::G8B8R8410 => ffi::GDK_MEMORY_G8_B8_R8_410,
1923+
#[cfg(feature = "v4_20")]
1924+
Self::G8R8B8410 => ffi::GDK_MEMORY_G8_R8_B8_410,
1925+
#[cfg(feature = "v4_20")]
1926+
Self::G8B8R8411 => ffi::GDK_MEMORY_G8_B8_R8_411,
1927+
#[cfg(feature = "v4_20")]
1928+
Self::G8R8B8411 => ffi::GDK_MEMORY_G8_R8_B8_411,
1929+
#[cfg(feature = "v4_20")]
1930+
Self::G8B8R8420 => ffi::GDK_MEMORY_G8_B8_R8_420,
1931+
#[cfg(feature = "v4_20")]
1932+
Self::G8R8B8420 => ffi::GDK_MEMORY_G8_R8_B8_420,
1933+
#[cfg(feature = "v4_20")]
1934+
Self::G8B8R8422 => ffi::GDK_MEMORY_G8_B8_R8_422,
1935+
#[cfg(feature = "v4_20")]
1936+
Self::G8R8B8422 => ffi::GDK_MEMORY_G8_R8_B8_422,
1937+
#[cfg(feature = "v4_20")]
1938+
Self::G8B8R8444 => ffi::GDK_MEMORY_G8_B8_R8_444,
1939+
#[cfg(feature = "v4_20")]
1940+
Self::G8R8B8444 => ffi::GDK_MEMORY_G8_R8_B8_444,
1941+
#[cfg(feature = "v4_20")]
1942+
Self::G8b8g8r8422 => ffi::GDK_MEMORY_G8B8G8R8_422,
1943+
#[cfg(feature = "v4_20")]
1944+
Self::G8r8g8b8422 => ffi::GDK_MEMORY_G8R8G8B8_422,
1945+
#[cfg(feature = "v4_20")]
1946+
Self::R8g8b8g8422 => ffi::GDK_MEMORY_R8G8B8G8_422,
1947+
#[cfg(feature = "v4_20")]
1948+
Self::B8g8r8g8422 => ffi::GDK_MEMORY_B8G8R8G8_422,
18111949
Self::__Unknown(value) => value,
18121950
}
18131951
}
@@ -1880,6 +2018,52 @@ impl FromGlib<ffi::GdkMemoryFormat> for MemoryFormat {
18802018
ffi::GDK_MEMORY_R8G8B8X8 => Self::R8g8b8x8,
18812019
#[cfg(feature = "v4_14")]
18822020
ffi::GDK_MEMORY_X8B8G8R8 => Self::X8b8g8r8,
2021+
#[cfg(feature = "v4_20")]
2022+
ffi::GDK_MEMORY_G8_B8R8_420 => Self::G8B8r8420,
2023+
#[cfg(feature = "v4_20")]
2024+
ffi::GDK_MEMORY_G8_R8B8_420 => Self::G8R8b8420,
2025+
#[cfg(feature = "v4_20")]
2026+
ffi::GDK_MEMORY_G8_B8R8_422 => Self::G8B8r8422,
2027+
#[cfg(feature = "v4_20")]
2028+
ffi::GDK_MEMORY_G8_R8B8_422 => Self::G8R8b8422,
2029+
#[cfg(feature = "v4_20")]
2030+
ffi::GDK_MEMORY_G8_B8R8_444 => Self::G8B8r8444,
2031+
#[cfg(feature = "v4_20")]
2032+
ffi::GDK_MEMORY_G8_R8B8_444 => Self::G8R8b8444,
2033+
#[cfg(feature = "v4_20")]
2034+
ffi::GDK_MEMORY_G10X6_B10X6R10X6_420 => Self::G10x6B10x6r10x6420,
2035+
#[cfg(feature = "v4_20")]
2036+
ffi::GDK_MEMORY_G12X4_B12X4R12X4_420 => Self::G12x4B12x4r12x4420,
2037+
#[cfg(feature = "v4_20")]
2038+
ffi::GDK_MEMORY_G16_B16R16_420 => Self::G16B16r16420,
2039+
#[cfg(feature = "v4_20")]
2040+
ffi::GDK_MEMORY_G8_B8_R8_410 => Self::G8B8R8410,
2041+
#[cfg(feature = "v4_20")]
2042+
ffi::GDK_MEMORY_G8_R8_B8_410 => Self::G8R8B8410,
2043+
#[cfg(feature = "v4_20")]
2044+
ffi::GDK_MEMORY_G8_B8_R8_411 => Self::G8B8R8411,
2045+
#[cfg(feature = "v4_20")]
2046+
ffi::GDK_MEMORY_G8_R8_B8_411 => Self::G8R8B8411,
2047+
#[cfg(feature = "v4_20")]
2048+
ffi::GDK_MEMORY_G8_B8_R8_420 => Self::G8B8R8420,
2049+
#[cfg(feature = "v4_20")]
2050+
ffi::GDK_MEMORY_G8_R8_B8_420 => Self::G8R8B8420,
2051+
#[cfg(feature = "v4_20")]
2052+
ffi::GDK_MEMORY_G8_B8_R8_422 => Self::G8B8R8422,
2053+
#[cfg(feature = "v4_20")]
2054+
ffi::GDK_MEMORY_G8_R8_B8_422 => Self::G8R8B8422,
2055+
#[cfg(feature = "v4_20")]
2056+
ffi::GDK_MEMORY_G8_B8_R8_444 => Self::G8B8R8444,
2057+
#[cfg(feature = "v4_20")]
2058+
ffi::GDK_MEMORY_G8_R8_B8_444 => Self::G8R8B8444,
2059+
#[cfg(feature = "v4_20")]
2060+
ffi::GDK_MEMORY_G8B8G8R8_422 => Self::G8b8g8r8422,
2061+
#[cfg(feature = "v4_20")]
2062+
ffi::GDK_MEMORY_G8R8G8B8_422 => Self::G8r8g8b8422,
2063+
#[cfg(feature = "v4_20")]
2064+
ffi::GDK_MEMORY_R8G8B8G8_422 => Self::R8g8b8g8422,
2065+
#[cfg(feature = "v4_20")]
2066+
ffi::GDK_MEMORY_B8G8R8G8_422 => Self::B8g8r8g8422,
18832067
value => Self::__Unknown(value),
18842068
}
18852069
}

gdk4/src/auto/memory_texture_builder.rs

+40
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,30 @@ impl MemoryTextureBuilder {
6868
unsafe { ffi::gdk_memory_texture_builder_get_height(self.to_glib_none().0) }
6969
}
7070

71+
#[cfg(feature = "v4_20")]
72+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
73+
#[doc(alias = "gdk_memory_texture_builder_get_offset")]
74+
#[doc(alias = "get_offset")]
75+
pub fn offset(&self, plane: u32) -> usize {
76+
unsafe { ffi::gdk_memory_texture_builder_get_offset(self.to_glib_none().0, plane) }
77+
}
78+
7179
#[doc(alias = "gdk_memory_texture_builder_get_stride")]
7280
#[doc(alias = "get_stride")]
7381
pub fn stride(&self) -> usize {
7482
unsafe { ffi::gdk_memory_texture_builder_get_stride(self.to_glib_none().0) }
7583
}
7684

85+
#[cfg(feature = "v4_20")]
86+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
87+
#[doc(alias = "gdk_memory_texture_builder_get_stride_for_plane")]
88+
#[doc(alias = "get_stride_for_plane")]
89+
pub fn stride_for_plane(&self, plane: u32) -> usize {
90+
unsafe {
91+
ffi::gdk_memory_texture_builder_get_stride_for_plane(self.to_glib_none().0, plane)
92+
}
93+
}
94+
7795
#[doc(alias = "gdk_memory_texture_builder_get_update_region")]
7896
#[doc(alias = "get_update_region")]
7997
#[doc(alias = "update-region")]
@@ -140,6 +158,15 @@ impl MemoryTextureBuilder {
140158
}
141159
}
142160

161+
#[cfg(feature = "v4_20")]
162+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
163+
#[doc(alias = "gdk_memory_texture_builder_set_offset")]
164+
pub fn set_offset(&self, plane: u32, offset: usize) {
165+
unsafe {
166+
ffi::gdk_memory_texture_builder_set_offset(self.to_glib_none().0, plane, offset);
167+
}
168+
}
169+
143170
#[doc(alias = "gdk_memory_texture_builder_set_stride")]
144171
#[doc(alias = "stride")]
145172
pub fn set_stride(&self, stride: usize) {
@@ -148,6 +175,19 @@ impl MemoryTextureBuilder {
148175
}
149176
}
150177

178+
#[cfg(feature = "v4_20")]
179+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
180+
#[doc(alias = "gdk_memory_texture_builder_set_stride_for_plane")]
181+
pub fn set_stride_for_plane(&self, plane: u32, stride: usize) {
182+
unsafe {
183+
ffi::gdk_memory_texture_builder_set_stride_for_plane(
184+
self.to_glib_none().0,
185+
plane,
186+
stride,
187+
);
188+
}
189+
}
190+
151191
#[doc(alias = "gdk_memory_texture_builder_set_update_region")]
152192
#[doc(alias = "update-region")]
153193
pub fn set_update_region(&self, region: Option<&cairo::Region>) {

gdk4/src/auto/texture_downloader.rs

+7
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ impl TextureDownloader {
4242
}
4343
}
4444

45+
//#[cfg(feature = "v4_20")]
46+
//#[cfg_attr(docsrs, doc(cfg(feature = "v4_20")))]
47+
//#[doc(alias = "gdk_texture_downloader_download_bytes_with_planes")]
48+
//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 {
49+
// unsafe { TODO: call ffi:gdk_texture_downloader_download_bytes_with_planes() }
50+
//}
51+
4552
//#[doc(alias = "gdk_texture_downloader_download_into")]
4653
//pub fn download_into(&self, data: &[u8], stride: usize) {
4754
// unsafe { TODO: call ffi:gdk_texture_downloader_download_into() }

0 commit comments

Comments
 (0)