objc2_sprite_kit/generated/
SKReachConstraints.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-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13    /// [Apple's documentation](https://developer.apple.com/documentation/spritekit/skreachconstraints?language=objc)
14    #[unsafe(super(NSObject))]
15    #[derive(Debug, PartialEq, Eq, Hash)]
16    pub struct SKReachConstraints;
17);
18
19unsafe impl NSCoding for SKReachConstraints {}
20
21unsafe impl NSObjectProtocol for SKReachConstraints {}
22
23unsafe impl NSSecureCoding for SKReachConstraints {}
24
25impl SKReachConstraints {
26    extern_methods!(
27        #[cfg(feature = "objc2-core-foundation")]
28        /// Lower angle limit in radians
29        #[unsafe(method(lowerAngleLimit))]
30        #[unsafe(method_family = none)]
31        pub unsafe fn lowerAngleLimit(&self) -> CGFloat;
32
33        #[cfg(feature = "objc2-core-foundation")]
34        /// Setter for [`lowerAngleLimit`][Self::lowerAngleLimit].
35        #[unsafe(method(setLowerAngleLimit:))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn setLowerAngleLimit(&self, lower_angle_limit: CGFloat);
38
39        #[cfg(feature = "objc2-core-foundation")]
40        /// Upper angle limit in radians
41        #[unsafe(method(upperAngleLimit))]
42        #[unsafe(method_family = none)]
43        pub unsafe fn upperAngleLimit(&self) -> CGFloat;
44
45        #[cfg(feature = "objc2-core-foundation")]
46        /// Setter for [`upperAngleLimit`][Self::upperAngleLimit].
47        #[unsafe(method(setUpperAngleLimit:))]
48        #[unsafe(method_family = none)]
49        pub unsafe fn setUpperAngleLimit(&self, upper_angle_limit: CGFloat);
50
51        #[cfg(feature = "objc2-core-foundation")]
52        #[unsafe(method(initWithLowerAngleLimit:upperAngleLimit:))]
53        #[unsafe(method_family = init)]
54        pub unsafe fn initWithLowerAngleLimit_upperAngleLimit(
55            this: Allocated<Self>,
56            lower_angle_limit: CGFloat,
57            upper_angle_limit: CGFloat,
58        ) -> Retained<Self>;
59    );
60}
61
62/// Methods declared on superclass `NSObject`.
63impl SKReachConstraints {
64    extern_methods!(
65        #[unsafe(method(init))]
66        #[unsafe(method_family = init)]
67        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
68
69        #[unsafe(method(new))]
70        #[unsafe(method_family = new)]
71        pub unsafe fn new() -> Retained<Self>;
72    );
73}