//! Low-level official macOS Cocoa platform backend.
//!
//! # Safety
//!
//! Call on the Cocoa main thread with the intended Dear ImGui context current and a live
//! `NSView*` attached to the application's window. Keep the view/window alive until shutdown
//! returns, serialize backend calls, and shut down before destroying the context. The application
//! owns its event loop and autorelease pool. Input is handled by the upstream backend's view/event
//! hooks; no obsolete `ImGui_ImplOSX_HandleEvent` API is exposed.
//! Upstream multi-viewport limitations still apply (decorations and parent viewport handling).
use c_void;
unsafe extern "C"