1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
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;
}

// TODO: pub fn GCPoint2Make(x: c_float,y: c_float,) -> GCPoint2;

// TODO: pub fn GCPoint2Equal(point1: GCPoint2,point2: GCPoint2,) -> bool;

extern "C" {
    pub fn NSStringFromGCPoint2(point: GCPoint2) -> NonNull<NSString>;
}

extern_category!(
    /// Category "GCTypes" on [`NSValue`].
    #[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 {}
);