objc2_ar_kit/generated/
ARReferenceImage.rs1use core::ffi::*;
4use core::ptr::NonNull;
5#[cfg(feature = "objc2")]
6use objc2::__framework_prelude::*;
7#[cfg(feature = "objc2-core-foundation")]
8use objc2_core_foundation::*;
9#[cfg(feature = "objc2-foundation")]
10use objc2_foundation::*;
11
12use crate::*;
13
14#[cfg(feature = "objc2")]
15extern_class!(
16 #[unsafe(super(NSObject))]
20 #[derive(Debug, PartialEq, Eq, Hash)]
21 #[cfg(feature = "objc2")]
22 pub struct ARReferenceImage;
23);
24
25#[cfg(feature = "objc2")]
26unsafe impl Send for ARReferenceImage {}
27
28#[cfg(feature = "objc2")]
29unsafe impl Sync for ARReferenceImage {}
30
31#[cfg(feature = "objc2")]
32extern_conformance!(
33 unsafe impl NSObjectProtocol for ARReferenceImage {}
34);
35
36#[cfg(feature = "objc2")]
37impl ARReferenceImage {
38 extern_methods!(
39 #[cfg(feature = "objc2-foundation")]
40 #[unsafe(method(name))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn name(&self) -> Option<Retained<NSString>>;
44
45 #[cfg(feature = "objc2-foundation")]
46 #[unsafe(method(setName:))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn setName(&self, name: Option<&NSString>);
50
51 #[cfg(feature = "objc2-core-foundation")]
52 #[unsafe(method(physicalSize))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn physicalSize(&self) -> CGSize;
56
57 #[cfg(feature = "objc2-foundation")]
58 #[unsafe(method(resourceGroupName))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn resourceGroupName(&self) -> Option<Retained<NSString>>;
65
66 #[cfg(all(feature = "block2", feature = "objc2-foundation"))]
67 #[unsafe(method(validateWithCompletionHandler:))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn validateWithCompletionHandler(
77 &self,
78 completion_handler: &block2::DynBlock<dyn Fn(*mut NSError)>,
79 );
80
81 #[cfg(feature = "objc2-foundation")]
82 #[unsafe(method(referenceImagesInGroupNamed:bundle:))]
91 #[unsafe(method_family = none)]
92 pub unsafe fn referenceImagesInGroupNamed_bundle(
93 name: &NSString,
94 bundle: Option<&NSBundle>,
95 ) -> Option<Retained<NSSet<ARReferenceImage>>>;
96
97 #[unsafe(method(init))]
99 #[unsafe(method_family = init)]
100 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
101
102 #[unsafe(method(new))]
103 #[unsafe(method_family = new)]
104 pub unsafe fn new() -> Retained<Self>;
105 );
106}