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 unsafe 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 unsafe fn setSelectionHighlightStyle(
103            &self,
104            selection_highlight_style: NSTableViewSelectionHighlightStyle,
105        );
106
107        #[unsafe(method(isEmphasized))]
108        #[unsafe(method_family = none)]
109        pub unsafe fn isEmphasized(&self) -> bool;
110
111        /// Setter for [`isEmphasized`][Self::isEmphasized].
112        #[unsafe(method(setEmphasized:))]
113        #[unsafe(method_family = none)]
114        pub unsafe fn setEmphasized(&self, emphasized: bool);
115
116        #[unsafe(method(isGroupRowStyle))]
117        #[unsafe(method_family = none)]
118        pub unsafe fn isGroupRowStyle(&self) -> bool;
119
120        /// Setter for [`isGroupRowStyle`][Self::isGroupRowStyle].
121        #[unsafe(method(setGroupRowStyle:))]
122        #[unsafe(method_family = none)]
123        pub unsafe fn setGroupRowStyle(&self, group_row_style: bool);
124
125        #[unsafe(method(isSelected))]
126        #[unsafe(method_family = none)]
127        pub unsafe fn isSelected(&self) -> bool;
128
129        /// Setter for [`isSelected`][Self::isSelected].
130        #[unsafe(method(setSelected:))]
131        #[unsafe(method_family = none)]
132        pub unsafe fn setSelected(&self, selected: bool);
133
134        #[unsafe(method(isPreviousRowSelected))]
135        #[unsafe(method_family = none)]
136        pub unsafe fn isPreviousRowSelected(&self) -> bool;
137
138        /// Setter for [`isPreviousRowSelected`][Self::isPreviousRowSelected].
139        #[unsafe(method(setPreviousRowSelected:))]
140        #[unsafe(method_family = none)]
141        pub unsafe fn setPreviousRowSelected(&self, previous_row_selected: bool);
142
143        #[unsafe(method(isNextRowSelected))]
144        #[unsafe(method_family = none)]
145        pub unsafe fn isNextRowSelected(&self) -> bool;
146
147        /// Setter for [`isNextRowSelected`][Self::isNextRowSelected].
148        #[unsafe(method(setNextRowSelected:))]
149        #[unsafe(method_family = none)]
150        pub unsafe fn setNextRowSelected(&self, next_row_selected: bool);
151
152        #[unsafe(method(isFloating))]
153        #[unsafe(method_family = none)]
154        pub unsafe fn isFloating(&self) -> bool;
155
156        /// Setter for [`isFloating`][Self::isFloating].
157        #[unsafe(method(setFloating:))]
158        #[unsafe(method_family = none)]
159        pub unsafe fn setFloating(&self, floating: bool);
160
161        #[unsafe(method(isTargetForDropOperation))]
162        #[unsafe(method_family = none)]
163        pub unsafe fn isTargetForDropOperation(&self) -> bool;
164
165        /// Setter for [`isTargetForDropOperation`][Self::isTargetForDropOperation].
166        #[unsafe(method(setTargetForDropOperation:))]
167        #[unsafe(method_family = none)]
168        pub unsafe fn setTargetForDropOperation(&self, target_for_drop_operation: bool);
169
170        #[cfg(feature = "NSTableView")]
171        #[unsafe(method(draggingDestinationFeedbackStyle))]
172        #[unsafe(method_family = none)]
173        pub unsafe 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 unsafe 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 unsafe 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 unsafe fn setIndentationForDropOperation(
196            &self,
197            indentation_for_drop_operation: CGFloat,
198        );
199
200        #[cfg(feature = "NSCell")]
201        #[unsafe(method(interiorBackgroundStyle))]
202        #[unsafe(method_family = none)]
203        pub unsafe fn interiorBackgroundStyle(&self) -> NSBackgroundStyle;
204
205        #[cfg(feature = "NSColor")]
206        #[unsafe(method(backgroundColor))]
207        #[unsafe(method_family = none)]
208        pub unsafe fn backgroundColor(&self) -> Retained<NSColor>;
209
210        #[cfg(feature = "NSColor")]
211        /// Setter for [`backgroundColor`][Self::backgroundColor].
212        #[unsafe(method(setBackgroundColor:))]
213        #[unsafe(method_family = none)]
214        pub unsafe fn setBackgroundColor(&self, background_color: &NSColor);
215
216        #[unsafe(method(drawBackgroundInRect:))]
217        #[unsafe(method_family = none)]
218        pub unsafe fn drawBackgroundInRect(&self, dirty_rect: NSRect);
219
220        #[unsafe(method(drawSelectionInRect:))]
221        #[unsafe(method_family = none)]
222        pub unsafe fn drawSelectionInRect(&self, dirty_rect: NSRect);
223
224        #[unsafe(method(drawSeparatorInRect:))]
225        #[unsafe(method_family = none)]
226        pub unsafe fn drawSeparatorInRect(&self, dirty_rect: NSRect);
227
228        #[unsafe(method(drawDraggingDestinationFeedbackInRect:))]
229        #[unsafe(method_family = none)]
230        pub unsafe fn drawDraggingDestinationFeedbackInRect(&self, dirty_rect: NSRect);
231
232        #[unsafe(method(viewAtColumn:))]
233        #[unsafe(method_family = none)]
234        pub unsafe fn viewAtColumn(&self, column: NSInteger) -> Option<Retained<AnyObject>>;
235
236        #[unsafe(method(numberOfColumns))]
237        #[unsafe(method_family = none)]
238        pub unsafe fn numberOfColumns(&self) -> NSInteger;
239    );
240}
241
242/// Methods declared on superclass `NSView`.
243#[cfg(all(feature = "NSResponder", feature = "NSView"))]
244impl NSTableRowView {
245    extern_methods!(
246        #[unsafe(method(initWithFrame:))]
247        #[unsafe(method_family = init)]
248        pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
249
250        #[unsafe(method(initWithCoder:))]
251        #[unsafe(method_family = init)]
252        pub unsafe fn initWithCoder(
253            this: Allocated<Self>,
254            coder: &NSCoder,
255        ) -> Option<Retained<Self>>;
256    );
257}
258
259/// Methods declared on superclass `NSResponder`.
260#[cfg(all(feature = "NSResponder", feature = "NSView"))]
261impl NSTableRowView {
262    extern_methods!(
263        #[unsafe(method(init))]
264        #[unsafe(method_family = init)]
265        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
266    );
267}
268
269/// Methods declared on superclass `NSObject`.
270#[cfg(all(feature = "NSResponder", feature = "NSView"))]
271impl NSTableRowView {
272    extern_methods!(
273        #[unsafe(method(new))]
274        #[unsafe(method_family = new)]
275        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
276    );
277}