objc2-av-foundation 0.3.2

Bindings to the AVFoundation framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
#[cfg(feature = "objc2-core-foundation")]
use objc2_core_foundation::*;
use objc2_foundation::*;

use crate::*;

extern "C" {
    /// Use this constant to set the CoreAnimation's animation beginTime property to be time 0.
    /// The constant is a small, non-zero, positive value which avoids CoreAnimation
    /// from replacing 0.0 with CACurrentMediaTime().
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/avfoundation/avcoreanimationbegintimeatzero?language=objc)
    #[cfg(feature = "objc2-core-foundation")]
    pub static AVCoreAnimationBeginTimeAtZero: CFTimeInterval;
}

/// [Apple's documentation](https://developer.apple.com/documentation/avfoundation/avlayervideogravity?language=objc)
// NS_TYPED_ENUM
pub type AVLayerVideoGravity = NSString;

extern "C" {
    /// Preserve aspect ratio; fit within layer bounds.
    ///
    /// AVLayerVideoGravityResizeAspect may be used when setting the videoGravity
    /// property of an AVPlayerLayer or AVCaptureVideoPreviewLayer instance.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/avfoundation/avlayervideogravityresizeaspect?language=objc)
    pub static AVLayerVideoGravityResizeAspect: Option<&'static AVLayerVideoGravity>;
}

extern "C" {
    /// Preserve aspect ratio; fill layer bounds.
    ///
    /// AVLayerVideoGravityResizeAspectFill may be used when setting the videoGravity
    /// property of an AVPlayerLayer or AVCaptureVideoPreviewLayer instance.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/avfoundation/avlayervideogravityresizeaspectfill?language=objc)
    pub static AVLayerVideoGravityResizeAspectFill: Option<&'static AVLayerVideoGravity>;
}

extern "C" {
    /// Stretch to fill layer bounds.
    ///
    /// AVLayerVideoGravityResize may be used when setting the videoGravity
    /// property of an AVPlayerLayer or AVCaptureVideoPreviewLayer instance.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/avfoundation/avlayervideogravityresize?language=objc)
    pub static AVLayerVideoGravityResize: Option<&'static AVLayerVideoGravity>;
}