//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::CoreAnimation::*;
use crate::Foundation::*;

typed_enum!(
    pub type CAValueFunctionName = NSString;
);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "CoreAnimation_CAValueFunction")]
    pub struct CAValueFunction;

    #[cfg(feature = "CoreAnimation_CAValueFunction")]
    unsafe impl ClassType for CAValueFunction {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "CoreAnimation_CAValueFunction")]
unsafe impl NSCoding for CAValueFunction {}

#[cfg(feature = "CoreAnimation_CAValueFunction")]
unsafe impl NSObjectProtocol for CAValueFunction {}

#[cfg(feature = "CoreAnimation_CAValueFunction")]
unsafe impl NSSecureCoding for CAValueFunction {}

extern_methods!(
    #[cfg(feature = "CoreAnimation_CAValueFunction")]
    unsafe impl CAValueFunction {
        #[method_id(@__retain_semantics Other functionWithName:)]
        pub unsafe fn functionWithName(name: &CAValueFunctionName) -> Option<Id<Self>>;

        #[method_id(@__retain_semantics Other name)]
        pub unsafe fn name(&self) -> Id<CAValueFunctionName>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "CoreAnimation_CAValueFunction")]
    unsafe impl CAValueFunction {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);

extern_static!(kCAValueFunctionRotateX: &'static CAValueFunctionName);

extern_static!(kCAValueFunctionRotateY: &'static CAValueFunctionName);

extern_static!(kCAValueFunctionRotateZ: &'static CAValueFunctionName);

extern_static!(kCAValueFunctionScale: &'static CAValueFunctionName);

extern_static!(kCAValueFunctionScaleX: &'static CAValueFunctionName);

extern_static!(kCAValueFunctionScaleY: &'static CAValueFunctionName);

extern_static!(kCAValueFunctionScaleZ: &'static CAValueFunctionName);

extern_static!(kCAValueFunctionTranslate: &'static CAValueFunctionName);

extern_static!(kCAValueFunctionTranslateX: &'static CAValueFunctionName);

extern_static!(kCAValueFunctionTranslateY: &'static CAValueFunctionName);

extern_static!(kCAValueFunctionTranslateZ: &'static CAValueFunctionName);
