Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion 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 @ 19e8a2f15e0e)
Generated by gir (https://github.com/gtk-rs/gir @ 8a55e4fc8412)
from gir-files (https://github.com/gtk-rs/gir-files @ 770dd7bbdcd1)
2 changes: 1 addition & 1 deletion 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 @ 19e8a2f15e0e)
Generated by gir (https://github.com/gtk-rs/gir @ 8a55e4fc8412)
from gir-files (https://github.com/gtk-rs/gir-files @ 770dd7bbdcd1)
2 changes: 1 addition & 1 deletion 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 @ 19e8a2f15e0e)
Generated by gir (https://github.com/gtk-rs/gir @ 8a55e4fc8412)
from gir-files (https://github.com/gtk-rs/gir-files @ 770dd7bbdcd1)
2 changes: 1 addition & 1 deletion 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 @ 19e8a2f15e0e)
Generated by gir (https://github.com/gtk-rs/gir @ 8a55e4fc8412)
from gir-files (https://github.com/gtk-rs/gir-files @ 770dd7bbdcd1)
2 changes: 1 addition & 1 deletion 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 @ 19e8a2f15e0e)
Generated by gir (https://github.com/gtk-rs/gir @ 8a55e4fc8412)
from gir-files (https://github.com/gtk-rs/gir-files @ 770dd7bbdcd1)
2 changes: 1 addition & 1 deletion 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 @ 19e8a2f15e0e)
Generated by gir (https://github.com/gtk-rs/gir @ 8a55e4fc8412)
from gir-files (https://github.com/gtk-rs/gir-files @ 770dd7bbdcd1)
2 changes: 1 addition & 1 deletion 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 @ 19e8a2f15e0e)
Generated by gir (https://github.com/gtk-rs/gir @ 8a55e4fc8412)
from gir-files (https://github.com/gtk-rs/gir-files @ 770dd7bbdcd1)
2 changes: 1 addition & 1 deletion 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 @ 19e8a2f15e0e)
Generated by gir (https://github.com/gtk-rs/gir @ 8a55e4fc8412)
from gir-files (https://github.com/gtk-rs/gir-files @ 770dd7bbdcd1)
43 changes: 39 additions & 4 deletions gdk4/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ generate = [
"Gdk.DevicePad",
"Gdk.DevicePadFeature",
"Gdk.DeviceToolType",
"Gdk.DmabufError",
"Gdk.DmabufTexture",
"Gdk.DNDEvent",
"Gdk.DragAction",
"Gdk.DragCancelReason",
Expand Down Expand Up @@ -422,35 +420,64 @@ manual_traits = ["DisplayExtManual"]
[[object.function]]
pattern = "map_key(code|val)"
manual = true # make use of Key
[[object.function]]
name = "get_dmabuf_formats"
cfg_condition = "target_os = \"linux\""
[[object.property]]
name = "shadow-width"
generate = ["notify"]
[[object.property]]
name = "dmabuf-formats"
cfg_condition = "target_os = \"linux\""

[[object]]
name = "Gdk.DisplayManager"
status = "generate"
generate_builder = false

[[object]]
name = "Gdk.DmabufError"
status = "generate"
cfg_condition = "target_os = \"linux\""

[[object]]
name = "Gdk.DmabufFormats"
status = "generate"
cfg_condition = "target_os = \"linux\""
[[object.function]]
name = "equal"
[[object.function.parameter]]
name = "formats2"
nullable = false

[[object]]
name = "Gdk.DmabufTexture"
status = "generate"
cfg_condition = "target_os = \"linux\""

[[object]]
name = "Gdk.DmabufTextureBuilder"
status = "generate"
cfg_condition = "target_os = \"linux\""
[[object.function]]
name = "set_update_region"
[[object.function.parameter]]
name = "region"
const = true
[[object.function]]
pattern = "set_(color_state|display|fd|fourcc|height|modifier|n_planes|offset|premultiplied|stride|update_region|update_texture|width)"
# Take by value and return self
manual = true
[[object.function]]
pattern = "get_fd"
# Use BorrowedFd
manual = true
[[object.function]]
name = "build"
manual = true # Can't be auto-generated
[[object.property]]
pattern = "(color-state|display|fourcc|height|modifier|n-planes|premultiplied|update-region|update-texture|width)"
generate = [] # ignore get/set/notify

[[object]]
name = "Gdk.Drag"
Expand Down Expand Up @@ -530,7 +557,8 @@ generate_builder = false
name = "region"
const = true
[[object.function]]
pattern = "set_(context|format|has_mipmap|height|id|update_region|update_texture|width)"
pattern = "set_(color_state|context|format|has_mipmap|height|id|update_region|update_texture|width)"
# Take by value and return self
manual = true
[[object.function]]
pattern = "(set|get)_sync"
Expand All @@ -539,7 +567,7 @@ generate_builder = false
name = "build"
manual = true
[[object.property]]
pattern = "(context|format|has-mipmap|height|id|sync|update-region|update-texture|width)"
pattern = "(color-state|context|format|has-mipmap|height|id|sync|update-region|update-texture|width)"
generate = [] # ignore get/set/notify

[[object]]
Expand Down Expand Up @@ -579,6 +607,13 @@ concurrency = "send+sync"
[[object.function.parameter]]
name = "region"
const = true
[[object.function]]
pattern = "set_(bytes|color_state|format|height|offset|stride|stride_for_plane|update_region|update_texture|width)"
# Take by value and return self
manual = true
[[object.property]]
pattern = "(bytes|color-state|format|height|stride|update-region|update-texture|width)"
generate = [] # ignore get/set/notify

[[object]]
name = "Gdk.Monitor"
Expand Down
4 changes: 4 additions & 0 deletions gdk4/src/auto/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// DO NOT EDIT
#![allow(deprecated)]

#[cfg(target_os = "linux")]
#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
#[cfg(feature = "v4_14")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
use crate::DmabufFormats;
Expand Down Expand Up @@ -130,6 +132,8 @@ pub trait DisplayExt: IsA<Display> + 'static {
}
}

#[cfg(target_os = "linux")]
#[cfg_attr(docsrs, doc(cfg(target_os = "linux")))]
#[cfg(feature = "v4_14")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
#[doc(alias = "gdk_display_get_dmabuf_formats")]
Expand Down
Loading
Loading