objc2_av_foundation/generated/
AVAnimation.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3#[cfg(feature = "objc2-core-foundation")]
4use objc2_core_foundation::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern "C" {
10    /// Use this constant to set the CoreAnimation's animation beginTime property to be time 0.
11    /// The constant is a small, non-zero, positive value which avoids CoreAnimation
12    /// from replacing 0.0 with CACurrentMediaTime().
13    ///
14    /// See also [Apple's documentation](https://developer.apple.com/documentation/avfoundation/avcoreanimationbegintimeatzero?language=objc)
15    #[cfg(feature = "objc2-core-foundation")]
16    pub static AVCoreAnimationBeginTimeAtZero: CFTimeInterval;
17}
18
19/// [Apple's documentation](https://developer.apple.com/documentation/avfoundation/avlayervideogravity?language=objc)
20// NS_TYPED_ENUM
21pub type AVLayerVideoGravity = NSString;
22
23extern "C" {
24    /// Preserve aspect ratio; fit within layer bounds.
25    ///
26    /// AVLayerVideoGravityResizeAspect may be used when setting the videoGravity
27    /// property of an AVPlayerLayer or AVCaptureVideoPreviewLayer instance.
28    ///
29    /// See also [Apple's documentation](https://developer.apple.com/documentation/avfoundation/avlayervideogravityresizeaspect?language=objc)
30    pub static AVLayerVideoGravityResizeAspect: Option<&'static AVLayerVideoGravity>;
31}
32
33extern "C" {
34    /// Preserve aspect ratio; fill layer bounds.
35    ///
36    /// AVLayerVideoGravityResizeAspectFill may be used when setting the videoGravity
37    /// property of an AVPlayerLayer or AVCaptureVideoPreviewLayer instance.
38    ///
39    /// See also [Apple's documentation](https://developer.apple.com/documentation/avfoundation/avlayervideogravityresizeaspectfill?language=objc)
40    pub static AVLayerVideoGravityResizeAspectFill: Option<&'static AVLayerVideoGravity>;
41}
42
43extern "C" {
44    /// Stretch to fill layer bounds.
45    ///
46    /// AVLayerVideoGravityResize may be used when setting the videoGravity
47    /// property of an AVPlayerLayer or AVCaptureVideoPreviewLayer instance.
48    ///
49    /// See also [Apple's documentation](https://developer.apple.com/documentation/avfoundation/avlayervideogravityresize?language=objc)
50    pub static AVLayerVideoGravityResize: Option<&'static AVLayerVideoGravity>;
51}