objc2_app_kit/generated/
NSFileWrapperExtensions.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9mod private_NSFileWrapperNSExtensions {
10    pub trait Sealed {}
11}
12
13/// Category "NSExtensions" on [`NSFileWrapper`].
14#[doc(alias = "NSExtensions")]
15pub unsafe trait NSFileWrapperNSExtensions:
16    ClassType + Sized + private_NSFileWrapperNSExtensions::Sealed
17{
18    extern_methods!(
19        #[cfg(feature = "NSImage")]
20        #[unsafe(method(icon))]
21        #[unsafe(method_family = none)]
22        unsafe fn icon(&self) -> Option<Retained<NSImage>>;
23
24        #[cfg(feature = "NSImage")]
25        /// Setter for [`icon`][Self::icon].
26        #[unsafe(method(setIcon:))]
27        #[unsafe(method_family = none)]
28        unsafe fn setIcon(&self, icon: Option<&NSImage>);
29    );
30}
31
32impl private_NSFileWrapperNSExtensions::Sealed for NSFileWrapper {}
33unsafe impl NSFileWrapperNSExtensions for NSFileWrapper {}