objc2_app_kit/generated/
NSStepperCell.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSActionCell, NSCell, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
15 pub struct NSStepperCell;
16);
17
18#[cfg(all(
19 feature = "NSAccessibilityProtocols",
20 feature = "NSActionCell",
21 feature = "NSCell"
22))]
23extern_conformance!(
24 unsafe impl NSAccessibility for NSStepperCell {}
25);
26
27#[cfg(all(
28 feature = "NSAccessibilityProtocols",
29 feature = "NSActionCell",
30 feature = "NSCell"
31))]
32extern_conformance!(
33 unsafe impl NSAccessibilityElementProtocol for NSStepperCell {}
34);
35
36#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
37extern_conformance!(
38 unsafe impl NSCoding for NSStepperCell {}
39);
40
41#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
42extern_conformance!(
43 unsafe impl NSCopying for NSStepperCell {}
44);
45
46#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
47unsafe impl CopyingHelper for NSStepperCell {
48 type Result = Self;
49}
50
51#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
52extern_conformance!(
53 unsafe impl NSObjectProtocol for NSStepperCell {}
54);
55
56#[cfg(all(
57 feature = "NSActionCell",
58 feature = "NSCell",
59 feature = "NSUserInterfaceItemIdentification"
60))]
61extern_conformance!(
62 unsafe impl NSUserInterfaceItemIdentification for NSStepperCell {}
63);
64
65#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
66impl NSStepperCell {
67 extern_methods!(
68 #[unsafe(method(minValue))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn minValue(&self) -> c_double;
71
72 #[unsafe(method(setMinValue:))]
74 #[unsafe(method_family = none)]
75 pub unsafe fn setMinValue(&self, min_value: c_double);
76
77 #[unsafe(method(maxValue))]
78 #[unsafe(method_family = none)]
79 pub unsafe fn maxValue(&self) -> c_double;
80
81 #[unsafe(method(setMaxValue:))]
83 #[unsafe(method_family = none)]
84 pub unsafe fn setMaxValue(&self, max_value: c_double);
85
86 #[unsafe(method(increment))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn increment(&self) -> c_double;
89
90 #[unsafe(method(setIncrement:))]
92 #[unsafe(method_family = none)]
93 pub unsafe fn setIncrement(&self, increment: c_double);
94
95 #[unsafe(method(valueWraps))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn valueWraps(&self) -> bool;
98
99 #[unsafe(method(setValueWraps:))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn setValueWraps(&self, value_wraps: bool);
103
104 #[unsafe(method(autorepeat))]
105 #[unsafe(method_family = none)]
106 pub unsafe fn autorepeat(&self) -> bool;
107
108 #[unsafe(method(setAutorepeat:))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn setAutorepeat(&self, autorepeat: bool);
112 );
113}
114
115#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
117impl NSStepperCell {
118 extern_methods!(
119 #[unsafe(method(init))]
120 #[unsafe(method_family = init)]
121 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
122
123 #[unsafe(method(initTextCell:))]
124 #[unsafe(method_family = init)]
125 pub unsafe fn initTextCell(this: Allocated<Self>, string: &NSString) -> Retained<Self>;
126
127 #[cfg(feature = "NSImage")]
128 #[unsafe(method(initImageCell:))]
129 #[unsafe(method_family = init)]
130 pub unsafe fn initImageCell(
131 this: Allocated<Self>,
132 image: Option<&NSImage>,
133 ) -> Retained<Self>;
134
135 #[unsafe(method(initWithCoder:))]
136 #[unsafe(method_family = init)]
137 pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Retained<Self>;
138 );
139}
140
141#[cfg(all(feature = "NSActionCell", feature = "NSCell"))]
143impl NSStepperCell {
144 extern_methods!(
145 #[unsafe(method(new))]
146 #[unsafe(method_family = new)]
147 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
148 );
149}