1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
use std::os::raw::c_void;

pub enum CGImage {}
pub type CGImageRef = *mut CGImage;

#[repr(C)]
pub struct __CGColor(c_void);

pub type CGColorRef = *const __CGColor;

pub enum CGColorSpace {}
pub type CGColorSpaceRef = *mut CGColorSpace;

pub enum CGPath {}
pub type CGPathRef = *mut CGPath;

pub enum CGDataProvider {}
pub type CGDataProviderRef = *mut CGDataProvider;

pub enum CGFont {}
pub type CGFontRef = *mut CGFont;

pub enum CGContext {}
pub type CGContextRef = *mut CGContext;

pub enum CGGradient {}
pub type CGGradientRef = *mut CGGradient;

#[cfg(target_os = "macos")]
mod macos {
	pub enum CGEvent {}
	pub type CGEventRef = *mut CGEvent;

	pub enum CGEventSource {}
	pub type CGEventSourceRef = *mut CGEventSource;

	pub enum CGDisplayMode {}
	pub type CGDisplayModeRef = *mut CGDisplayMode;
}

#[cfg(target_os = "macos")]
pub use self::macos::*;