//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-symbols")]
use objc2_symbols::*;

use crate::*;

extern_class!(
    /// Represents a symbol content transition and options.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uisymbolcontenttransition?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct UISymbolContentTransition;
);

unsafe impl Send for UISymbolContentTransition {}

unsafe impl Sync for UISymbolContentTransition {}

extern_conformance!(
    unsafe impl NSCoding for UISymbolContentTransition {}
);

extern_conformance!(
    unsafe impl NSCopying for UISymbolContentTransition {}
);

unsafe impl CopyingHelper for UISymbolContentTransition {
    type Result = Self;
}

extern_conformance!(
    unsafe impl NSObjectProtocol for UISymbolContentTransition {}
);

extern_conformance!(
    unsafe impl NSSecureCoding for UISymbolContentTransition {}
);

impl UISymbolContentTransition {
    extern_methods!(
        #[cfg(feature = "objc2-symbols")]
        /// The symbol content transition.
        ///
        /// This property is not atomic.
        ///
        /// # Safety
        ///
        /// This might not be thread-safe.
        #[unsafe(method(contentTransition))]
        #[unsafe(method_family = none)]
        pub unsafe fn contentTransition(&self) -> Retained<NSSymbolContentTransition>;

        #[cfg(feature = "objc2-symbols")]
        /// Options for the symbol content transition.
        ///
        /// This property is not atomic.
        ///
        /// # Safety
        ///
        /// This might not be thread-safe.
        #[unsafe(method(options))]
        #[unsafe(method_family = none)]
        pub unsafe fn options(&self) -> Retained<NSSymbolEffectOptions>;

        #[cfg(feature = "objc2-symbols")]
        /// Initializes a `UISymbolContentTransition` with a symbol content transition.
        #[unsafe(method(transitionWithContentTransition:))]
        #[unsafe(method_family = none)]
        pub fn transitionWithContentTransition(
            content_transition: &NSSymbolContentTransition,
        ) -> Retained<Self>;

        #[cfg(feature = "objc2-symbols")]
        /// Initializes a `UISymbolContentTransition` with a symbol content transition and options.
        #[unsafe(method(transitionWithContentTransition:options:))]
        #[unsafe(method_family = none)]
        pub fn transitionWithContentTransition_options(
            content_transition: &NSSymbolContentTransition,
            options: &NSSymbolEffectOptions,
        ) -> Retained<Self>;

        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}
