objc2_av_foundation/generated/
AVAssetTrackSegment.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-core-media")]
6use objc2_core_media::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct AVAssetTrackSegment;
15);
16
17unsafe impl Send for AVAssetTrackSegment {}
18
19unsafe impl Sync for AVAssetTrackSegment {}
20
21extern_conformance!(
22 unsafe impl NSObjectProtocol for AVAssetTrackSegment {}
23);
24
25impl AVAssetTrackSegment {
26 extern_methods!(
27 #[unsafe(method(init))]
28 #[unsafe(method_family = init)]
29 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
30
31 #[unsafe(method(new))]
32 #[unsafe(method_family = new)]
33 pub unsafe fn new() -> Retained<Self>;
34
35 #[cfg(feature = "objc2-core-media")]
36 #[unsafe(method(timeMapping))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn timeMapping(&self) -> CMTimeMapping;
44
45 #[unsafe(method(isEmpty))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn isEmpty(&self) -> bool;
53 );
54}