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