objc2-ar-kit 0.3.2

Bindings to the ARKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
#[cfg(feature = "objc2")]
use objc2::__framework_prelude::*;

use crate::*;

#[cfg(feature = "objc2")]
extern_class!(
    /// A tracked raycast representation.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/arkit/artrackedraycast?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "objc2")]
    pub struct ARTrackedRaycast;
);

#[cfg(feature = "objc2")]
extern_conformance!(
    unsafe impl NSObjectProtocol for ARTrackedRaycast {}
);

#[cfg(feature = "objc2")]
impl ARTrackedRaycast {
    extern_methods!(
        /// Stop raycasting.
        ///
        /// The raycast will be continuously tracked until stopped.
        /// Resetting session's tracking, changing its configuration or deallocation of ARTrackedRaycast object cause the raycast to stop.
        #[unsafe(method(stopTracking))]
        #[unsafe(method_family = none)]
        pub unsafe fn stopTracking(&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(&self) -> Retained<Self>;
    );
}

/// Methods declared on superclass `NSObject`.
#[cfg(feature = "objc2")]
impl ARTrackedRaycast {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new_class() -> Retained<Self>;
    );
}