objc2_av_foundation/generated/
AVTime.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-media")]
7use objc2_core_media::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12mod private_NSValueAVFoundationExtensions {
13    pub trait Sealed {}
14}
15
16/// Category on [`NSValue`].
17pub unsafe trait NSValueAVFoundationExtensions:
18    ClassType + Sized + private_NSValueAVFoundationExtensions::Sealed
19{
20    extern_methods!(
21        #[cfg(feature = "objc2-core-media")]
22        #[unsafe(method(valueWithCMTime:))]
23        #[unsafe(method_family = none)]
24        unsafe fn valueWithCMTime(time: CMTime) -> Retained<NSValue>;
25
26        #[cfg(feature = "objc2-core-media")]
27        #[unsafe(method(CMTimeValue))]
28        #[unsafe(method_family = none)]
29        unsafe fn CMTimeValue(&self) -> CMTime;
30
31        #[cfg(feature = "objc2-core-media")]
32        #[unsafe(method(valueWithCMTimeRange:))]
33        #[unsafe(method_family = none)]
34        unsafe fn valueWithCMTimeRange(time_range: CMTimeRange) -> Retained<NSValue>;
35
36        #[cfg(feature = "objc2-core-media")]
37        #[unsafe(method(CMTimeRangeValue))]
38        #[unsafe(method_family = none)]
39        unsafe fn CMTimeRangeValue(&self) -> CMTimeRange;
40
41        #[cfg(feature = "objc2-core-media")]
42        #[unsafe(method(valueWithCMTimeMapping:))]
43        #[unsafe(method_family = none)]
44        unsafe fn valueWithCMTimeMapping(time_mapping: CMTimeMapping) -> Retained<NSValue>;
45
46        #[cfg(feature = "objc2-core-media")]
47        #[unsafe(method(CMTimeMappingValue))]
48        #[unsafe(method_family = none)]
49        unsafe fn CMTimeMappingValue(&self) -> CMTimeMapping;
50    );
51}
52
53impl private_NSValueAVFoundationExtensions::Sealed for NSValue {}
54unsafe impl NSValueAVFoundationExtensions for NSValue {}
55
56mod private_NSCoderAVTimeCoding {
57    pub trait Sealed {}
58}
59
60/// Category "AVTimeCoding" on [`NSCoder`].
61#[doc(alias = "AVTimeCoding")]
62pub unsafe trait NSCoderAVTimeCoding:
63    ClassType + Sized + private_NSCoderAVTimeCoding::Sealed
64{
65    extern_methods!(
66        #[cfg(feature = "objc2-core-media")]
67        #[unsafe(method(encodeCMTime:forKey:))]
68        #[unsafe(method_family = none)]
69        unsafe fn encodeCMTime_forKey(&self, time: CMTime, key: &NSString);
70
71        #[cfg(feature = "objc2-core-media")]
72        #[unsafe(method(decodeCMTimeForKey:))]
73        #[unsafe(method_family = none)]
74        unsafe fn decodeCMTimeForKey(&self, key: &NSString) -> CMTime;
75
76        #[cfg(feature = "objc2-core-media")]
77        #[unsafe(method(encodeCMTimeRange:forKey:))]
78        #[unsafe(method_family = none)]
79        unsafe fn encodeCMTimeRange_forKey(&self, time_range: CMTimeRange, key: &NSString);
80
81        #[cfg(feature = "objc2-core-media")]
82        #[unsafe(method(decodeCMTimeRangeForKey:))]
83        #[unsafe(method_family = none)]
84        unsafe fn decodeCMTimeRangeForKey(&self, key: &NSString) -> CMTimeRange;
85
86        #[cfg(feature = "objc2-core-media")]
87        #[unsafe(method(encodeCMTimeMapping:forKey:))]
88        #[unsafe(method_family = none)]
89        unsafe fn encodeCMTimeMapping_forKey(&self, time_mapping: CMTimeMapping, key: &NSString);
90
91        #[cfg(feature = "objc2-core-media")]
92        #[unsafe(method(decodeCMTimeMappingForKey:))]
93        #[unsafe(method_family = none)]
94        unsafe fn decodeCMTimeMappingForKey(&self, key: &NSString) -> CMTimeMapping;
95    );
96}
97
98impl private_NSCoderAVTimeCoding::Sealed for NSCoder {}
99unsafe impl NSCoderAVTimeCoding for NSCoder {}