objc2_watch_kit/generated/
WKInterfaceSKScene.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern_class!(
10 #[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 #[unsafe(method(isPaused))]
32 #[unsafe(method_family = none)]
33 pub unsafe fn isPaused(&self) -> bool;
34
35 #[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 #[unsafe(method(setPreferredFramesPerSecond:))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn setPreferredFramesPerSecond(&self, preferred_frames_per_second: NSInteger);
48 );
49}
50
51#[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}