objc2_tv_services/generated/
TVTopShelfInsetContent.rs1use 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 #[unsafe(super(NSObject))]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 pub struct TVTopShelfInsetContent;
18);
19
20extern_conformance!(
21 unsafe impl NSObjectProtocol for TVTopShelfInsetContent {}
22);
23
24#[cfg(feature = "TVTopShelfContent")]
25extern_conformance!(
26 unsafe impl TVTopShelfContent for TVTopShelfInsetContent {}
27);
28
29impl TVTopShelfInsetContent {
30 extern_methods!(
31 #[cfg(all(feature = "TVTopShelfItem", feature = "TVTopShelfObject"))]
32 #[unsafe(method(items))]
34 #[unsafe(method_family = none)]
35 pub unsafe fn items(&self) -> Retained<NSArray<TVTopShelfItem>>;
36
37 #[cfg(feature = "objc2-core-foundation")]
38 #[unsafe(method(imageSize))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn imageSize() -> CGSize;
42
43 #[cfg(all(feature = "TVTopShelfItem", feature = "TVTopShelfObject"))]
44 #[unsafe(method(initWithItems:))]
46 #[unsafe(method_family = init)]
47 pub unsafe fn initWithItems(
48 this: Allocated<Self>,
49 items: &NSArray<TVTopShelfItem>,
50 ) -> Retained<Self>;
51
52 #[unsafe(method(init))]
53 #[unsafe(method_family = init)]
54 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
55
56 #[unsafe(method(new))]
57 #[unsafe(method_family = new)]
58 pub unsafe fn new() -> Retained<Self>;
59 );
60}