Skip to content

Commit 015126b

Browse files
Regenerate with latest gir-files
1 parent a99b042 commit 015126b

File tree

14 files changed

+62
-35
lines changed

14 files changed

+62
-35
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 @ 0f2c059e0939)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 133ee1d93c85)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)

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 @ 0f2c059e0939)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 133ee1d93c85)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)

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 @ 0f2c059e0939)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 133ee1d93c85)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)

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 @ 0f2c059e0939)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 133ee1d93c85)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)

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 @ 0f2c059e0939)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 133ee1d93c85)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)

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 @ 0f2c059e0939)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 133ee1d93c85)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)

gdk4/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 @ 0f2c059e0939)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 133ee1d93c85)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)

gdk4/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 @ 0f2c059e0939)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 133ee1d93c85)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)

gsk4/src/auto/path.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,23 @@ impl Path {
3636

3737
#[doc(alias = "gsk_path_get_closest_point")]
3838
#[doc(alias = "get_closest_point")]
39-
pub fn closest_point(&self, point: &graphene::Point, threshold: f32) -> Option<PathPoint> {
39+
pub fn closest_point(
40+
&self,
41+
point: &graphene::Point,
42+
threshold: f32,
43+
) -> Option<(PathPoint, f32)> {
4044
unsafe {
4145
let mut result = PathPoint::uninitialized();
46+
let mut distance = std::mem::MaybeUninit::uninit();
4247
let ret = from_glib(ffi::gsk_path_get_closest_point(
4348
self.to_glib_none().0,
4449
point.to_glib_none().0,
4550
threshold,
4651
result.to_glib_none_mut().0,
52+
distance.as_mut_ptr(),
4753
));
4854
if ret {
49-
Some(result)
55+
Some((result, distance.assume_init()))
5056
} else {
5157
None
5258
}

gsk4/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 @ 0f2c059e0939)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 615ef8fb32f2)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 133ee1d93c85)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 326eb5f2d5d8)

0 commit comments

Comments
 (0)