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 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 fn initImageCell(this: Allocated<Self>, image: Option<&NSImage>) -> Retained<Self>;
64
65 #[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 fn branchImage(mtm: MainThreadMarker) -> Option<Retained<NSImage>>;
76
77 #[cfg(feature = "NSImage")]
78 #[unsafe(method(highlightedBranchImage))]
79 #[unsafe(method_family = none)]
80 pub 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 fn highlightColorInView(&self, control_view: &NSView) -> Option<Retained<NSColor>>;
86
87 #[unsafe(method(isLeaf))]
88 #[unsafe(method_family = none)]
89 pub fn isLeaf(&self) -> bool;
90
91 #[unsafe(method(setLeaf:))]
93 #[unsafe(method_family = none)]
94 pub fn setLeaf(&self, leaf: bool);
95
96 #[unsafe(method(isLoaded))]
97 #[unsafe(method_family = none)]
98 pub fn isLoaded(&self) -> bool;
99
100 #[unsafe(method(setLoaded:))]
102 #[unsafe(method_family = none)]
103 pub fn setLoaded(&self, loaded: bool);
104
105 #[unsafe(method(reset))]
106 #[unsafe(method_family = none)]
107 pub fn reset(&self);
108
109 #[unsafe(method(set))]
110 #[unsafe(method_family = none)]
111 pub fn set(&self);
112
113 #[cfg(feature = "NSImage")]
114 #[unsafe(method(image))]
115 #[unsafe(method_family = none)]
116 pub fn image(&self) -> Option<Retained<NSImage>>;
117
118 #[cfg(feature = "NSImage")]
119 #[unsafe(method(setImage:))]
121 #[unsafe(method_family = none)]
122 pub fn setImage(&self, image: Option<&NSImage>);
123
124 #[cfg(feature = "NSImage")]
125 #[unsafe(method(alternateImage))]
126 #[unsafe(method_family = none)]
127 pub fn alternateImage(&self) -> Option<Retained<NSImage>>;
128
129 #[cfg(feature = "NSImage")]
130 #[unsafe(method(setAlternateImage:))]
132 #[unsafe(method_family = none)]
133 pub fn setAlternateImage(&self, alternate_image: Option<&NSImage>);
134 );
135}
136
137#[cfg(feature = "NSCell")]
139impl NSBrowserCell {
140 extern_methods!(
141 #[unsafe(method(init))]
142 #[unsafe(method_family = init)]
143 pub fn init(this: Allocated<Self>) -> Retained<Self>;
144 );
145}
146
147#[cfg(feature = "NSCell")]
149impl NSBrowserCell {
150 extern_methods!(
151 #[unsafe(method(new))]
152 #[unsafe(method_family = new)]
153 pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
154 );
155}