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
21unsafe impl NSObjectProtocol for AVAssetTrackSegment {}
22
23impl AVAssetTrackSegment {
24 extern_methods!(
25 #[unsafe(method(init))]
26 #[unsafe(method_family = init)]
27 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
28
29 #[unsafe(method(new))]
30 #[unsafe(method_family = new)]
31 pub unsafe fn new() -> Retained<Self>;
32
33 #[cfg(feature = "objc2-core-media")]
34 #[unsafe(method(timeMapping))]
35 #[unsafe(method_family = none)]
36 pub unsafe fn timeMapping(&self) -> CMTimeMapping;
37
38 #[unsafe(method(isEmpty))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn isEmpty(&self) -> bool;
41 );
42}