icrate/generated/AppKit/
NSTableRowView.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use crate::common::*;
4use crate::AppKit::*;
5use crate::CoreData::*;
6use crate::Foundation::*;
7
8extern_class!(
9    #[derive(Debug, PartialEq, Eq, Hash)]
10    #[cfg(feature = "AppKit_NSTableRowView")]
11    pub struct NSTableRowView;
12
13    #[cfg(feature = "AppKit_NSTableRowView")]
14    unsafe impl ClassType for NSTableRowView {
15        #[inherits(NSResponder, NSObject)]
16        type Super = NSView;
17        type Mutability = MainThreadOnly;
18    }
19);
20
21#[cfg(feature = "AppKit_NSTableRowView")]
22unsafe impl NSAccessibility for NSTableRowView {}
23
24#[cfg(feature = "AppKit_NSTableRowView")]
25unsafe impl NSAccessibilityElementProtocol for NSTableRowView {}
26
27#[cfg(feature = "AppKit_NSTableRowView")]
28unsafe impl NSAccessibilityGroup for NSTableRowView {}
29
30#[cfg(feature = "AppKit_NSTableRowView")]
31unsafe impl NSAccessibilityRow for NSTableRowView {}
32
33#[cfg(feature = "AppKit_NSTableRowView")]
34unsafe impl NSAnimatablePropertyContainer for NSTableRowView {}
35
36#[cfg(feature = "AppKit_NSTableRowView")]
37unsafe impl NSAppearanceCustomization for NSTableRowView {}
38
39#[cfg(feature = "AppKit_NSTableRowView")]
40unsafe impl NSCoding for NSTableRowView {}
41
42#[cfg(feature = "AppKit_NSTableRowView")]
43unsafe impl NSDraggingDestination for NSTableRowView {}
44
45#[cfg(feature = "AppKit_NSTableRowView")]
46unsafe impl NSObjectProtocol for NSTableRowView {}
47
48#[cfg(feature = "AppKit_NSTableRowView")]
49unsafe impl NSUserInterfaceItemIdentification for NSTableRowView {}
50
51extern_methods!(
52    #[cfg(feature = "AppKit_NSTableRowView")]
53    unsafe impl NSTableRowView {
54        #[method(selectionHighlightStyle)]
55        pub unsafe fn selectionHighlightStyle(&self) -> NSTableViewSelectionHighlightStyle;
56
57        #[method(setSelectionHighlightStyle:)]
58        pub unsafe fn setSelectionHighlightStyle(
59            &self,
60            selection_highlight_style: NSTableViewSelectionHighlightStyle,
61        );
62
63        #[method(isEmphasized)]
64        pub unsafe fn isEmphasized(&self) -> bool;
65
66        #[method(setEmphasized:)]
67        pub unsafe fn setEmphasized(&self, emphasized: bool);
68
69        #[method(isGroupRowStyle)]
70        pub unsafe fn isGroupRowStyle(&self) -> bool;
71
72        #[method(setGroupRowStyle:)]
73        pub unsafe fn setGroupRowStyle(&self, group_row_style: bool);
74
75        #[method(isSelected)]
76        pub unsafe fn isSelected(&self) -> bool;
77
78        #[method(setSelected:)]
79        pub unsafe fn setSelected(&self, selected: bool);
80
81        #[method(isPreviousRowSelected)]
82        pub unsafe fn isPreviousRowSelected(&self) -> bool;
83
84        #[method(setPreviousRowSelected:)]
85        pub unsafe fn setPreviousRowSelected(&self, previous_row_selected: bool);
86
87        #[method(isNextRowSelected)]
88        pub unsafe fn isNextRowSelected(&self) -> bool;
89
90        #[method(setNextRowSelected:)]
91        pub unsafe fn setNextRowSelected(&self, next_row_selected: bool);
92
93        #[method(isFloating)]
94        pub unsafe fn isFloating(&self) -> bool;
95
96        #[method(setFloating:)]
97        pub unsafe fn setFloating(&self, floating: bool);
98
99        #[method(isTargetForDropOperation)]
100        pub unsafe fn isTargetForDropOperation(&self) -> bool;
101
102        #[method(setTargetForDropOperation:)]
103        pub unsafe fn setTargetForDropOperation(&self, target_for_drop_operation: bool);
104
105        #[method(draggingDestinationFeedbackStyle)]
106        pub unsafe fn draggingDestinationFeedbackStyle(
107            &self,
108        ) -> NSTableViewDraggingDestinationFeedbackStyle;
109
110        #[method(setDraggingDestinationFeedbackStyle:)]
111        pub unsafe fn setDraggingDestinationFeedbackStyle(
112            &self,
113            dragging_destination_feedback_style: NSTableViewDraggingDestinationFeedbackStyle,
114        );
115
116        #[method(indentationForDropOperation)]
117        pub unsafe fn indentationForDropOperation(&self) -> CGFloat;
118
119        #[method(setIndentationForDropOperation:)]
120        pub unsafe fn setIndentationForDropOperation(
121            &self,
122            indentation_for_drop_operation: CGFloat,
123        );
124
125        #[method(interiorBackgroundStyle)]
126        pub unsafe fn interiorBackgroundStyle(&self) -> NSBackgroundStyle;
127
128        #[cfg(feature = "AppKit_NSColor")]
129        #[method_id(@__retain_semantics Other backgroundColor)]
130        pub unsafe fn backgroundColor(&self) -> Id<NSColor>;
131
132        #[cfg(feature = "AppKit_NSColor")]
133        #[method(setBackgroundColor:)]
134        pub unsafe fn setBackgroundColor(&self, background_color: &NSColor);
135
136        #[method(drawBackgroundInRect:)]
137        pub unsafe fn drawBackgroundInRect(&self, dirty_rect: NSRect);
138
139        #[method(drawSelectionInRect:)]
140        pub unsafe fn drawSelectionInRect(&self, dirty_rect: NSRect);
141
142        #[method(drawSeparatorInRect:)]
143        pub unsafe fn drawSeparatorInRect(&self, dirty_rect: NSRect);
144
145        #[method(drawDraggingDestinationFeedbackInRect:)]
146        pub unsafe fn drawDraggingDestinationFeedbackInRect(&self, dirty_rect: NSRect);
147
148        #[method_id(@__retain_semantics Other viewAtColumn:)]
149        pub unsafe fn viewAtColumn(&self, column: NSInteger) -> Option<Id<AnyObject>>;
150
151        #[method(numberOfColumns)]
152        pub unsafe fn numberOfColumns(&self) -> NSInteger;
153    }
154);
155
156extern_methods!(
157    /// Methods declared on superclass `NSView`
158    #[cfg(feature = "AppKit_NSTableRowView")]
159    unsafe impl NSTableRowView {
160        #[method_id(@__retain_semantics Init initWithFrame:)]
161        pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Id<Self>;
162
163        #[cfg(feature = "Foundation_NSCoder")]
164        #[method_id(@__retain_semantics Init initWithCoder:)]
165        pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Option<Id<Self>>;
166    }
167);
168
169extern_methods!(
170    /// Methods declared on superclass `NSResponder`
171    #[cfg(feature = "AppKit_NSTableRowView")]
172    unsafe impl NSTableRowView {
173        #[method_id(@__retain_semantics Init init)]
174        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
175    }
176);
177
178extern_methods!(
179    /// Methods declared on superclass `NSObject`
180    #[cfg(feature = "AppKit_NSTableRowView")]
181    unsafe impl NSTableRowView {
182        #[method_id(@__retain_semantics New new)]
183        pub unsafe fn new(mtm: MainThreadMarker) -> Id<Self>;
184    }
185);