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))]
25unsafe impl NSAccessibility for NSTableRowView {}
26
27#[cfg(all(
28    feature = "NSAccessibilityProtocols",
29    feature = "NSResponder",
30    feature = "NSView"
31))]
32unsafe impl NSAccessibilityElementProtocol for NSTableRowView {}
33
34#[cfg(all(
35    feature = "NSAccessibilityProtocols",
36    feature = "NSResponder",
37    feature = "NSView"
38))]
39unsafe impl NSAccessibilityGroup for NSTableRowView {}
40
41#[cfg(all(
42    feature = "NSAccessibilityProtocols",
43    feature = "NSResponder",
44    feature = "NSView"
45))]
46unsafe impl NSAccessibilityRow for NSTableRowView {}
47
48#[cfg(all(feature = "NSAnimation", feature = "NSResponder", feature = "NSView"))]
49unsafe impl NSAnimatablePropertyContainer for NSTableRowView {}
50
51#[cfg(all(feature = "NSAppearance", feature = "NSResponder", feature = "NSView"))]
52unsafe impl NSAppearanceCustomization for NSTableRowView {}
53
54#[cfg(all(feature = "NSResponder", feature = "NSView"))]
55unsafe impl NSCoding for NSTableRowView {}
56
57#[cfg(all(feature = "NSDragging", feature = "NSResponder", feature = "NSView"))]
58unsafe impl NSDraggingDestination for NSTableRowView {}
59
60#[cfg(all(feature = "NSResponder", feature = "NSView"))]
61unsafe impl NSObjectProtocol for NSTableRowView {}
62
63#[cfg(all(
64    feature = "NSResponder",
65    feature = "NSUserInterfaceItemIdentification",
66    feature = "NSView"
67))]
68unsafe impl NSUserInterfaceItemIdentification for NSTableRowView {}
69
70#[cfg(all(feature = "NSResponder", feature = "NSView"))]
71impl NSTableRowView {
72    extern_methods!(
73        #[cfg(feature = "NSTableView")]
74        #[unsafe(method(selectionHighlightStyle))]
75        #[unsafe(method_family = none)]
76        pub unsafe fn selectionHighlightStyle(&self) -> NSTableViewSelectionHighlightStyle;
77
78        #[cfg(feature = "NSTableView")]
79        /// Setter for [`selectionHighlightStyle`][Self::selectionHighlightStyle].
80        #[unsafe(method(setSelectionHighlightStyle:))]
81        #[unsafe(method_family = none)]
82        pub unsafe fn setSelectionHighlightStyle(
83            &self,
84            selection_highlight_style: NSTableViewSelectionHighlightStyle,
85        );
86
87        #[unsafe(method(isEmphasized))]
88        #[unsafe(method_family = none)]
89        pub unsafe fn isEmphasized(&self) -> bool;
90
91        /// Setter for [`isEmphasized`][Self::isEmphasized].
92        #[unsafe(method(setEmphasized:))]
93        #[unsafe(method_family = none)]
94        pub unsafe fn setEmphasized(&self, emphasized: bool);
95
96        #[unsafe(method(isGroupRowStyle))]
97        #[unsafe(method_family = none)]
98        pub unsafe fn isGroupRowStyle(&self) -> bool;
99
100        /// Setter for [`isGroupRowStyle`][Self::isGroupRowStyle].
101        #[unsafe(method(setGroupRowStyle:))]
102        #[unsafe(method_family = none)]
103        pub unsafe fn setGroupRowStyle(&self, group_row_style: bool);
104
105        #[unsafe(method(isSelected))]
106        #[unsafe(method_family = none)]
107        pub unsafe fn isSelected(&self) -> bool;
108
109        /// Setter for [`isSelected`][Self::isSelected].
110        #[unsafe(method(setSelected:))]
111        #[unsafe(method_family = none)]
112        pub unsafe fn setSelected(&self, selected: bool);
113
114        #[unsafe(method(isPreviousRowSelected))]
115        #[unsafe(method_family = none)]
116        pub unsafe fn isPreviousRowSelected(&self) -> bool;
117
118        /// Setter for [`isPreviousRowSelected`][Self::isPreviousRowSelected].
119        #[unsafe(method(setPreviousRowSelected:))]
120        #[unsafe(method_family = none)]
121        pub unsafe fn setPreviousRowSelected(&self, previous_row_selected: bool);
122
123        #[unsafe(method(isNextRowSelected))]
124        #[unsafe(method_family = none)]
125        pub unsafe fn isNextRowSelected(&self) -> bool;
126
127        /// Setter for [`isNextRowSelected`][Self::isNextRowSelected].
128        #[unsafe(method(setNextRowSelected:))]
129        #[unsafe(method_family = none)]
130        pub unsafe fn setNextRowSelected(&self, next_row_selected: bool);
131
132        #[unsafe(method(isFloating))]
133        #[unsafe(method_family = none)]
134        pub unsafe fn isFloating(&self) -> bool;
135
136        /// Setter for [`isFloating`][Self::isFloating].
137        #[unsafe(method(setFloating:))]
138        #[unsafe(method_family = none)]
139        pub unsafe fn setFloating(&self, floating: bool);
140
141        #[unsafe(method(isTargetForDropOperation))]
142        #[unsafe(method_family = none)]
143        pub unsafe fn isTargetForDropOperation(&self) -> bool;
144
145        /// Setter for [`isTargetForDropOperation`][Self::isTargetForDropOperation].
146        #[unsafe(method(setTargetForDropOperation:))]
147        #[unsafe(method_family = none)]
148        pub unsafe fn setTargetForDropOperation(&self, target_for_drop_operation: bool);
149
150        #[cfg(feature = "NSTableView")]
151        #[unsafe(method(draggingDestinationFeedbackStyle))]
152        #[unsafe(method_family = none)]
153        pub unsafe fn draggingDestinationFeedbackStyle(
154            &self,
155        ) -> NSTableViewDraggingDestinationFeedbackStyle;
156
157        #[cfg(feature = "NSTableView")]
158        /// Setter for [`draggingDestinationFeedbackStyle`][Self::draggingDestinationFeedbackStyle].
159        #[unsafe(method(setDraggingDestinationFeedbackStyle:))]
160        #[unsafe(method_family = none)]
161        pub unsafe fn setDraggingDestinationFeedbackStyle(
162            &self,
163            dragging_destination_feedback_style: NSTableViewDraggingDestinationFeedbackStyle,
164        );
165
166        #[cfg(feature = "objc2-core-foundation")]
167        #[unsafe(method(indentationForDropOperation))]
168        #[unsafe(method_family = none)]
169        pub unsafe fn indentationForDropOperation(&self) -> CGFloat;
170
171        #[cfg(feature = "objc2-core-foundation")]
172        /// Setter for [`indentationForDropOperation`][Self::indentationForDropOperation].
173        #[unsafe(method(setIndentationForDropOperation:))]
174        #[unsafe(method_family = none)]
175        pub unsafe fn setIndentationForDropOperation(
176            &self,
177            indentation_for_drop_operation: CGFloat,
178        );
179
180        #[cfg(feature = "NSCell")]
181        #[unsafe(method(interiorBackgroundStyle))]
182        #[unsafe(method_family = none)]
183        pub unsafe fn interiorBackgroundStyle(&self) -> NSBackgroundStyle;
184
185        #[cfg(feature = "NSColor")]
186        #[unsafe(method(backgroundColor))]
187        #[unsafe(method_family = none)]
188        pub unsafe fn backgroundColor(&self) -> Retained<NSColor>;
189
190        #[cfg(feature = "NSColor")]
191        /// Setter for [`backgroundColor`][Self::backgroundColor].
192        #[unsafe(method(setBackgroundColor:))]
193        #[unsafe(method_family = none)]
194        pub unsafe fn setBackgroundColor(&self, background_color: &NSColor);
195
196        #[unsafe(method(drawBackgroundInRect:))]
197        #[unsafe(method_family = none)]
198        pub unsafe fn drawBackgroundInRect(&self, dirty_rect: NSRect);
199
200        #[unsafe(method(drawSelectionInRect:))]
201        #[unsafe(method_family = none)]
202        pub unsafe fn drawSelectionInRect(&self, dirty_rect: NSRect);
203
204        #[unsafe(method(drawSeparatorInRect:))]
205        #[unsafe(method_family = none)]
206        pub unsafe fn drawSeparatorInRect(&self, dirty_rect: NSRect);
207
208        #[unsafe(method(drawDraggingDestinationFeedbackInRect:))]
209        #[unsafe(method_family = none)]
210        pub unsafe fn drawDraggingDestinationFeedbackInRect(&self, dirty_rect: NSRect);
211
212        #[unsafe(method(viewAtColumn:))]
213        #[unsafe(method_family = none)]
214        pub unsafe fn viewAtColumn(&self, column: NSInteger) -> Option<Retained<AnyObject>>;
215
216        #[unsafe(method(numberOfColumns))]
217        #[unsafe(method_family = none)]
218        pub unsafe fn numberOfColumns(&self) -> NSInteger;
219    );
220}
221
222/// Methods declared on superclass `NSView`.
223#[cfg(all(feature = "NSResponder", feature = "NSView"))]
224impl NSTableRowView {
225    extern_methods!(
226        #[unsafe(method(initWithFrame:))]
227        #[unsafe(method_family = init)]
228        pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
229
230        #[unsafe(method(initWithCoder:))]
231        #[unsafe(method_family = init)]
232        pub unsafe fn initWithCoder(
233            this: Allocated<Self>,
234            coder: &NSCoder,
235        ) -> Option<Retained<Self>>;
236    );
237}
238
239/// Methods declared on superclass `NSResponder`.
240#[cfg(all(feature = "NSResponder", feature = "NSView"))]
241impl NSTableRowView {
242    extern_methods!(
243        #[unsafe(method(init))]
244        #[unsafe(method_family = init)]
245        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
246    );
247}
248
249/// Methods declared on superclass `NSObject`.
250#[cfg(all(feature = "NSResponder", feature = "NSView"))]
251impl NSTableRowView {
252    extern_methods!(
253        #[unsafe(method(new))]
254        #[unsafe(method_family = new)]
255        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
256    );
257}