6
6
#![ allow( clippy:: upper_case_acronyms) ]
7
7
#![ cfg_attr( docsrs, feature( doc_cfg) ) ]
8
8
9
- extern crate libc;
10
-
11
- #[ cfg( feature = "xlib" ) ]
12
- extern crate x11;
13
-
14
- #[ cfg( all( windows, feature = "win32-surface" ) ) ]
15
- extern crate winapi as winapi_orig;
16
-
17
9
#[ cfg( all( windows, feature = "win32-surface" ) ) ]
18
10
#[ cfg_attr( docsrs, doc( cfg( all( windows, feature = "win32-surface" ) ) ) ) ]
19
- pub mod winapi {
20
- pub use winapi_orig :: shared :: windef :: HDC ;
11
+ pub mod windows {
12
+ pub use windows_sys :: Win32 :: Graphics :: Gdi :: HDC ;
21
13
}
22
14
23
15
#[ cfg( all( docsrs, not( all( windows, feature = "win32-surface" ) ) ) ) ]
24
16
#[ cfg_attr(
25
17
docsrs,
26
18
doc( cfg( all( docsrs, not( all( windows, feature = "win32-surface" ) ) ) ) )
27
19
) ]
28
- pub mod winapi {
20
+ pub mod windows {
29
21
use libc:: c_void;
30
22
31
23
#[ repr( C ) ]
@@ -1472,11 +1464,11 @@ extern "C" {
1472
1464
// CAIRO WINDOWS SURFACE
1473
1465
#[ cfg( all( windows, feature = "win32-surface" ) ) ]
1474
1466
#[ cfg_attr( docsrs, doc( cfg( all( windows, feature = "win32-surface" ) ) ) ) ]
1475
- pub fn cairo_win32_surface_create ( hdc : winapi :: HDC ) -> * mut cairo_surface_t ;
1467
+ pub fn cairo_win32_surface_create ( hdc : windows :: HDC ) -> * mut cairo_surface_t ;
1476
1468
#[ cfg( all( windows, feature = "win32-surface" ) ) ]
1477
1469
#[ cfg_attr( docsrs, doc( cfg( all( windows, feature = "win32-surface" ) ) ) ) ]
1478
1470
pub fn cairo_win32_surface_create_with_format (
1479
- hdc : winapi :: HDC ,
1471
+ hdc : windows :: HDC ,
1480
1472
format : cairo_format_t ,
1481
1473
) -> * mut cairo_surface_t ;
1482
1474
#[ cfg( all( windows, feature = "win32-surface" ) ) ]
@@ -1489,17 +1481,17 @@ extern "C" {
1489
1481
#[ cfg( all( windows, feature = "win32-surface" ) ) ]
1490
1482
#[ cfg_attr( docsrs, doc( cfg( all( windows, feature = "win32-surface" ) ) ) ) ]
1491
1483
pub fn cairo_win32_surface_create_with_ddb (
1492
- hdc : winapi :: HDC ,
1484
+ hdc : windows :: HDC ,
1493
1485
format : cairo_format_t ,
1494
1486
width : c_int ,
1495
1487
height : c_int ,
1496
1488
) -> * mut cairo_surface_t ;
1497
1489
#[ cfg( all( windows, feature = "win32-surface" ) ) ]
1498
1490
#[ cfg_attr( docsrs, doc( cfg( all( windows, feature = "win32-surface" ) ) ) ) ]
1499
- pub fn cairo_win32_printing_surface_create ( hdc : winapi :: HDC ) -> * mut cairo_surface_t ;
1491
+ pub fn cairo_win32_printing_surface_create ( hdc : windows :: HDC ) -> * mut cairo_surface_t ;
1500
1492
#[ cfg( all( windows, feature = "win32-surface" ) ) ]
1501
1493
#[ cfg_attr( docsrs, doc( cfg( all( windows, feature = "win32-surface" ) ) ) ) ]
1502
- pub fn cairo_win32_surface_get_dc ( surface : * mut cairo_surface_t ) -> winapi :: HDC ;
1494
+ pub fn cairo_win32_surface_get_dc ( surface : * mut cairo_surface_t ) -> windows :: HDC ;
1503
1495
#[ cfg( all( windows, feature = "win32-surface" ) ) ]
1504
1496
#[ cfg_attr( docsrs, doc( cfg( all( windows, feature = "win32-surface" ) ) ) ) ]
1505
1497
pub fn cairo_win32_surface_get_image ( surface : * mut cairo_surface_t ) -> * mut cairo_surface_t ;
0 commit comments