objc2_app_kit/generated/
NSTableRowView.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstablerowview?language=objc)
14    #[unsafe(super(NSView, NSResponder, NSObject))]
15    #[derive(Debug, PartialEq, Eq, Hash)]
16    #[cfg(all(feature = "NSResponder", feature = "NSView"))]
17    pub struct NSTableRowView;
18);
19
20#[cfg(all(
21    feature = "NSAccessibilityProtocols",
22    feature = "NSResponder",
23    feature = "NSView"
24))]
25extern_conformance!(
26    unsafe impl NSAccessibility for NSTableRowView {}
27);
28
29#[cfg(all(
30    feature = "NSAccessibilityProtocols",
31    feature = "NSResponder",
32    feature = "NSView"
33))]
34extern_conformance!(
35    unsafe impl NSAccessibilityElementProtocol for NSTableRowView {}
36);
37
38#[cfg(all(
39    feature = "NSAccessibilityProtocols",
40    feature = "NSResponder",
41    feature = "NSView"
42))]
43extern_conformance!(
44    unsafe impl NSAccessibilityGroup for NSTableRowView {}
45);
46
47#[cfg(all(
48    feature = "NSAccessibilityProtocols",
49    feature = "NSResponder",
50    feature = "NSView"
51))]
52extern_conformance!(
53    unsafe impl NSAccessibilityRow for NSTableRowView {}
54);
55
56#[cfg(all(feature = "NSAnimation", feature = "NSResponder", feature = "NSView"))]
57extern_conformance!(
58    unsafe impl NSAnimatablePropertyContainer for NSTableRowView {}
59);
60
61#[cfg(all(feature = "NSAppearance", feature = "NSResponder", feature = "NSView"))]
62extern_conformance!(
63    unsafe impl NSAppearanceCustomization for NSTableRowView {}
64);
65
66#[cfg(all(feature = "NSResponder", feature = "NSView"))]
67extern_conformance!(
68    unsafe impl NSCoding for NSTableRowView {}
69);
70
71#[cfg(all(feature = "NSDragging", feature = "NSResponder", feature = "NSView"))]
72extern_conformance!(
73    unsafe impl NSDraggingDestination for NSTableRowView {}
74);
75
76#[cfg(all(feature = "NSResponder", feature = "NSView"))]
77extern_conformance!(
78    unsafe impl NSObjectProtocol for NSTableRowView {}
79);
80
81#[cfg(all(
82    feature = "NSResponder",
83    feature = "NSUserInterfaceItemIdentification",
84    feature = "NSView"
85))]
86extern_conformance!(
87    unsafe impl NSUserInterfaceItemIdentification for NSTableRowView {}
88);
89
90#[cfg(all(feature = "NSResponder", feature = "NSView"))]
91impl NSTableRowView {
92    extern_methods!(
93        #[cfg(feature = "NSTableView")]
94        #[unsafe(method(selectionHighlightStyle))]
95        #[unsafe(method_family = none)]
96        pub fn selectionHighlightStyle(&self) -> NSTableViewSelectionHighlightStyle;
97
98        #[cfg(feature = "NSTableView")]
99        /// Setter for [`selectionHighlightStyle`][Self::selectionHighlightStyle].
100        #[unsafe(method(setSelectionHighlightStyle:))]
101        #[unsafe(method_family = none)]
102        pub fn setSelectionHighlightStyle(
103            &self,
104            selection_highlight_style: NSTableViewSelectionHighlightStyle,
105        );
106
107        #[unsafe(method(isEmphasized))]
108        #[unsafe(method_family = none)]
109        pub fn isEmphasized(&self) -> bool;
110
111        /// Setter for [`isEmphasized`][Self::isEmphasized].
112        #[unsafe(method(setEmphasized:))]
113        #[unsafe(method_family = none)]
114        pub fn setEmphasized(&self, emphasized: bool);
115
116        #[unsafe(method(isGroupRowStyle))]
117        #[unsafe(method_family = none)]
118        pub fn isGroupRowStyle(&self) -> bool;
119
120        /// Setter for [`isGroupRowStyle`][Self::isGroupRowStyle].
121        #[unsafe(method(setGroupRowStyle:))]
122        #[unsafe(method_family = none)]
123        pub fn setGroupRowStyle(&self, group_row_style: bool);
124
125        #[unsafe(method(isSelected))]
126        #[unsafe(method_family = none)]
127        pub fn isSelected(&self) -> bool;
128
129        /// Setter for [`isSelected`][Self::isSelected].
130        #[unsafe(method(setSelected:))]
131        #[unsafe(method_family = none)]
132        pub fn setSelected(&self, selected: bool);
133
134        #[unsafe(method(isPreviousRowSelected))]
135        #[unsafe(method_family = none)]
136        pub fn isPreviousRowSelected(&self) -> bool;
137
138        /// Setter for [`isPreviousRowSelected`][Self::isPreviousRowSelected].
139        #[unsafe(method(setPreviousRowSelected:))]
140        #[unsafe(method_family = none)]
141        pub fn setPreviousRowSelected(&self, previous_row_selected: bool);
142
143        #[unsafe(method(isNextRowSelected))]
144        #[unsafe(method_family = none)]
145        pub fn isNextRowSelected(&self) -> bool;
146
147        /// Setter for [`isNextRowSelected`][Self::isNextRowSelected].
148        #[unsafe(method(setNextRowSelected:))]
149        #[unsafe(method_family = none)]
150        pub fn setNextRowSelected(&self, next_row_selected: bool);
151
152        #[unsafe(method(isFloating))]
153        #[unsafe(method_family = none)]
154        pub fn isFloating(&self) -> bool;
155
156        /// Setter for [`isFloating`][Self::isFloating].
157        #[unsafe(method(setFloating:))]
158        #[unsafe(method_family = none)]
159        pub fn setFloating(&self, floating: bool);
160
161        #[unsafe(method(isTargetForDropOperation))]
162        #[unsafe(method_family = none)]
163        pub fn isTargetForDropOperation(&self) -> bool;
164
165        /// Setter for [`isTargetForDropOperation`][Self::isTargetForDropOperation].
166        #[unsafe(method(setTargetForDropOperation:))]
167        #[unsafe(method_family = none)]
168        pub fn setTargetForDropOperation(&self, target_for_drop_operation: bool);
169
170        #[cfg(feature = "NSTableView")]
171        #[unsafe(method(draggingDestinationFeedbackStyle))]
172        #[unsafe(method_family = none)]
173        pub fn draggingDestinationFeedbackStyle(
174            &self,
175        ) -> NSTableViewDraggingDestinationFeedbackStyle;
176
177        #[cfg(feature = "NSTableView")]
178        /// Setter for [`draggingDestinationFeedbackStyle`][Self::draggingDestinationFeedbackStyle].
179        #[unsafe(method(setDraggingDestinationFeedbackStyle:))]
180        #[unsafe(method_family = none)]
181        pub fn setDraggingDestinationFeedbackStyle(
182            &self,
183            dragging_destination_feedback_style: NSTableViewDraggingDestinationFeedbackStyle,
184        );
185
186        #[cfg(feature = "objc2-core-foundation")]
187        #[unsafe(method(indentationForDropOperation))]
188        #[unsafe(method_family = none)]
189        pub fn indentationForDropOperation(&self) -> CGFloat;
190
191        #[cfg(feature = "objc2-core-foundation")]
192        /// Setter for [`indentationForDropOperation`][Self::indentationForDropOperation].
193        #[unsafe(method(setIndentationForDropOperation:))]
194        #[unsafe(method_family = none)]
195        pub fn setIndentationForDropOperation(&self, indentation_for_drop_operation: CGFloat);
196
197        #[cfg(feature = "NSCell")]
198        #[unsafe(method(interiorBackgroundStyle))]
199        #[unsafe(method_family = none)]
200        pub fn interiorBackgroundStyle(&self) -> NSBackgroundStyle;
201
202        #[cfg(feature = "NSColor")]
203        #[unsafe(method(backgroundColor))]
204        #[unsafe(method_family = none)]
205        pub fn backgroundColor(&self) -> Retained<NSColor>;
206
207        #[cfg(feature = "NSColor")]
208        /// Setter for [`backgroundColor`][Self::backgroundColor].
209        ///
210        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
211        #[unsafe(method(setBackgroundColor:))]
212        #[unsafe(method_family = none)]
213        pub fn setBackgroundColor(&self, background_color: &NSColor);
214
215        #[unsafe(method(drawBackgroundInRect:))]
216        #[unsafe(method_family = none)]
217        pub fn drawBackgroundInRect(&self, dirty_rect: NSRect);
218
219        #[unsafe(method(drawSelectionInRect:))]
220        #[unsafe(method_family = none)]
221        pub fn drawSelectionInRect(&self, dirty_rect: NSRect);
222
223        #[unsafe(method(drawSeparatorInRect:))]
224        #[unsafe(method_family = none)]
225        pub fn drawSeparatorInRect(&self, dirty_rect: NSRect);
226
227        #[unsafe(method(drawDraggingDestinationFeedbackInRect:))]
228        #[unsafe(method_family = none)]
229        pub fn drawDraggingDestinationFeedbackInRect(&self, dirty_rect: NSRect);
230
231        #[unsafe(method(viewAtColumn:))]
232        #[unsafe(method_family = none)]
233        pub fn viewAtColumn(&self, column: NSInteger) -> Option<Retained<AnyObject>>;
234
235        #[unsafe(method(numberOfColumns))]
236        #[unsafe(method_family = none)]
237        pub fn numberOfColumns(&self) -> NSInteger;
238    );
239}
240
241/// Methods declared on superclass `NSView`.
242#[cfg(all(feature = "NSResponder", feature = "NSView"))]
243impl NSTableRowView {
244    extern_methods!(
245        #[unsafe(method(initWithFrame:))]
246        #[unsafe(method_family = init)]
247        pub fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
248
249        /// # Safety
250        ///
251        /// `coder` possibly has further requirements.
252        #[unsafe(method(initWithCoder:))]
253        #[unsafe(method_family = init)]
254        pub unsafe fn initWithCoder(
255            this: Allocated<Self>,
256            coder: &NSCoder,
257        ) -> Option<Retained<Self>>;
258    );
259}
260
261/// Methods declared on superclass `NSResponder`.
262#[cfg(all(feature = "NSResponder", feature = "NSView"))]
263impl NSTableRowView {
264    extern_methods!(
265        #[unsafe(method(init))]
266        #[unsafe(method_family = init)]
267        pub fn init(this: Allocated<Self>) -> Retained<Self>;
268    );
269}
270
271/// Methods declared on superclass `NSObject`.
272#[cfg(all(feature = "NSResponder", feature = "NSView"))]
273impl NSTableRowView {
274    extern_methods!(
275        #[unsafe(method(new))]
276        #[unsafe(method_family = new)]
277        pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
278    );
279}