2022-09-08 16:45:29 +02:00
|
|
|
//! Safe bindings for the AppKit framework.
|
|
|
|
|
//!
|
|
|
|
|
//! These are split out from the rest of `winit` to make safety easier to review.
|
|
|
|
|
//! In the future, these should probably live in another crate like `cacao`.
|
|
|
|
|
//!
|
|
|
|
|
//! TODO: Main thread safety.
|
2022-09-02 21:02:40 +02:00
|
|
|
// Objective-C methods have different conventions, and it's much easier to
|
|
|
|
|
// understand if we just use the same names
|
|
|
|
|
#![allow(non_snake_case)]
|
2022-09-08 16:45:29 +02:00
|
|
|
#![allow(clippy::too_many_arguments)]
|
|
|
|
|
#![allow(clippy::enum_variant_names)]
|
|
|
|
|
#![allow(non_upper_case_globals)]
|
2022-09-02 18:46:18 +02:00
|
|
|
|
|
|
|
|
mod application;
|
2023-07-13 06:52:34 +00:00
|
|
|
mod tab_group;
|
2022-09-02 18:46:18 +02:00
|
|
|
mod window;
|
|
|
|
|
|
2022-09-08 16:45:29 +02:00
|
|
|
pub(crate) use self::application::{
|
|
|
|
|
NSApp, NSApplication, NSApplicationActivationPolicy, NSApplicationPresentationOptions,
|
|
|
|
|
NSRequestUserAttentionType,
|
|
|
|
|
};
|
2023-07-13 06:52:34 +00:00
|
|
|
pub(crate) use self::tab_group::NSWindowTabGroup;
|
2022-09-08 16:45:29 +02:00
|
|
|
pub(crate) use self::window::{
|
|
|
|
|
NSBackingStoreType, NSWindow, NSWindowButton, NSWindowLevel, NSWindowOcclusionState,
|
2023-12-23 20:58:38 +01:00
|
|
|
NSWindowSharingType, NSWindowStyleMask, NSWindowTabbingMode, NSWindowTitleVisibility,
|
2022-09-08 16:45:29 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#[link(name = "AppKit", kind = "framework")]
|
|
|
|
|
extern "C" {}
|