Skip to content

Commit a103e0e

Browse files
gdk/win32: Generate new types
The texture builder is useless without the build method but that would require someone with a windows machine to fix it.
1 parent ab8d57c commit a103e0e

File tree

10 files changed

+476
-14
lines changed

10 files changed

+476
-14
lines changed

gdk4-win32/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ version = "4"
2020
[features]
2121
v4_4 = ["gdk4-win32-sys/v4_4", "gdk/v4_4"]
2222
v4_8 = ["v4_4", "gdk4-win32-sys/v4_8", "gdk/v4_8"]
23-
v4_18 = ["v4_8"]
23+
v4_20 = ["v4_8", "gdk4-win32-sys/v4_20"]
2424
egl = ["khronos-egl"]
2525
win32 = ["windows"]
2626

gdk4-win32/Gir.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ deprecate_by_min_version = true
1212
trust_return_value_nullability = true
1313

1414
generate = [
15+
"GdkWin32.D3D12Error",
16+
"GdkWin32.D3D12Texture",
17+
"GdkWin32.D3D12TextureBuilder",
1518
"GdkWin32.Win32DisplayManager",
1619
"GdkWin32.Win32Drag",
1720
"GdkWin32.Win32GLContext",
@@ -20,11 +23,19 @@ generate = [
2023
]
2124

2225
manual = [
26+
"cairo.Region",
27+
"Gdk.ColorState",
2328
"Gdk.Cursor",
2429
"Gdk.DisplayManager",
2530
"Gdk.DrawContext",
31+
"Gdk.Paintable",
2632
"Gdk.Rectangle",
33+
"Gdk.Texture",
2734
"GdkPixbuf.Pixbuf",
35+
"Gio.Icon",
36+
"Gio.LoadableIcon",
37+
"GLib.Error",
38+
"GLib.Quark",
2839
"win32.HCURSOR",
2940
"win32.HICON",
3041
"win32.HWND",
@@ -83,6 +94,9 @@ final_type = false
8394
[[object]]
8495
name = "GdkWin32.*"
8596
status = "generate"
97+
[[object.function]]
98+
name = "d3d12_error_quark"
99+
ignore = true # Implemented as ErrorDomain
86100

87101
[[object.function]]
88102
name = "win32_handle_table_lookup"

gdk4-win32/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ gdk-win32 = { git = "https://github.com/gtk-rs/gtk4-rs.git", package = "gdk4-win
4343

4444
| Feature | Description |
4545
| --- | ----------- |
46-
| `v4_18` | Enable the new APIs part of GTK 4.18 |
46+
| `v4_20` | Enable the new APIs part of GTK 4.20 |
4747
| `v4_4` | Enable the new APIs part of GTK 4.4 |
4848
| `egl` | Integration with the [khronos-egl](https://crates.io/crates/khronos-egl) crate |
4949
| `win32` | Integration with the [windows](https://crates.io/crates/windows) crate |
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// This file was generated by gir (https://github.com/gtk-rs/gir)
2+
// from gir-files (https://github.com/gtk-rs/gir-files)
3+
// DO NOT EDIT
4+
5+
use crate::ffi;
6+
7+
glib::wrapper! {
8+
#[doc(alias = "GdkD3D12Texture")]
9+
pub struct D3D12Texture(Object<ffi::GdkD3D12Texture, ffi::GdkD3D12TextureClass>) @extends gdk::Texture, @implements gdk::Paintable, gio::Icon, gio::LoadableIcon;
10+
11+
match fn {
12+
type_ => || ffi::gdk_d3d12_texture_get_type(),
13+
}
14+
}
15+
16+
impl D3D12Texture {}

0 commit comments

Comments
 (0)