objc2_app_kit/generated/
NSPathComponentCell.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSTextFieldCell, NSActionCell, NSCell, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(all(
15 feature = "NSActionCell",
16 feature = "NSCell",
17 feature = "NSTextFieldCell"
18 ))]
19 pub struct NSPathComponentCell;
20);
21
22#[cfg(all(
23 feature = "NSAccessibilityProtocols",
24 feature = "NSActionCell",
25 feature = "NSCell",
26 feature = "NSTextFieldCell"
27))]
28extern_conformance!(
29 unsafe impl NSAccessibility for NSPathComponentCell {}
30);
31
32#[cfg(all(
33 feature = "NSAccessibilityProtocols",
34 feature = "NSActionCell",
35 feature = "NSCell",
36 feature = "NSTextFieldCell"
37))]
38extern_conformance!(
39 unsafe impl NSAccessibilityElementProtocol for NSPathComponentCell {}
40);
41
42#[cfg(all(
43 feature = "NSActionCell",
44 feature = "NSCell",
45 feature = "NSTextFieldCell"
46))]
47extern_conformance!(
48 unsafe impl NSCoding for NSPathComponentCell {}
49);
50
51#[cfg(all(
52 feature = "NSActionCell",
53 feature = "NSCell",
54 feature = "NSTextFieldCell"
55))]
56extern_conformance!(
57 unsafe impl NSCopying for NSPathComponentCell {}
58);
59
60#[cfg(all(
61 feature = "NSActionCell",
62 feature = "NSCell",
63 feature = "NSTextFieldCell"
64))]
65unsafe impl CopyingHelper for NSPathComponentCell {
66 type Result = Self;
67}
68
69#[cfg(all(
70 feature = "NSActionCell",
71 feature = "NSCell",
72 feature = "NSTextFieldCell"
73))]
74extern_conformance!(
75 unsafe impl NSObjectProtocol for NSPathComponentCell {}
76);
77
78#[cfg(all(
79 feature = "NSActionCell",
80 feature = "NSCell",
81 feature = "NSTextFieldCell",
82 feature = "NSUserInterfaceItemIdentification"
83))]
84extern_conformance!(
85 unsafe impl NSUserInterfaceItemIdentification for NSPathComponentCell {}
86);
87
88#[cfg(all(
89 feature = "NSActionCell",
90 feature = "NSCell",
91 feature = "NSTextFieldCell"
92))]
93impl NSPathComponentCell {
94 extern_methods!(
95 #[cfg(feature = "NSImage")]
96 #[unsafe(method(image))]
97 #[unsafe(method_family = none)]
98 pub fn image(&self) -> Option<Retained<NSImage>>;
99
100 #[cfg(feature = "NSImage")]
101 #[unsafe(method(setImage:))]
103 #[unsafe(method_family = none)]
104 pub fn setImage(&self, image: Option<&NSImage>);
105
106 #[unsafe(method(URL))]
107 #[unsafe(method_family = none)]
108 pub fn URL(&self) -> Option<Retained<NSURL>>;
109
110 #[unsafe(method(setURL:))]
114 #[unsafe(method_family = none)]
115 pub fn setURL(&self, url: Option<&NSURL>);
116 );
117}
118
119#[cfg(all(
121 feature = "NSActionCell",
122 feature = "NSCell",
123 feature = "NSTextFieldCell"
124))]
125impl NSPathComponentCell {
126 extern_methods!(
127 #[unsafe(method(initTextCell:))]
128 #[unsafe(method_family = init)]
129 pub fn initTextCell(this: Allocated<Self>, string: &NSString) -> Retained<Self>;
130
131 #[unsafe(method(initWithCoder:))]
135 #[unsafe(method_family = init)]
136 pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Retained<Self>;
137
138 #[cfg(feature = "NSImage")]
139 #[unsafe(method(initImageCell:))]
140 #[unsafe(method_family = init)]
141 pub unsafe fn initImageCell(
142 this: Allocated<Self>,
143 image: Option<&NSImage>,
144 ) -> Retained<Self>;
145 );
146}
147
148#[cfg(all(
150 feature = "NSActionCell",
151 feature = "NSCell",
152 feature = "NSTextFieldCell"
153))]
154impl NSPathComponentCell {
155 extern_methods!(
156 #[unsafe(method(init))]
157 #[unsafe(method_family = init)]
158 pub fn init(this: Allocated<Self>) -> Retained<Self>;
159 );
160}
161
162#[cfg(all(
164 feature = "NSActionCell",
165 feature = "NSCell",
166 feature = "NSTextFieldCell"
167))]
168impl NSPathComponentCell {
169 extern_methods!(
170 #[unsafe(method(new))]
171 #[unsafe(method_family = new)]
172 pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
173 );
174}