objc2_scene_kit/generated/
SCNLevelOfDetail.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-core-foundation")]
6use objc2_core_foundation::*;
7use objc2_foundation::*;
8
9use crate::*;
10
11extern_class!(
12 #[unsafe(super(NSObject))]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 pub struct SCNLevelOfDetail;
18);
19
20extern_conformance!(
21 unsafe impl NSCoding for SCNLevelOfDetail {}
22);
23
24extern_conformance!(
25 unsafe impl NSCopying for SCNLevelOfDetail {}
26);
27
28unsafe impl CopyingHelper for SCNLevelOfDetail {
29 type Result = Self;
30}
31
32extern_conformance!(
33 unsafe impl NSObjectProtocol for SCNLevelOfDetail {}
34);
35
36extern_conformance!(
37 unsafe impl NSSecureCoding for SCNLevelOfDetail {}
38);
39
40impl SCNLevelOfDetail {
41 extern_methods!(
42 #[cfg(all(feature = "SCNGeometry", feature = "objc2-core-foundation"))]
43 #[unsafe(method(levelOfDetailWithGeometry:screenSpaceRadius:))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn levelOfDetailWithGeometry_screenSpaceRadius(
51 geometry: Option<&SCNGeometry>,
52 radius: CGFloat,
53 ) -> Retained<Self>;
54
55 #[cfg(all(feature = "SCNGeometry", feature = "objc2-core-foundation"))]
56 #[unsafe(method(levelOfDetailWithGeometry:worldSpaceDistance:))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn levelOfDetailWithGeometry_worldSpaceDistance(
64 geometry: Option<&SCNGeometry>,
65 distance: CGFloat,
66 ) -> Retained<Self>;
67
68 #[cfg(feature = "SCNGeometry")]
69 #[unsafe(method(geometry))]
71 #[unsafe(method_family = none)]
72 pub unsafe fn geometry(&self) -> Option<Retained<SCNGeometry>>;
73
74 #[cfg(feature = "objc2-core-foundation")]
75 #[unsafe(method(screenSpaceRadius))]
77 #[unsafe(method_family = none)]
78 pub unsafe fn screenSpaceRadius(&self) -> CGFloat;
79
80 #[cfg(feature = "objc2-core-foundation")]
81 #[unsafe(method(worldSpaceDistance))]
83 #[unsafe(method_family = none)]
84 pub unsafe fn worldSpaceDistance(&self) -> CGFloat;
85 );
86}
87
88impl SCNLevelOfDetail {
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}