objc2_tv_ui_kit/generated/
TVLockupView.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9#[cfg(feature = "objc2-quartz-core")]
10use objc2_quartz_core::*;
11use objc2_ui_kit::*;
12
13use crate::*;
14
15extern_protocol!(
16 pub unsafe trait TVLockupViewComponent: NSObjectProtocol {
20 #[optional]
27 #[unsafe(method(updateAppearanceForLockupViewState:))]
28 #[unsafe(method_family = none)]
29 unsafe fn updateAppearanceForLockupViewState(&self, state: UIControlState);
30 }
31);
32
33extern_class!(
34 #[unsafe(super(UIControl, UIView, UIResponder, NSObject))]
38 #[derive(Debug, PartialEq, Eq, Hash)]
39 pub struct TVLockupView;
40);
41
42#[cfg(feature = "objc2-quartz-core")]
43extern_conformance!(
44 unsafe impl CALayerDelegate for TVLockupView {}
45);
46
47extern_conformance!(
48 unsafe impl NSCoding for TVLockupView {}
49);
50
51extern_conformance!(
52 unsafe impl NSObjectProtocol for TVLockupView {}
53);
54
55extern_conformance!(
56 unsafe impl UIAppearance for TVLockupView {}
57);
58
59extern_conformance!(
60 unsafe impl UIAppearanceContainer for TVLockupView {}
61);
62
63extern_conformance!(
64 unsafe impl UICoordinateSpace for TVLockupView {}
65);
66
67extern_conformance!(
68 unsafe impl UIDynamicItem for TVLockupView {}
69);
70
71extern_conformance!(
72 unsafe impl UIFocusEnvironment for TVLockupView {}
73);
74
75extern_conformance!(
76 unsafe impl UIFocusItem for TVLockupView {}
77);
78
79extern_conformance!(
80 unsafe impl UIFocusItemContainer for TVLockupView {}
81);
82
83extern_conformance!(
84 unsafe impl UIResponderStandardEditActions for TVLockupView {}
85);
86
87extern_conformance!(
88 unsafe impl UITraitEnvironment for TVLockupView {}
89);
90
91impl TVLockupView {
92 extern_methods!(
93 #[unsafe(method(contentView))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn contentView(&self) -> Retained<UIView>;
99
100 #[cfg(feature = "objc2-core-foundation")]
101 #[unsafe(method(contentSize))]
105 #[unsafe(method_family = none)]
106 pub unsafe fn contentSize(&self) -> CGSize;
107
108 #[cfg(feature = "objc2-core-foundation")]
109 #[unsafe(method(setContentSize:))]
111 #[unsafe(method_family = none)]
112 pub unsafe fn setContentSize(&self, content_size: CGSize);
113
114 #[cfg(feature = "TVLockupHeaderFooterView")]
115 #[unsafe(method(headerView))]
119 #[unsafe(method_family = none)]
120 pub unsafe fn headerView(&self) -> Option<Retained<TVLockupHeaderFooterView>>;
121
122 #[cfg(feature = "TVLockupHeaderFooterView")]
123 #[unsafe(method(setHeaderView:))]
125 #[unsafe(method_family = none)]
126 pub unsafe fn setHeaderView(&self, header_view: Option<&TVLockupHeaderFooterView>);
127
128 #[cfg(feature = "TVLockupHeaderFooterView")]
129 #[unsafe(method(footerView))]
130 #[unsafe(method_family = none)]
131 pub unsafe fn footerView(&self) -> Option<Retained<TVLockupHeaderFooterView>>;
132
133 #[cfg(feature = "TVLockupHeaderFooterView")]
134 #[unsafe(method(setFooterView:))]
136 #[unsafe(method_family = none)]
137 pub unsafe fn setFooterView(&self, footer_view: Option<&TVLockupHeaderFooterView>);
138
139 #[unsafe(method(contentViewInsets))]
143 #[unsafe(method_family = none)]
144 pub unsafe fn contentViewInsets(&self) -> NSDirectionalEdgeInsets;
145
146 #[unsafe(method(setContentViewInsets:))]
148 #[unsafe(method_family = none)]
149 pub unsafe fn setContentViewInsets(&self, content_view_insets: NSDirectionalEdgeInsets);
150
151 #[unsafe(method(focusSizeIncrease))]
155 #[unsafe(method_family = none)]
156 pub unsafe fn focusSizeIncrease(&self) -> NSDirectionalEdgeInsets;
157
158 #[unsafe(method(setFocusSizeIncrease:))]
160 #[unsafe(method_family = none)]
161 pub unsafe fn setFocusSizeIncrease(&self, focus_size_increase: NSDirectionalEdgeInsets);
162 );
163}
164
165impl TVLockupView {
167 extern_methods!(
168 #[cfg(feature = "objc2-core-foundation")]
169 #[unsafe(method(initWithFrame:))]
170 #[unsafe(method_family = init)]
171 pub unsafe fn initWithFrame(this: Allocated<Self>, frame: CGRect) -> Retained<Self>;
172
173 #[unsafe(method(initWithCoder:))]
177 #[unsafe(method_family = init)]
178 pub unsafe fn initWithCoder(
179 this: Allocated<Self>,
180 coder: &NSCoder,
181 ) -> Option<Retained<Self>>;
182
183 #[cfg(feature = "objc2-core-foundation")]
184 #[unsafe(method(initWithFrame:primaryAction:))]
186 #[unsafe(method_family = init)]
187 pub unsafe fn initWithFrame_primaryAction(
188 this: Allocated<Self>,
189 frame: CGRect,
190 primary_action: Option<&UIAction>,
191 ) -> Retained<Self>;
192 );
193}
194
195impl TVLockupView {
197 extern_methods!(
198 #[unsafe(method(init))]
199 #[unsafe(method_family = init)]
200 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
201 );
202}
203
204impl TVLockupView {
206 extern_methods!(
207 #[unsafe(method(new))]
208 #[unsafe(method_family = new)]
209 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
210 );
211}