@@ -8,15 +8,13 @@ use std::{ffi::CString, fmt, mem::MaybeUninit, ops, ptr, slice};
8
8
use glib:: translate:: * ;
9
9
10
10
use crate :: {
11
- ffi:: { cairo_rectangle_list_t, cairo_t} ,
12
- utils:: status_to_result,
13
- Antialias , Content , Error , FillRule , FontExtents , FontFace , FontOptions , FontSlant , FontWeight ,
14
- Glyph , LineCap , LineJoin , Matrix , Operator , Path , Pattern , Rectangle , ScaledFont , Surface ,
15
- TextCluster , TextClusterFlags , TextExtents ,
11
+ ffi, utils:: status_to_result, Antialias , Content , Error , FillRule , FontExtents , FontFace ,
12
+ FontOptions , FontSlant , FontWeight , Glyph , LineCap , LineJoin , Matrix , Operator , Path , Pattern ,
13
+ Rectangle , ScaledFont , Surface , TextCluster , TextClusterFlags , TextExtents ,
16
14
} ;
17
15
18
16
pub struct RectangleList {
19
- ptr : * mut cairo_rectangle_list_t ,
17
+ ptr : * mut ffi :: cairo_rectangle_list_t ,
20
18
}
21
19
22
20
impl ops:: Deref for RectangleList {
@@ -55,7 +53,7 @@ impl fmt::Debug for RectangleList {
55
53
56
54
#[ derive( Debug ) ]
57
55
#[ repr( transparent) ]
58
- pub struct Context ( ptr:: NonNull < cairo_t > ) ;
56
+ pub struct Context ( ptr:: NonNull < ffi :: cairo_t > ) ;
59
57
60
58
#[ cfg( feature = "use_glib" ) ]
61
59
#[ cfg_attr( docsrs, doc( cfg( feature = "use_glib" ) ) ) ]
@@ -112,7 +110,7 @@ impl FromGlibPtrFull<*mut ffi::cairo_t> for Context {
112
110
#[ cfg( feature = "use_glib" ) ]
113
111
gvalue_impl ! (
114
112
Context ,
115
- cairo_t,
113
+ ffi :: cairo_t,
116
114
ffi:: gobject:: cairo_gobject_context_get_type
117
115
) ;
118
116
0 commit comments