@@ -5,24 +5,25 @@ use glib::translate::*;
5
5
6
6
impl Path {
7
7
#[ doc( alias = "gsk_path_foreach" ) ]
8
- pub fn foreach < P : FnMut ( & PathOperation , & graphene:: Point , usize ) -> bool > (
8
+ pub fn foreach < P : FnMut ( & PathOperation , & graphene:: Point , usize , f32 ) -> bool > (
9
9
& self ,
10
10
flags : PathForeachFlags ,
11
11
func : P ,
12
12
) -> bool {
13
13
let func_data: P = func;
14
14
unsafe extern "C" fn func_func <
15
- P : FnMut ( & PathOperation , & graphene:: Point , usize ) -> bool ,
15
+ P : FnMut ( & PathOperation , & graphene:: Point , usize , f32 ) -> bool ,
16
16
> (
17
17
op : ffi:: GskPathOperation ,
18
18
pts : * const graphene:: ffi:: graphene_point_t ,
19
19
n_pts : libc:: size_t ,
20
+ weight : libc:: c_float ,
20
21
user_data : glib:: ffi:: gpointer ,
21
22
) -> glib:: ffi:: gboolean {
22
23
let op = from_glib ( op) ;
23
24
let pts = from_glib_borrow ( pts) ;
24
25
let callback: * mut P = user_data as * const _ as usize as * mut P ;
25
- ( * callback) ( & op, & pts, n_pts) . into_glib ( )
26
+ ( * callback) ( & op, & pts, n_pts, weight ) . into_glib ( )
26
27
}
27
28
let func = Some ( func_func :: < P > as _ ) ;
28
29
let super_callback0: & P = & func_data;
0 commit comments