objc2_gl_kit/generated/
GLKEffectPropertyMaterial.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-open-gl")]
7#[cfg(target_os = "macos")]
8use objc2_open_gl::*;
9
10use crate::*;
11
12extern_class!(
13    /// [Apple's documentation](https://developer.apple.com/documentation/glkit/glkeffectpropertymaterial?language=objc)
14    #[unsafe(super(GLKEffectProperty, NSObject))]
15    #[derive(Debug, PartialEq, Eq, Hash)]
16    #[cfg(feature = "GLKEffectProperty")]
17    pub struct GLKEffectPropertyMaterial;
18);
19
20#[cfg(feature = "GLKEffectProperty")]
21extern_conformance!(
22    unsafe impl NSObjectProtocol for GLKEffectPropertyMaterial {}
23);
24
25#[cfg(feature = "GLKEffectProperty")]
26impl GLKEffectPropertyMaterial {
27    extern_methods!(
28        #[cfg(feature = "GLKMathTypes")]
29        #[unsafe(method(ambientColor))]
30        #[unsafe(method_family = none)]
31        pub unsafe fn ambientColor(&self) -> GLKVector4;
32
33        #[cfg(feature = "GLKMathTypes")]
34        /// Setter for [`ambientColor`][Self::ambientColor].
35        #[unsafe(method(setAmbientColor:))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn setAmbientColor(&self, ambient_color: GLKVector4);
38
39        #[cfg(feature = "GLKMathTypes")]
40        #[unsafe(method(diffuseColor))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn diffuseColor(&self) -> GLKVector4;
43
44        #[cfg(feature = "GLKMathTypes")]
45        /// Setter for [`diffuseColor`][Self::diffuseColor].
46        #[unsafe(method(setDiffuseColor:))]
47        #[unsafe(method_family = none)]
48        pub unsafe fn setDiffuseColor(&self, diffuse_color: GLKVector4);
49
50        #[cfg(feature = "GLKMathTypes")]
51        #[unsafe(method(specularColor))]
52        #[unsafe(method_family = none)]
53        pub unsafe fn specularColor(&self) -> GLKVector4;
54
55        #[cfg(feature = "GLKMathTypes")]
56        /// Setter for [`specularColor`][Self::specularColor].
57        #[unsafe(method(setSpecularColor:))]
58        #[unsafe(method_family = none)]
59        pub unsafe fn setSpecularColor(&self, specular_color: GLKVector4);
60
61        #[cfg(feature = "GLKMathTypes")]
62        #[unsafe(method(emissiveColor))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn emissiveColor(&self) -> GLKVector4;
65
66        #[cfg(feature = "GLKMathTypes")]
67        /// Setter for [`emissiveColor`][Self::emissiveColor].
68        #[unsafe(method(setEmissiveColor:))]
69        #[unsafe(method_family = none)]
70        pub unsafe fn setEmissiveColor(&self, emissive_color: GLKVector4);
71
72        #[cfg(feature = "objc2-open-gl")]
73        #[cfg(target_os = "macos")]
74        #[unsafe(method(shininess))]
75        #[unsafe(method_family = none)]
76        pub unsafe fn shininess(&self) -> GLfloat;
77
78        #[cfg(feature = "objc2-open-gl")]
79        #[cfg(target_os = "macos")]
80        /// Setter for [`shininess`][Self::shininess].
81        #[unsafe(method(setShininess:))]
82        #[unsafe(method_family = none)]
83        pub unsafe fn setShininess(&self, shininess: GLfloat);
84    );
85}
86
87/// Methods declared on superclass `NSObject`.
88#[cfg(feature = "GLKEffectProperty")]
89impl GLKEffectPropertyMaterial {
90    extern_methods!(
91        #[unsafe(method(init))]
92        #[unsafe(method_family = init)]
93        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
94
95        #[unsafe(method(new))]
96        #[unsafe(method_family = new)]
97        pub unsafe fn new() -> Retained<Self>;
98    );
99}