objc2_gl_kit/generated/
GLKSkyboxEffect.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::*;
6use objc2_foundation::*;
7#[cfg(feature = "objc2-open-gl")]
8#[cfg(target_os = "macos")]
9use objc2_open_gl::*;
10
11use crate::*;
12
13extern_class!(
14    /// [Apple's documentation](https://developer.apple.com/documentation/glkit/glkskyboxeffect?language=objc)
15    #[unsafe(super(NSObject))]
16    #[derive(Debug, PartialEq, Eq, Hash)]
17    pub struct GLKSkyboxEffect;
18);
19
20#[cfg(feature = "GLKNamedEffect")]
21extern_conformance!(
22    unsafe impl GLKNamedEffect for GLKSkyboxEffect {}
23);
24
25extern_conformance!(
26    unsafe impl NSObjectProtocol for GLKSkyboxEffect {}
27);
28
29impl GLKSkyboxEffect {
30    extern_methods!(
31        #[unsafe(method(prepareToDraw))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn prepareToDraw(&self);
34
35        #[unsafe(method(draw))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn draw(&self);
38
39        #[cfg(feature = "GLKMathTypes")]
40        #[unsafe(method(center))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn center(&self) -> GLKVector3;
43
44        #[cfg(feature = "GLKMathTypes")]
45        /// Setter for [`center`][Self::center].
46        #[unsafe(method(setCenter:))]
47        #[unsafe(method_family = none)]
48        pub unsafe fn setCenter(&self, center: GLKVector3);
49
50        #[cfg(feature = "objc2-open-gl")]
51        #[cfg(target_os = "macos")]
52        #[unsafe(method(xSize))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn xSize(&self) -> GLfloat;
55
56        #[cfg(feature = "objc2-open-gl")]
57        #[cfg(target_os = "macos")]
58        /// Setter for [`xSize`][Self::xSize].
59        #[unsafe(method(setXSize:))]
60        #[unsafe(method_family = none)]
61        pub unsafe fn setXSize(&self, x_size: GLfloat);
62
63        #[cfg(feature = "objc2-open-gl")]
64        #[cfg(target_os = "macos")]
65        #[unsafe(method(ySize))]
66        #[unsafe(method_family = none)]
67        pub unsafe fn ySize(&self) -> GLfloat;
68
69        #[cfg(feature = "objc2-open-gl")]
70        #[cfg(target_os = "macos")]
71        /// Setter for [`ySize`][Self::ySize].
72        #[unsafe(method(setYSize:))]
73        #[unsafe(method_family = none)]
74        pub unsafe fn setYSize(&self, y_size: GLfloat);
75
76        #[cfg(feature = "objc2-open-gl")]
77        #[cfg(target_os = "macos")]
78        #[unsafe(method(zSize))]
79        #[unsafe(method_family = none)]
80        pub unsafe fn zSize(&self) -> GLfloat;
81
82        #[cfg(feature = "objc2-open-gl")]
83        #[cfg(target_os = "macos")]
84        /// Setter for [`zSize`][Self::zSize].
85        #[unsafe(method(setZSize:))]
86        #[unsafe(method_family = none)]
87        pub unsafe fn setZSize(&self, z_size: GLfloat);
88
89        #[cfg(all(feature = "GLKEffectProperty", feature = "GLKEffectPropertyTexture"))]
90        #[unsafe(method(textureCubeMap))]
91        #[unsafe(method_family = none)]
92        pub unsafe fn textureCubeMap(&self) -> Retained<GLKEffectPropertyTexture>;
93
94        #[cfg(all(feature = "GLKEffectProperty", feature = "GLKEffectPropertyTransform"))]
95        #[unsafe(method(transform))]
96        #[unsafe(method_family = none)]
97        pub unsafe fn transform(&self) -> Retained<GLKEffectPropertyTransform>;
98
99        #[unsafe(method(label))]
100        #[unsafe(method_family = none)]
101        pub unsafe fn label(&self) -> Option<Retained<NSString>>;
102
103        /// Setter for [`label`][Self::label].
104        ///
105        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
106        #[unsafe(method(setLabel:))]
107        #[unsafe(method_family = none)]
108        pub unsafe fn setLabel(&self, label: Option<&NSString>);
109    );
110}
111
112/// Methods declared on superclass `NSObject`.
113impl GLKSkyboxEffect {
114    extern_methods!(
115        #[unsafe(method(init))]
116        #[unsafe(method_family = init)]
117        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
118
119        #[unsafe(method(new))]
120        #[unsafe(method_family = new)]
121        pub unsafe fn new() -> Retained<Self>;
122    );
123}