objc2_ar_kit/generated/
ARTrackedRaycast.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5#[cfg(feature = "objc2")]
6use objc2::__framework_prelude::*;
7
8use crate::*;
9
10#[cfg(feature = "objc2")]
11extern_class!(
12    /// A tracked raycast representation.
13    ///
14    /// See also [Apple's documentation](https://developer.apple.com/documentation/arkit/artrackedraycast?language=objc)
15    #[unsafe(super(NSObject))]
16    #[derive(Debug, PartialEq, Eq, Hash)]
17    #[cfg(feature = "objc2")]
18    pub struct ARTrackedRaycast;
19);
20
21#[cfg(feature = "objc2")]
22unsafe impl NSObjectProtocol for ARTrackedRaycast {}
23
24#[cfg(feature = "objc2")]
25impl ARTrackedRaycast {
26    extern_methods!(
27        /// Stop raycasting.
28        ///
29        /// The raycast will be continuously tracked until stopped.
30        /// Resetting session's tracking, changing its configuration or deallocation of ARTrackedRaycast object cause the raycast to stop.
31        #[unsafe(method(stopTracking))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn stopTracking(&self);
34
35        #[unsafe(method(init))]
36        #[unsafe(method_family = init)]
37        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
38
39        #[unsafe(method(new))]
40        #[unsafe(method_family = new)]
41        pub unsafe fn new(&self) -> Retained<Self>;
42    );
43}
44
45/// Methods declared on superclass `NSObject`.
46#[cfg(feature = "objc2")]
47impl ARTrackedRaycast {
48    extern_methods!(
49        #[unsafe(method(new))]
50        #[unsafe(method_family = new)]
51        pub unsafe fn new_class() -> Retained<Self>;
52    );
53}