objc2_tv_ui_kit/generated/
TVLockupHeaderFooterView.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use 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_class!(
16    /// A header or footer view to be used in TVLockupView.
17    ///
18    /// See also [Apple's documentation](https://developer.apple.com/documentation/tvuikit/tvlockupheaderfooterview?language=objc)
19    #[unsafe(super(UIView, UIResponder, NSObject))]
20    #[derive(Debug, PartialEq, Eq, Hash)]
21    pub struct TVLockupHeaderFooterView;
22);
23
24#[cfg(feature = "objc2-quartz-core")]
25extern_conformance!(
26    unsafe impl CALayerDelegate for TVLockupHeaderFooterView {}
27);
28
29extern_conformance!(
30    unsafe impl NSCoding for TVLockupHeaderFooterView {}
31);
32
33extern_conformance!(
34    unsafe impl NSObjectProtocol for TVLockupHeaderFooterView {}
35);
36
37#[cfg(feature = "TVLockupView")]
38extern_conformance!(
39    unsafe impl TVLockupViewComponent for TVLockupHeaderFooterView {}
40);
41
42extern_conformance!(
43    unsafe impl UIAppearance for TVLockupHeaderFooterView {}
44);
45
46extern_conformance!(
47    unsafe impl UIAppearanceContainer for TVLockupHeaderFooterView {}
48);
49
50extern_conformance!(
51    unsafe impl UICoordinateSpace for TVLockupHeaderFooterView {}
52);
53
54extern_conformance!(
55    unsafe impl UIDynamicItem for TVLockupHeaderFooterView {}
56);
57
58extern_conformance!(
59    unsafe impl UIFocusEnvironment for TVLockupHeaderFooterView {}
60);
61
62extern_conformance!(
63    unsafe impl UIFocusItem for TVLockupHeaderFooterView {}
64);
65
66extern_conformance!(
67    unsafe impl UIFocusItemContainer for TVLockupHeaderFooterView {}
68);
69
70extern_conformance!(
71    unsafe impl UIResponderStandardEditActions for TVLockupHeaderFooterView {}
72);
73
74extern_conformance!(
75    unsafe impl UITraitEnvironment for TVLockupHeaderFooterView {}
76);
77
78impl TVLockupHeaderFooterView {
79    extern_methods!(
80        #[unsafe(method(titleLabel))]
81        #[unsafe(method_family = none)]
82        pub unsafe fn titleLabel(&self) -> Option<Retained<UILabel>>;
83
84        #[unsafe(method(subtitleLabel))]
85        #[unsafe(method_family = none)]
86        pub unsafe fn subtitleLabel(&self) -> Option<Retained<UILabel>>;
87
88        /// Determines whether headerFooterView should be hidden when its ancestor is not in focus
89        ///
90        /// It will always be shown when in focus regardless of this setting.
91        #[unsafe(method(showsOnlyWhenAncestorFocused))]
92        #[unsafe(method_family = none)]
93        pub unsafe fn showsOnlyWhenAncestorFocused(&self) -> bool;
94
95        /// Setter for [`showsOnlyWhenAncestorFocused`][Self::showsOnlyWhenAncestorFocused].
96        #[unsafe(method(setShowsOnlyWhenAncestorFocused:))]
97        #[unsafe(method_family = none)]
98        pub unsafe fn setShowsOnlyWhenAncestorFocused(
99            &self,
100            shows_only_when_ancestor_focused: bool,
101        );
102    );
103}
104
105/// Methods declared on superclass `UIView`.
106impl TVLockupHeaderFooterView {
107    extern_methods!(
108        #[cfg(feature = "objc2-core-foundation")]
109        #[unsafe(method(initWithFrame:))]
110        #[unsafe(method_family = init)]
111        pub unsafe fn initWithFrame(this: Allocated<Self>, frame: CGRect) -> Retained<Self>;
112
113        /// # Safety
114        ///
115        /// `coder` possibly has further requirements.
116        #[unsafe(method(initWithCoder:))]
117        #[unsafe(method_family = init)]
118        pub unsafe fn initWithCoder(
119            this: Allocated<Self>,
120            coder: &NSCoder,
121        ) -> Option<Retained<Self>>;
122
123        #[unsafe(method(init))]
124        #[unsafe(method_family = init)]
125        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
126    );
127}
128
129/// Methods declared on superclass `NSObject`.
130impl TVLockupHeaderFooterView {
131    extern_methods!(
132        #[unsafe(method(new))]
133        #[unsafe(method_family = new)]
134        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
135    );
136}