objc2_app_kit/generated/
NSTableCellView.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSView, NSResponder, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(all(feature = "NSResponder", feature = "NSView"))]
15 pub struct NSTableCellView;
16);
17
18#[cfg(all(
19 feature = "NSAccessibilityProtocols",
20 feature = "NSResponder",
21 feature = "NSView"
22))]
23extern_conformance!(
24 unsafe impl NSAccessibility for NSTableCellView {}
25);
26
27#[cfg(all(
28 feature = "NSAccessibilityProtocols",
29 feature = "NSResponder",
30 feature = "NSView"
31))]
32extern_conformance!(
33 unsafe impl NSAccessibilityElementProtocol for NSTableCellView {}
34);
35
36#[cfg(all(feature = "NSAnimation", feature = "NSResponder", feature = "NSView"))]
37extern_conformance!(
38 unsafe impl NSAnimatablePropertyContainer for NSTableCellView {}
39);
40
41#[cfg(all(feature = "NSAppearance", feature = "NSResponder", feature = "NSView"))]
42extern_conformance!(
43 unsafe impl NSAppearanceCustomization for NSTableCellView {}
44);
45
46#[cfg(all(feature = "NSResponder", feature = "NSView"))]
47extern_conformance!(
48 unsafe impl NSCoding for NSTableCellView {}
49);
50
51#[cfg(all(feature = "NSDragging", feature = "NSResponder", feature = "NSView"))]
52extern_conformance!(
53 unsafe impl NSDraggingDestination for NSTableCellView {}
54);
55
56#[cfg(all(feature = "NSResponder", feature = "NSView"))]
57extern_conformance!(
58 unsafe impl NSObjectProtocol for NSTableCellView {}
59);
60
61#[cfg(all(
62 feature = "NSResponder",
63 feature = "NSUserInterfaceItemIdentification",
64 feature = "NSView"
65))]
66extern_conformance!(
67 unsafe impl NSUserInterfaceItemIdentification for NSTableCellView {}
68);
69
70#[cfg(all(feature = "NSResponder", feature = "NSView"))]
71impl NSTableCellView {
72 extern_methods!(
73 #[unsafe(method(objectValue))]
74 #[unsafe(method_family = none)]
75 pub unsafe fn objectValue(&self) -> Option<Retained<AnyObject>>;
76
77 #[unsafe(method(setObjectValue:))]
79 #[unsafe(method_family = none)]
80 pub unsafe fn setObjectValue(&self, object_value: Option<&AnyObject>);
81
82 #[cfg(all(feature = "NSControl", feature = "NSTextField"))]
83 #[unsafe(method(textField))]
84 #[unsafe(method_family = none)]
85 pub unsafe fn textField(&self) -> Option<Retained<NSTextField>>;
86
87 #[cfg(all(feature = "NSControl", feature = "NSTextField"))]
88 #[unsafe(method(setTextField:))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn setTextField(&self, text_field: Option<&NSTextField>);
92
93 #[cfg(all(feature = "NSControl", feature = "NSImageView"))]
94 #[unsafe(method(imageView))]
95 #[unsafe(method_family = none)]
96 pub unsafe fn imageView(&self) -> Option<Retained<NSImageView>>;
97
98 #[cfg(all(feature = "NSControl", feature = "NSImageView"))]
99 #[unsafe(method(setImageView:))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn setImageView(&self, image_view: Option<&NSImageView>);
103
104 #[cfg(feature = "NSCell")]
105 #[unsafe(method(backgroundStyle))]
106 #[unsafe(method_family = none)]
107 pub unsafe fn backgroundStyle(&self) -> NSBackgroundStyle;
108
109 #[cfg(feature = "NSCell")]
110 #[unsafe(method(setBackgroundStyle:))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn setBackgroundStyle(&self, background_style: NSBackgroundStyle);
114
115 #[cfg(feature = "NSTableView")]
116 #[unsafe(method(rowSizeStyle))]
117 #[unsafe(method_family = none)]
118 pub unsafe fn rowSizeStyle(&self) -> NSTableViewRowSizeStyle;
119
120 #[cfg(feature = "NSTableView")]
121 #[unsafe(method(setRowSizeStyle:))]
123 #[unsafe(method_family = none)]
124 pub unsafe fn setRowSizeStyle(&self, row_size_style: NSTableViewRowSizeStyle);
125
126 #[cfg(feature = "NSDraggingItem")]
127 #[unsafe(method(draggingImageComponents))]
128 #[unsafe(method_family = none)]
129 pub unsafe fn draggingImageComponents(&self)
130 -> Retained<NSArray<NSDraggingImageComponent>>;
131 );
132}
133
134#[cfg(all(feature = "NSResponder", feature = "NSView"))]
136impl NSTableCellView {
137 extern_methods!(
138 #[unsafe(method(initWithFrame:))]
139 #[unsafe(method_family = init)]
140 pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
141
142 #[unsafe(method(initWithCoder:))]
143 #[unsafe(method_family = init)]
144 pub unsafe fn initWithCoder(
145 this: Allocated<Self>,
146 coder: &NSCoder,
147 ) -> Option<Retained<Self>>;
148 );
149}
150
151#[cfg(all(feature = "NSResponder", feature = "NSView"))]
153impl NSTableCellView {
154 extern_methods!(
155 #[unsafe(method(init))]
156 #[unsafe(method_family = init)]
157 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
158 );
159}
160
161#[cfg(all(feature = "NSResponder", feature = "NSView"))]
163impl NSTableCellView {
164 extern_methods!(
165 #[unsafe(method(new))]
166 #[unsafe(method_family = new)]
167 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
168 );
169}