objc2_ui_kit/generated/
UIAccessibilityLocationDescriptor.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-core-foundation")]
6use objc2_core_foundation::*;
7use objc2_foundation::*;
8
9use crate::*;
10
11extern_class!(
12    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uiaccessibilitylocationdescriptor?language=objc)
13    #[unsafe(super(NSObject))]
14    #[thread_kind = MainThreadOnly]
15    #[derive(Debug, PartialEq, Eq, Hash)]
16    pub struct UIAccessibilityLocationDescriptor;
17);
18
19extern_conformance!(
20    unsafe impl NSObjectProtocol for UIAccessibilityLocationDescriptor {}
21);
22
23impl UIAccessibilityLocationDescriptor {
24    extern_methods!(
25        #[unsafe(method(init))]
26        #[unsafe(method_family = init)]
27        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
28
29        #[unsafe(method(new))]
30        #[unsafe(method_family = new)]
31        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
32
33        #[cfg(all(feature = "UIResponder", feature = "UIView"))]
34        #[unsafe(method(initWithName:view:))]
35        #[unsafe(method_family = init)]
36        pub unsafe fn initWithName_view(
37            this: Allocated<Self>,
38            name: &NSString,
39            view: &UIView,
40        ) -> Retained<Self>;
41
42        #[cfg(all(
43            feature = "UIResponder",
44            feature = "UIView",
45            feature = "objc2-core-foundation"
46        ))]
47        #[unsafe(method(initWithName:point:inView:))]
48        #[unsafe(method_family = init)]
49        pub unsafe fn initWithName_point_inView(
50            this: Allocated<Self>,
51            name: &NSString,
52            point: CGPoint,
53            view: &UIView,
54        ) -> Retained<Self>;
55
56        #[cfg(all(
57            feature = "UIResponder",
58            feature = "UIView",
59            feature = "objc2-core-foundation"
60        ))]
61        #[unsafe(method(initWithAttributedName:point:inView:))]
62        #[unsafe(method_family = init)]
63        pub unsafe fn initWithAttributedName_point_inView(
64            this: Allocated<Self>,
65            attributed_name: &NSAttributedString,
66            point: CGPoint,
67            view: &UIView,
68        ) -> Retained<Self>;
69
70        #[cfg(all(feature = "UIResponder", feature = "UIView"))]
71        #[unsafe(method(view))]
72        #[unsafe(method_family = none)]
73        pub unsafe fn view(&self) -> Option<Retained<UIView>>;
74
75        #[cfg(feature = "objc2-core-foundation")]
76        #[unsafe(method(point))]
77        #[unsafe(method_family = none)]
78        pub unsafe fn point(&self) -> CGPoint;
79
80        #[unsafe(method(name))]
81        #[unsafe(method_family = none)]
82        pub unsafe fn name(&self) -> Retained<NSString>;
83
84        #[unsafe(method(attributedName))]
85        #[unsafe(method_family = none)]
86        pub unsafe fn attributedName(&self) -> Retained<NSAttributedString>;
87    );
88}