use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct GCPoint2 {
pub x: c_float,
pub y: c_float,
}
unsafe impl Encode for GCPoint2 {
const ENCODING: Encoding =
Encoding::Struct("GCPoint2", &[<c_float>::ENCODING, <c_float>::ENCODING]);
}
unsafe impl RefEncode for GCPoint2 {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern "C" {
pub static GCPoint2Zero: GCPoint2;
}
extern "C" {
pub fn NSStringFromGCPoint2(point: GCPoint2) -> NonNull<NSString>;
}
extern_category!(
#[doc(alias = "GCTypes")]
pub unsafe trait NSValueGCTypes {
#[method_id(@__retain_semantics Other valueWithGCPoint2:)]
unsafe fn valueWithGCPoint2(point: GCPoint2) -> Id<Self>;
#[method(GCPoint2Value)]
unsafe fn GCPoint2Value(&self) -> GCPoint2;
}
unsafe impl NSValueGCTypes for NSValue {}
);