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"))]
19unsafe impl NSAccessibility for NSBrowserCell {}
20
21#[cfg(all(feature = "NSAccessibilityProtocols", feature = "NSCell"))]
22unsafe impl NSAccessibilityElementProtocol for NSBrowserCell {}
23
24#[cfg(feature = "NSCell")]
25unsafe impl NSCoding for NSBrowserCell {}
26
27#[cfg(feature = "NSCell")]
28unsafe impl NSCopying for NSBrowserCell {}
29
30#[cfg(feature = "NSCell")]
31unsafe impl CopyingHelper for NSBrowserCell {
32 type Result = Self;
33}
34
35#[cfg(feature = "NSCell")]
36unsafe impl NSObjectProtocol for NSBrowserCell {}
37
38#[cfg(all(feature = "NSCell", feature = "NSUserInterfaceItemIdentification"))]
39unsafe impl NSUserInterfaceItemIdentification for NSBrowserCell {}
40
41#[cfg(feature = "NSCell")]
42impl NSBrowserCell {
43 extern_methods!(
44 #[unsafe(method(initTextCell:))]
45 #[unsafe(method_family = init)]
46 pub unsafe fn initTextCell(this: Allocated<Self>, string: &NSString) -> Retained<Self>;
47
48 #[cfg(feature = "NSImage")]
49 #[unsafe(method(initImageCell:))]
50 #[unsafe(method_family = init)]
51 pub unsafe fn initImageCell(
52 this: Allocated<Self>,
53 image: Option<&NSImage>,
54 ) -> Retained<Self>;
55
56 #[unsafe(method(initWithCoder:))]
57 #[unsafe(method_family = init)]
58 pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Retained<Self>;
59
60 #[cfg(feature = "NSImage")]
61 #[unsafe(method(branchImage))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn branchImage(mtm: MainThreadMarker) -> Option<Retained<NSImage>>;
64
65 #[cfg(feature = "NSImage")]
66 #[unsafe(method(highlightedBranchImage))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn highlightedBranchImage(mtm: MainThreadMarker) -> Option<Retained<NSImage>>;
69
70 #[cfg(all(feature = "NSColor", feature = "NSResponder", feature = "NSView"))]
71 #[unsafe(method(highlightColorInView:))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn highlightColorInView(
74 &self,
75 control_view: &NSView,
76 ) -> Option<Retained<NSColor>>;
77
78 #[unsafe(method(isLeaf))]
79 #[unsafe(method_family = none)]
80 pub unsafe fn isLeaf(&self) -> bool;
81
82 #[unsafe(method(setLeaf:))]
84 #[unsafe(method_family = none)]
85 pub unsafe fn setLeaf(&self, leaf: bool);
86
87 #[unsafe(method(isLoaded))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn isLoaded(&self) -> bool;
90
91 #[unsafe(method(setLoaded:))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn setLoaded(&self, loaded: bool);
95
96 #[unsafe(method(reset))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn reset(&self);
99
100 #[unsafe(method(set))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn set(&self);
103
104 #[cfg(feature = "NSImage")]
105 #[unsafe(method(image))]
106 #[unsafe(method_family = none)]
107 pub unsafe fn image(&self) -> Option<Retained<NSImage>>;
108
109 #[cfg(feature = "NSImage")]
110 #[unsafe(method(setImage:))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn setImage(&self, image: Option<&NSImage>);
114
115 #[cfg(feature = "NSImage")]
116 #[unsafe(method(alternateImage))]
117 #[unsafe(method_family = none)]
118 pub unsafe fn alternateImage(&self) -> Option<Retained<NSImage>>;
119
120 #[cfg(feature = "NSImage")]
121 #[unsafe(method(setAlternateImage:))]
123 #[unsafe(method_family = none)]
124 pub unsafe fn setAlternateImage(&self, alternate_image: Option<&NSImage>);
125 );
126}
127
128#[cfg(feature = "NSCell")]
130impl NSBrowserCell {
131 extern_methods!(
132 #[unsafe(method(init))]
133 #[unsafe(method_family = init)]
134 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
135 );
136}
137
138#[cfg(feature = "NSCell")]
140impl NSBrowserCell {
141 extern_methods!(
142 #[unsafe(method(new))]
143 #[unsafe(method_family = new)]
144 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
145 );
146}