objc2_watch_kit/generated/
WKInterfaceGroup.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9#[cfg(feature = "objc2-ui-kit")]
10use objc2_ui_kit::*;
11
12use crate::*;
13
14extern_class!(
15 #[unsafe(super(WKInterfaceObject, NSObject))]
17 #[derive(Debug, PartialEq, Eq, Hash)]
18 #[cfg(feature = "WKInterfaceObject")]
19 pub struct WKInterfaceGroup;
20);
21
22#[cfg(feature = "WKInterfaceObject")]
23extern_conformance!(
24 unsafe impl NSObjectProtocol for WKInterfaceGroup {}
25);
26
27#[cfg(all(feature = "WKInterfaceImage", feature = "WKInterfaceObject"))]
28extern_conformance!(
29 unsafe impl WKImageAnimatable for WKInterfaceGroup {}
30);
31
32#[cfg(feature = "WKInterfaceObject")]
33impl WKInterfaceGroup {
34 extern_methods!(
35 #[cfg(feature = "objc2-core-foundation")]
36 #[unsafe(method(setCornerRadius:))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn setCornerRadius(&self, corner_radius: CGFloat);
39
40 #[cfg(feature = "objc2-ui-kit")]
41 #[unsafe(method(setContentInset:))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn setContentInset(&self, content_inset: UIEdgeInsets);
44
45 #[cfg(feature = "objc2-ui-kit")]
46 #[unsafe(method(setBackgroundColor:))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn setBackgroundColor(&self, color: Option<&UIColor>);
49
50 #[cfg(feature = "objc2-ui-kit")]
51 #[unsafe(method(setBackgroundImage:))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn setBackgroundImage(&self, image: Option<&UIImage>);
54
55 #[unsafe(method(setBackgroundImageData:))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn setBackgroundImageData(&self, image_data: Option<&NSData>);
58
59 #[unsafe(method(setBackgroundImageNamed:))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn setBackgroundImageNamed(&self, image_name: Option<&NSString>);
62 );
63}
64
65#[cfg(feature = "WKInterfaceObject")]
67impl WKInterfaceGroup {
68 extern_methods!(
69 #[unsafe(method(init))]
70 #[unsafe(method_family = init)]
71 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
72 );
73}
74
75#[cfg(feature = "WKInterfaceObject")]
77impl WKInterfaceGroup {
78 extern_methods!(
79 #[unsafe(method(new))]
80 #[unsafe(method_family = new)]
81 pub unsafe fn new() -> Retained<Self>;
82 );
83}