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
19unsafe impl NSObjectProtocol for UIAccessibilityLocationDescriptor {}
20
21impl UIAccessibilityLocationDescriptor {
22    extern_methods!(
23        #[unsafe(method(init))]
24        #[unsafe(method_family = init)]
25        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
26
27        #[unsafe(method(new))]
28        #[unsafe(method_family = new)]
29        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
30
31        #[cfg(all(feature = "UIResponder", feature = "UIView"))]
32        #[unsafe(method(initWithName:view:))]
33        #[unsafe(method_family = init)]
34        pub unsafe fn initWithName_view(
35            this: Allocated<Self>,
36            name: &NSString,
37            view: &UIView,
38        ) -> Retained<Self>;
39
40        #[cfg(all(
41            feature = "UIResponder",
42            feature = "UIView",
43            feature = "objc2-core-foundation"
44        ))]
45        #[unsafe(method(initWithName:point:inView:))]
46        #[unsafe(method_family = init)]
47        pub unsafe fn initWithName_point_inView(
48            this: Allocated<Self>,
49            name: &NSString,
50            point: CGPoint,
51            view: &UIView,
52        ) -> Retained<Self>;
53
54        #[cfg(all(
55            feature = "UIResponder",
56            feature = "UIView",
57            feature = "objc2-core-foundation"
58        ))]
59        #[unsafe(method(initWithAttributedName:point:inView:))]
60        #[unsafe(method_family = init)]
61        pub unsafe fn initWithAttributedName_point_inView(
62            this: Allocated<Self>,
63            attributed_name: &NSAttributedString,
64            point: CGPoint,
65            view: &UIView,
66        ) -> Retained<Self>;
67
68        #[cfg(all(feature = "UIResponder", feature = "UIView"))]
69        #[unsafe(method(view))]
70        #[unsafe(method_family = none)]
71        pub unsafe fn view(&self) -> Option<Retained<UIView>>;
72
73        #[cfg(feature = "objc2-core-foundation")]
74        #[unsafe(method(point))]
75        #[unsafe(method_family = none)]
76        pub unsafe fn point(&self) -> CGPoint;
77
78        #[unsafe(method(name))]
79        #[unsafe(method_family = none)]
80        pub unsafe fn name(&self) -> Retained<NSString>;
81
82        #[unsafe(method(attributedName))]
83        #[unsafe(method_family = none)]
84        pub unsafe fn attributedName(&self) -> Retained<NSAttributedString>;
85    );
86}