objc2-model-io 0.3.2

Bindings to the ModelIO framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/modelio/mdlmatrix4x4array?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct MDLMatrix4x4Array;
);

extern_conformance!(
    unsafe impl NSCopying for MDLMatrix4x4Array {}
);

unsafe impl CopyingHelper for MDLMatrix4x4Array {
    type Result = Self;
}

extern_conformance!(
    unsafe impl NSObjectProtocol for MDLMatrix4x4Array {}
);

impl MDLMatrix4x4Array {
    extern_methods!(
        #[unsafe(method(elementCount))]
        #[unsafe(method_family = none)]
        pub unsafe fn elementCount(&self) -> NSUInteger;

        #[cfg(feature = "MDLTypes")]
        #[unsafe(method(precision))]
        #[unsafe(method_family = none)]
        pub unsafe fn precision(&self) -> MDLDataPrecision;

        #[unsafe(method(clear))]
        #[unsafe(method_family = none)]
        pub unsafe fn clear(&self);

        #[unsafe(method(initWithElementCount:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithElementCount(
            this: Allocated<Self>,
            array_element_count: NSUInteger,
        ) -> Retained<Self>;
    );
}

/// Methods declared on superclass `NSObject`.
impl MDLMatrix4x4Array {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}