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")]
22extern_conformance!(
23    unsafe impl NSObjectProtocol for ARTrackedRaycast {}
24);
25
26#[cfg(feature = "objc2")]
27impl ARTrackedRaycast {
28    extern_methods!(
29        /// Stop raycasting.
30        ///
31        /// The raycast will be continuously tracked until stopped.
32        /// Resetting session's tracking, changing its configuration or deallocation of ARTrackedRaycast object cause the raycast to stop.
33        #[unsafe(method(stopTracking))]
34        #[unsafe(method_family = none)]
35        pub unsafe fn stopTracking(&self);
36
37        #[unsafe(method(init))]
38        #[unsafe(method_family = init)]
39        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
40
41        #[unsafe(method(new))]
42        #[unsafe(method_family = new)]
43        pub unsafe fn new(&self) -> Retained<Self>;
44    );
45}
46
47/// Methods declared on superclass `NSObject`.
48#[cfg(feature = "objc2")]
49impl ARTrackedRaycast {
50    extern_methods!(
51        #[unsafe(method(new))]
52        #[unsafe(method_family = new)]
53        pub unsafe fn new_class() -> Retained<Self>;
54    );
55}