File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
// Take a look at the license at the top of the repository in the LICENSE file.
2
2
3
- use crate :: { Path , PathPoint } ;
3
+ use crate :: { Path , PathDirection , PathPoint } ;
4
4
use glib:: translate:: * ;
5
5
6
6
impl PathPoint {
7
7
#[ doc( alias = "gsk_path_point_get_curvature" ) ]
8
8
#[ doc( alias = "get_curvature" ) ]
9
- pub fn curvature ( & self , path : & Path ) -> ( f32 , Option < graphene:: Point > ) {
9
+ pub fn curvature (
10
+ & self ,
11
+ path : & Path ,
12
+ direction : PathDirection ,
13
+ ) -> ( f32 , Option < graphene:: Point > ) {
10
14
unsafe {
11
15
let mut center = graphene:: Point :: uninitialized ( ) ;
12
16
let ret = ffi:: gsk_path_point_get_curvature (
13
17
self . to_glib_none ( ) . 0 ,
14
18
path. to_glib_none ( ) . 0 ,
19
+ direction. into_glib ( ) ,
15
20
center. to_glib_none_mut ( ) . 0 ,
16
21
) ;
17
22
You can’t perform that action at this time.
0 commit comments