core_graphics/
sys.rs

1use core::ffi::c_void;
2
3pub enum CGImage {}
4pub type CGImageRef = *mut CGImage;
5
6#[repr(C)]
7pub struct __CGColor(c_void);
8
9pub type CGColorRef = *const __CGColor;
10
11pub enum CGColorSpace {}
12pub type CGColorSpaceRef = *mut CGColorSpace;
13
14pub enum CGPath {}
15pub type CGPathRef = *mut CGPath;
16
17pub enum CGDataProvider {}
18pub type CGDataProviderRef = *mut CGDataProvider;
19
20pub enum CGFont {}
21pub type CGFontRef = *mut CGFont;
22
23pub enum CGContext {}
24pub type CGContextRef = *mut CGContext;
25
26pub enum CGGradient {}
27pub type CGGradientRef = *mut CGGradient;
28
29#[cfg(target_os = "macos")]
30mod 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")]
44pub use self::macos::*;