core_graphics2/
lib.rs

1#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, improper_ctypes)]
2
3#[macro_use]
4extern crate bitflags;
5extern crate block;
6#[macro_use]
7extern crate cfg_if;
8#[macro_use]
9extern crate core_foundation;
10#[cfg(all(target_os = "macos", feature = "dispatch2"))]
11extern crate dispatch2;
12#[cfg(all(target_os = "macos", feature = "io-surface"))]
13extern crate io_surface;
14extern crate libc;
15#[cfg(all(target_os = "macos", feature = "metal"))]
16extern crate metal;
17#[cfg(feature = "objc")]
18extern crate objc2;
19
20#[cfg_attr(feature = "link", link(name = "CoreGraphics", kind = "framework"))]
21extern "C" {}
22
23pub mod affine_transform;
24pub mod base;
25pub mod bitmap_context;
26pub mod color;
27pub mod color_conversion_info;
28pub mod color_space;
29pub mod context;
30pub mod data_provider;
31cfg_if!(
32    if #[cfg(all(target_os = "macos", feature = "display"))] {
33        pub mod direct_display;
34        pub mod display;
35        pub mod display_configuration;
36        pub mod display_fade;
37    }
38);
39#[cfg(all(target_os = "macos", feature = "display", feature = "metal"))]
40pub mod direct_display_metal;
41#[cfg(all(target_os = "macos", feature = "display-stream", feature = "objc"))]
42pub mod display_stream;
43pub mod error;
44cfg_if!(
45    if #[cfg(all(target_os = "macos", feature = "event"))] {
46        pub mod event;
47        pub mod event_source;
48        pub mod event_types;
49    }
50);
51pub mod font;
52pub mod function;
53pub mod geometry;
54pub mod gradient;
55pub mod image;
56pub mod layer;
57pub mod path;
58pub mod pattern;
59#[cfg(all(target_os = "macos", any(feature = "display", feature = "event")))]
60pub mod remote_operation;
61pub mod shading;
62cfg_if!(
63    if #[cfg(all(target_os = "macos", feature = "window"))] {
64        pub mod window;
65        pub mod window_level;
66    }
67);