objc2_core_ml/generated/
MLImageSize.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/coreml/mlimagesize?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct MLImageSize;
14);
15
16extern_conformance!(
17    unsafe impl NSCoding for MLImageSize {}
18);
19
20extern_conformance!(
21    unsafe impl NSObjectProtocol for MLImageSize {}
22);
23
24extern_conformance!(
25    unsafe impl NSSecureCoding for MLImageSize {}
26);
27
28impl MLImageSize {
29    extern_methods!(
30        #[unsafe(method(pixelsWide))]
31        #[unsafe(method_family = none)]
32        pub unsafe fn pixelsWide(&self) -> NSInteger;
33
34        #[unsafe(method(pixelsHigh))]
35        #[unsafe(method_family = none)]
36        pub unsafe fn pixelsHigh(&self) -> NSInteger;
37    );
38}
39
40/// Methods declared on superclass `NSObject`.
41impl MLImageSize {
42    extern_methods!(
43        #[unsafe(method(init))]
44        #[unsafe(method_family = init)]
45        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
46
47        #[unsafe(method(new))]
48        #[unsafe(method_family = new)]
49        pub unsafe fn new() -> Retained<Self>;
50    );
51}