objc2_watch_kit/generated/
WKInterfaceSKScene.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
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/watchkit/wkinterfaceskscene?language=objc)
11    #[unsafe(super(WKInterfaceObject, NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    #[cfg(feature = "WKInterfaceObject")]
14    pub struct WKInterfaceSKScene;
15);
16
17#[cfg(feature = "WKInterfaceObject")]
18extern_conformance!(
19    unsafe impl NSObjectProtocol for WKInterfaceSKScene {}
20);
21
22#[cfg(feature = "WKInterfaceObject")]
23impl WKInterfaceSKScene {
24    extern_methods!(
25        #[deprecated = "Use SpriteKit.SpriteView instead."]
26        #[unsafe(method(init))]
27        #[unsafe(method_family = init)]
28        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
29
30        /// Pause the entire interface
31        #[unsafe(method(isPaused))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn isPaused(&self) -> bool;
34
35        /// Setter for [`isPaused`][Self::isPaused].
36        #[unsafe(method(setPaused:))]
37        #[unsafe(method_family = none)]
38        pub unsafe fn setPaused(&self, paused: bool);
39
40        #[unsafe(method(preferredFramesPerSecond))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn preferredFramesPerSecond(&self) -> NSInteger;
43
44        /// Setter for [`preferredFramesPerSecond`][Self::preferredFramesPerSecond].
45        #[unsafe(method(setPreferredFramesPerSecond:))]
46        #[unsafe(method_family = none)]
47        pub unsafe fn setPreferredFramesPerSecond(&self, preferred_frames_per_second: NSInteger);
48    );
49}
50
51/// Methods declared on superclass `NSObject`.
52#[cfg(feature = "WKInterfaceObject")]
53impl WKInterfaceSKScene {
54    extern_methods!(
55        #[unsafe(method(new))]
56        #[unsafe(method_family = new)]
57        pub unsafe fn new() -> Retained<Self>;
58    );
59}