Debian Codegraph @

third_party/rust/core-graphics/src/sys.rs

raw
1 use std::os::raw::c_void;
2
3 pub enum CGImage {}
4 pub type CGImageRef = *mut CGImage;
5
6 #[repr(C)]
7 pub struct __CGColor(c_void);
8
9 pub type CGColorRef = *const __CGColor;
10
11 pub enum CGColorSpace {}
12 pub type CGColorSpaceRef = *mut CGColorSpace;
13
14 pub enum CGPath {}
15 pub type CGPathRef = *mut CGPath;
16
17 pub enum CGDataProvider {}
18 pub type CGDataProviderRef = *mut CGDataProvider;
19
20 pub enum CGFont {}
21 pub type CGFontRef = *mut CGFont;
22
23 pub enum CGContext {}
24 pub type CGContextRef = *mut CGContext;
25
26 pub enum CGGradient {}
27 pub type CGGradientRef = *mut CGGradient;
28
29 #[cfg(target_os = "macos")]
30 mod macos {
31 pub enum CGEventTap {}
32 pub type CGEventTapRef = core_foundation::mach_port::CFMachPortRef;
33 pub enum CGEvent {}
34 pub type CGEventRef = *mut CGEvent;
35
36 pub enum CGEventSource {}
37 pub type CGEventSourceRef = *mut CGEventSource;
38
39 pub enum CGDisplayMode {}
40 pub type CGDisplayModeRef = *mut CGDisplayMode;
41 }
42
43 #[cfg(target_os = "macos")]
44 pub use self::macos::*;