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 unsafe fn image(&self) -> Option<Retained<NSImage>>;
99
100 #[cfg(feature = "NSImage")]
101 #[unsafe(method(setImage:))]
103 #[unsafe(method_family = none)]
104 pub unsafe fn setImage(&self, image: Option<&NSImage>);
105
106 #[unsafe(method(URL))]
107 #[unsafe(method_family = none)]
108 pub unsafe fn URL(&self) -> Option<Retained<NSURL>>;
109
110 #[unsafe(method(setURL:))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn setURL(&self, url: Option<&NSURL>);
114 );
115}
116
117#[cfg(all(
119 feature = "NSActionCell",
120 feature = "NSCell",
121 feature = "NSTextFieldCell"
122))]
123impl NSPathComponentCell {
124 extern_methods!(
125 #[unsafe(method(initTextCell:))]
126 #[unsafe(method_family = init)]
127 pub unsafe fn initTextCell(this: Allocated<Self>, string: &NSString) -> Retained<Self>;
128
129 #[unsafe(method(initWithCoder:))]
130 #[unsafe(method_family = init)]
131 pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Retained<Self>;
132
133 #[cfg(feature = "NSImage")]
134 #[unsafe(method(initImageCell:))]
135 #[unsafe(method_family = init)]
136 pub unsafe fn initImageCell(
137 this: Allocated<Self>,
138 image: Option<&NSImage>,
139 ) -> Retained<Self>;
140 );
141}
142
143#[cfg(all(
145 feature = "NSActionCell",
146 feature = "NSCell",
147 feature = "NSTextFieldCell"
148))]
149impl NSPathComponentCell {
150 extern_methods!(
151 #[unsafe(method(init))]
152 #[unsafe(method_family = init)]
153 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
154 );
155}
156
157#[cfg(all(
159 feature = "NSActionCell",
160 feature = "NSCell",
161 feature = "NSTextFieldCell"
162))]
163impl NSPathComponentCell {
164 extern_methods!(
165 #[unsafe(method(new))]
166 #[unsafe(method_family = new)]
167 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
168 );
169}