objc2_gl_kit/generated/
GLKEffectPropertyFog.rs1use 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
12#[cfg(feature = "objc2-open-gl")]
15#[cfg(target_os = "macos")]
16#[repr(transparent)]
17#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
18pub struct GLKFogMode(pub GLint);
19#[cfg(feature = "objc2-open-gl")]
20#[cfg(target_os = "macos")]
21impl GLKFogMode {
22 #[doc(alias = "GLKFogModeExp")]
23 pub const Exp: Self = Self(0);
24 #[doc(alias = "GLKFogModeExp2")]
25 pub const Exp2: Self = Self(1);
26 #[doc(alias = "GLKFogModeLinear")]
27 pub const Linear: Self = Self(2);
28}
29
30#[cfg(feature = "objc2-open-gl")]
31#[cfg(target_os = "macos")]
32unsafe impl Encode for GLKFogMode {
33 const ENCODING: Encoding = GLint::ENCODING;
34}
35
36#[cfg(feature = "objc2-open-gl")]
37#[cfg(target_os = "macos")]
38unsafe impl RefEncode for GLKFogMode {
39 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
40}
41
42extern_class!(
43 #[unsafe(super(GLKEffectProperty, NSObject))]
45 #[derive(Debug, PartialEq, Eq, Hash)]
46 #[cfg(feature = "GLKEffectProperty")]
47 pub struct GLKEffectPropertyFog;
48);
49
50#[cfg(feature = "GLKEffectProperty")]
51extern_conformance!(
52 unsafe impl NSObjectProtocol for GLKEffectPropertyFog {}
53);
54
55#[cfg(feature = "GLKEffectProperty")]
56impl GLKEffectPropertyFog {
57 extern_methods!(
58 #[cfg(feature = "objc2-open-gl")]
59 #[cfg(target_os = "macos")]
60 #[unsafe(method(enabled))]
61 #[unsafe(method_family = none)]
62 pub unsafe fn enabled(&self) -> GLboolean;
63
64 #[cfg(feature = "objc2-open-gl")]
65 #[cfg(target_os = "macos")]
66 #[unsafe(method(setEnabled:))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn setEnabled(&self, enabled: GLboolean);
70
71 #[cfg(feature = "objc2-open-gl")]
72 #[cfg(target_os = "macos")]
73 #[unsafe(method(mode))]
74 #[unsafe(method_family = none)]
75 pub unsafe fn mode(&self) -> GLint;
76
77 #[cfg(feature = "objc2-open-gl")]
78 #[cfg(target_os = "macos")]
79 #[unsafe(method(setMode:))]
81 #[unsafe(method_family = none)]
82 pub unsafe fn setMode(&self, mode: GLint);
83
84 #[cfg(feature = "GLKMathTypes")]
85 #[unsafe(method(color))]
86 #[unsafe(method_family = none)]
87 pub unsafe fn color(&self) -> GLKVector4;
88
89 #[cfg(feature = "GLKMathTypes")]
90 #[unsafe(method(setColor:))]
92 #[unsafe(method_family = none)]
93 pub unsafe fn setColor(&self, color: GLKVector4);
94
95 #[cfg(feature = "objc2-open-gl")]
96 #[cfg(target_os = "macos")]
97 #[unsafe(method(density))]
98 #[unsafe(method_family = none)]
99 pub unsafe fn density(&self) -> GLfloat;
100
101 #[cfg(feature = "objc2-open-gl")]
102 #[cfg(target_os = "macos")]
103 #[unsafe(method(setDensity:))]
105 #[unsafe(method_family = none)]
106 pub unsafe fn setDensity(&self, density: GLfloat);
107
108 #[cfg(feature = "objc2-open-gl")]
109 #[cfg(target_os = "macos")]
110 #[unsafe(method(start))]
111 #[unsafe(method_family = none)]
112 pub unsafe fn start(&self) -> GLfloat;
113
114 #[cfg(feature = "objc2-open-gl")]
115 #[cfg(target_os = "macos")]
116 #[unsafe(method(setStart:))]
118 #[unsafe(method_family = none)]
119 pub unsafe fn setStart(&self, start: GLfloat);
120
121 #[cfg(feature = "objc2-open-gl")]
122 #[cfg(target_os = "macos")]
123 #[unsafe(method(end))]
124 #[unsafe(method_family = none)]
125 pub unsafe fn end(&self) -> GLfloat;
126
127 #[cfg(feature = "objc2-open-gl")]
128 #[cfg(target_os = "macos")]
129 #[unsafe(method(setEnd:))]
131 #[unsafe(method_family = none)]
132 pub unsafe fn setEnd(&self, end: GLfloat);
133 );
134}
135
136#[cfg(feature = "GLKEffectProperty")]
138impl GLKEffectPropertyFog {
139 extern_methods!(
140 #[unsafe(method(init))]
141 #[unsafe(method_family = init)]
142 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
143
144 #[unsafe(method(new))]
145 #[unsafe(method_family = new)]
146 pub unsafe fn new() -> Retained<Self>;
147 );
148}