objc2_tv_services/generated/
TVTopShelfInsetContent.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    /// An object that represents inset banner content.
13    ///
14    /// See also [Apple's documentation](https://developer.apple.com/documentation/tvservices/tvtopshelfinsetcontent?language=objc)
15    #[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        /// The content's items.
33        #[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        /// The size of images in the inset content style.
39        #[unsafe(method(imageSize))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn imageSize() -> CGSize;
42
43        #[cfg(all(feature = "TVTopShelfItem", feature = "TVTopShelfObject"))]
44        /// Create a content with the given items.
45        #[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}