objc2_watch_kit/generated/
WKInterfaceTable.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(WKInterfaceObject, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(feature = "WKInterfaceObject")]
15 pub struct WKInterfaceTable;
16);
17
18#[cfg(feature = "WKInterfaceObject")]
19extern_conformance!(
20 unsafe impl NSObjectProtocol for WKInterfaceTable {}
21);
22
23#[cfg(feature = "WKInterfaceObject")]
24impl WKInterfaceTable {
25 extern_methods!(
26 #[unsafe(method(setRowTypes:))]
27 #[unsafe(method_family = none)]
28 pub unsafe fn setRowTypes(&self, row_types: &NSArray<NSString>);
29
30 #[unsafe(method(setNumberOfRows:withRowType:))]
31 #[unsafe(method_family = none)]
32 pub unsafe fn setNumberOfRows_withRowType(
33 &self,
34 number_of_rows: NSInteger,
35 row_type: &NSString,
36 );
37
38 #[unsafe(method(numberOfRows))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn numberOfRows(&self) -> NSInteger;
41
42 #[unsafe(method(rowControllerAtIndex:))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn rowControllerAtIndex(&self, index: NSInteger) -> Option<Retained<AnyObject>>;
45
46 #[unsafe(method(insertRowsAtIndexes:withRowType:))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn insertRowsAtIndexes_withRowType(
49 &self,
50 rows: &NSIndexSet,
51 row_type: &NSString,
52 );
53
54 #[unsafe(method(removeRowsAtIndexes:))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn removeRowsAtIndexes(&self, rows: &NSIndexSet);
57
58 #[unsafe(method(scrollToRowAtIndex:))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn scrollToRowAtIndex(&self, index: NSInteger);
61
62 #[unsafe(method(performSegueForRow:))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn performSegueForRow(&self, row: NSInteger);
65
66 #[unsafe(method(curvesAtTop))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn curvesAtTop(&self) -> bool;
69
70 #[unsafe(method(setCurvesAtTop:))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn setCurvesAtTop(&self, curves_at_top: bool);
74
75 #[unsafe(method(curvesAtBottom))]
76 #[unsafe(method_family = none)]
77 pub unsafe fn curvesAtBottom(&self) -> bool;
78
79 #[unsafe(method(setCurvesAtBottom:))]
81 #[unsafe(method_family = none)]
82 pub unsafe fn setCurvesAtBottom(&self, curves_at_bottom: bool);
83 );
84}
85
86#[cfg(feature = "WKInterfaceObject")]
88impl WKInterfaceTable {
89 extern_methods!(
90 #[unsafe(method(init))]
91 #[unsafe(method_family = init)]
92 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
93 );
94}
95
96#[cfg(feature = "WKInterfaceObject")]
98impl WKInterfaceTable {
99 extern_methods!(
100 #[unsafe(method(new))]
101 #[unsafe(method_family = new)]
102 pub unsafe fn new() -> Retained<Self>;
103 );
104}