objc2_accessibility/generated/
AXColorUtilities.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-core-graphics")]
6use objc2_core_graphics::*;
7use objc2_foundation::*;
8
9use crate::*;
10
11#[cfg(feature = "objc2-core-graphics")]
12#[inline]
13pub unsafe extern "C-unwind" fn AXNameFromColor(color: &CGColor) -> Retained<NSString> {
14    extern "C-unwind" {
15        fn AXNameFromColor(color: &CGColor) -> *mut NSString;
16    }
17    let ret = unsafe { AXNameFromColor(color) };
18    unsafe { Retained::retain_autoreleased(ret) }
19        .expect("function was marked as returning non-null, but actually returned NULL")
20}