objc2_watch_kit/generated/
WKInterfaceDate.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7#[cfg(feature = "objc2-ui-kit")]
8use objc2_ui_kit::*;
9
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(WKInterfaceObject, NSObject))]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 #[cfg(feature = "WKInterfaceObject")]
17 pub struct WKInterfaceDate;
18);
19
20#[cfg(feature = "WKInterfaceObject")]
21extern_conformance!(
22 unsafe impl NSObjectProtocol for WKInterfaceDate {}
23);
24
25#[cfg(feature = "WKInterfaceObject")]
26impl WKInterfaceDate {
27 extern_methods!(
28 #[cfg(feature = "objc2-ui-kit")]
29 #[unsafe(method(setTextColor:))]
30 #[unsafe(method_family = none)]
31 pub unsafe fn setTextColor(&self, color: Option<&UIColor>);
32
33 #[unsafe(method(setTimeZone:))]
34 #[unsafe(method_family = none)]
35 pub unsafe fn setTimeZone(&self, time_zone: Option<&NSTimeZone>);
36
37 #[unsafe(method(setCalendar:))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn setCalendar(&self, calendar: Option<&NSCalendar>);
40 );
41}
42
43#[cfg(feature = "WKInterfaceObject")]
45impl WKInterfaceDate {
46 extern_methods!(
47 #[unsafe(method(init))]
48 #[unsafe(method_family = init)]
49 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
50 );
51}
52
53#[cfg(feature = "WKInterfaceObject")]
55impl WKInterfaceDate {
56 extern_methods!(
57 #[unsafe(method(new))]
58 #[unsafe(method_family = new)]
59 pub unsafe fn new() -> Retained<Self>;
60 );
61}