objc2_itunes_library/generated/
ITLibMediaItemVideoInfo.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::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// The ITLibMediaItemVideoInfo class encapsulates the video information of a video media item.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/ituneslibrary/itlibmediaitemvideoinfo?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct ITLibMediaItemVideoInfo;
16);
17
18extern_conformance!(
19    unsafe impl NSObjectProtocol for ITLibMediaItemVideoInfo {}
20);
21
22impl ITLibMediaItemVideoInfo {
23    extern_methods!(
24        /// The name of TV series the video is associated with (implies track is a TV show).
25        #[unsafe(method(series))]
26        #[unsafe(method_family = none)]
27        pub unsafe fn series(&self) -> Option<Retained<NSString>>;
28
29        /// The name of the TV series the video is associated with that should be used for when sorting (implies the track is a TV show).
30        #[unsafe(method(sortSeries))]
31        #[unsafe(method_family = none)]
32        pub unsafe fn sortSeries(&self) -> Option<Retained<NSString>>;
33
34        /// The name of TV season the video is associated with (implies the track is a TV show).
35        #[unsafe(method(season))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn season(&self) -> NSUInteger;
38
39        /// The TV episode the video is associated with (implies the track is a TV show).
40        #[unsafe(method(episode))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn episode(&self) -> Option<Retained<NSString>>;
43
44        /// The TV episode order the video is associated with (implies the track is a TV show).
45        #[unsafe(method(episodeOrder))]
46        #[unsafe(method_family = none)]
47        pub unsafe fn episodeOrder(&self) -> NSInteger;
48
49        /// Whether the video is high definition.
50        #[unsafe(method(isHD))]
51        #[unsafe(method_family = none)]
52        pub unsafe fn isHD(&self) -> bool;
53
54        /// The width of the video.
55        #[unsafe(method(videoWidth))]
56        #[unsafe(method_family = none)]
57        pub unsafe fn videoWidth(&self) -> NSUInteger;
58
59        /// The height of the video.
60        #[unsafe(method(videoHeight))]
61        #[unsafe(method_family = none)]
62        pub unsafe fn videoHeight(&self) -> NSUInteger;
63    );
64}
65
66/// Methods declared on superclass `NSObject`.
67impl ITLibMediaItemVideoInfo {
68    extern_methods!(
69        #[unsafe(method(init))]
70        #[unsafe(method_family = init)]
71        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
72
73        #[unsafe(method(new))]
74        #[unsafe(method_family = new)]
75        pub unsafe fn new() -> Retained<Self>;
76    );
77}