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
19extern_conformance!(
20    unsafe impl NSCoding for SKReachConstraints {}
21);
22
23extern_conformance!(
24    unsafe impl NSObjectProtocol for SKReachConstraints {}
25);
26
27extern_conformance!(
28    unsafe impl NSSecureCoding for SKReachConstraints {}
29);
30
31impl SKReachConstraints {
32    extern_methods!(
33        #[cfg(feature = "objc2-core-foundation")]
34        /// Lower angle limit in radians
35        #[unsafe(method(lowerAngleLimit))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn lowerAngleLimit(&self) -> CGFloat;
38
39        #[cfg(feature = "objc2-core-foundation")]
40        /// Setter for [`lowerAngleLimit`][Self::lowerAngleLimit].
41        #[unsafe(method(setLowerAngleLimit:))]
42        #[unsafe(method_family = none)]
43        pub unsafe fn setLowerAngleLimit(&self, lower_angle_limit: CGFloat);
44
45        #[cfg(feature = "objc2-core-foundation")]
46        /// Upper angle limit in radians
47        #[unsafe(method(upperAngleLimit))]
48        #[unsafe(method_family = none)]
49        pub unsafe fn upperAngleLimit(&self) -> CGFloat;
50
51        #[cfg(feature = "objc2-core-foundation")]
52        /// Setter for [`upperAngleLimit`][Self::upperAngleLimit].
53        #[unsafe(method(setUpperAngleLimit:))]
54        #[unsafe(method_family = none)]
55        pub unsafe fn setUpperAngleLimit(&self, upper_angle_limit: CGFloat);
56
57        #[cfg(feature = "objc2-core-foundation")]
58        #[unsafe(method(initWithLowerAngleLimit:upperAngleLimit:))]
59        #[unsafe(method_family = init)]
60        pub unsafe fn initWithLowerAngleLimit_upperAngleLimit(
61            this: Allocated<Self>,
62            lower_angle_limit: CGFloat,
63            upper_angle_limit: CGFloat,
64        ) -> Retained<Self>;
65    );
66}
67
68/// Methods declared on superclass `NSObject`.
69impl SKReachConstraints {
70    extern_methods!(
71        #[unsafe(method(init))]
72        #[unsafe(method_family = init)]
73        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
74
75        #[unsafe(method(new))]
76        #[unsafe(method_family = new)]
77        pub unsafe fn new() -> Retained<Self>;
78    );
79}