use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
pub type CLHeadingComponentValue = c_double;
extern "C" {
#[cfg(feature = "CLLocation")]
pub static kCLHeadingFilterNone: CLLocationDegrees;
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CLHeading;
unsafe impl ClassType for CLHeading {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CLHeading {}
unsafe impl NSCopying for CLHeading {}
unsafe impl NSObjectProtocol for CLHeading {}
unsafe impl NSSecureCoding for CLHeading {}
extern_methods!(
unsafe impl CLHeading {
#[cfg(feature = "CLLocation")]
#[method(magneticHeading)]
pub unsafe fn magneticHeading(&self) -> CLLocationDirection;
#[cfg(feature = "CLLocation")]
#[method(trueHeading)]
pub unsafe fn trueHeading(&self) -> CLLocationDirection;
#[cfg(feature = "CLLocation")]
#[method(headingAccuracy)]
pub unsafe fn headingAccuracy(&self) -> CLLocationDirection;
#[method(x)]
pub unsafe fn x(&self) -> CLHeadingComponentValue;
#[method(y)]
pub unsafe fn y(&self) -> CLHeadingComponentValue;
#[method(z)]
pub unsafe fn z(&self) -> CLHeadingComponentValue;
#[method_id(@__retain_semantics Other timestamp)]
pub unsafe fn timestamp(&self) -> Retained<NSDate>;
}
);
extern_methods!(
unsafe impl CLHeading {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);