Source code

Revision control

Copy as Markdown

Other Tools

//! # Bindings to the `CoreGraphics` framework
//!
//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information.
//!
#![no_std]
#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))]
#![cfg_attr(docsrs, feature(doc_cfg))]
// Update in Cargo.toml as well.
#![doc(html_root_url = "https://docs.rs/objc2-core-graphics/0.3.2")]
#[cfg(feature = "alloc")]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
#[cfg(feature = "CGBitmapContext")]
mod bitmap_context;
mod generated;
#[cfg(feature = "CGImage")]
mod image;
mod thread_safety;
#[cfg(feature = "CGBitmapContext")]
#[allow(unused_imports, unreachable_pub)]
pub use self::bitmap_context::*;
#[allow(unused_imports, unreachable_pub)]
pub use self::generated::*;
#[allow(dead_code)]
pub(crate) type UniCharCount = core::ffi::c_ulong;
#[allow(dead_code)]
pub(crate) type UniChar = u16;
#[allow(non_upper_case_globals)]
#[cfg(feature = "CGWindowLevel")]
pub const kCGNumReservedWindowLevels: i32 = 16;
#[allow(non_upper_case_globals)]
#[cfg(feature = "CGWindowLevel")]
pub const kCGNumReservedBaseWindowLevels: i32 = 5;
#[allow(non_upper_case_globals)]
#[cfg(feature = "CGWindowLevel")]
pub const kCGBaseWindowLevel: CGWindowLevel = i32::MIN;
#[allow(non_upper_case_globals)]
#[cfg(feature = "CGWindowLevel")]
pub const kCGMinimumWindowLevel: CGWindowLevel =
kCGBaseWindowLevel + kCGNumReservedBaseWindowLevels;
#[allow(non_upper_case_globals)]
#[cfg(feature = "CGWindowLevel")]
pub const kCGMaximumWindowLevel: CGWindowLevel = i32::MAX - kCGNumReservedWindowLevels;