objc2_app_kit/generated/
NSTableCellView.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::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstablecellview?language=objc)
12    #[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))]
23unsafe impl NSAccessibility for NSTableCellView {}
24
25#[cfg(all(
26    feature = "NSAccessibilityProtocols",
27    feature = "NSResponder",
28    feature = "NSView"
29))]
30unsafe impl NSAccessibilityElementProtocol for NSTableCellView {}
31
32#[cfg(all(feature = "NSAnimation", feature = "NSResponder", feature = "NSView"))]
33unsafe impl NSAnimatablePropertyContainer for NSTableCellView {}
34
35#[cfg(all(feature = "NSAppearance", feature = "NSResponder", feature = "NSView"))]
36unsafe impl NSAppearanceCustomization for NSTableCellView {}
37
38#[cfg(all(feature = "NSResponder", feature = "NSView"))]
39unsafe impl NSCoding for NSTableCellView {}
40
41#[cfg(all(feature = "NSDragging", feature = "NSResponder", feature = "NSView"))]
42unsafe impl NSDraggingDestination for NSTableCellView {}
43
44#[cfg(all(feature = "NSResponder", feature = "NSView"))]
45unsafe impl NSObjectProtocol for NSTableCellView {}
46
47#[cfg(all(
48    feature = "NSResponder",
49    feature = "NSUserInterfaceItemIdentification",
50    feature = "NSView"
51))]
52unsafe impl NSUserInterfaceItemIdentification for NSTableCellView {}
53
54#[cfg(all(feature = "NSResponder", feature = "NSView"))]
55impl NSTableCellView {
56    extern_methods!(
57        #[unsafe(method(objectValue))]
58        #[unsafe(method_family = none)]
59        pub unsafe fn objectValue(&self) -> Option<Retained<AnyObject>>;
60
61        /// Setter for [`objectValue`][Self::objectValue].
62        #[unsafe(method(setObjectValue:))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn setObjectValue(&self, object_value: Option<&AnyObject>);
65
66        #[cfg(all(feature = "NSControl", feature = "NSTextField"))]
67        #[unsafe(method(textField))]
68        #[unsafe(method_family = none)]
69        pub unsafe fn textField(&self) -> Option<Retained<NSTextField>>;
70
71        #[cfg(all(feature = "NSControl", feature = "NSTextField"))]
72        /// Setter for [`textField`][Self::textField].
73        #[unsafe(method(setTextField:))]
74        #[unsafe(method_family = none)]
75        pub unsafe fn setTextField(&self, text_field: Option<&NSTextField>);
76
77        #[cfg(all(feature = "NSControl", feature = "NSImageView"))]
78        #[unsafe(method(imageView))]
79        #[unsafe(method_family = none)]
80        pub unsafe fn imageView(&self) -> Option<Retained<NSImageView>>;
81
82        #[cfg(all(feature = "NSControl", feature = "NSImageView"))]
83        /// Setter for [`imageView`][Self::imageView].
84        #[unsafe(method(setImageView:))]
85        #[unsafe(method_family = none)]
86        pub unsafe fn setImageView(&self, image_view: Option<&NSImageView>);
87
88        #[cfg(feature = "NSCell")]
89        #[unsafe(method(backgroundStyle))]
90        #[unsafe(method_family = none)]
91        pub unsafe fn backgroundStyle(&self) -> NSBackgroundStyle;
92
93        #[cfg(feature = "NSCell")]
94        /// Setter for [`backgroundStyle`][Self::backgroundStyle].
95        #[unsafe(method(setBackgroundStyle:))]
96        #[unsafe(method_family = none)]
97        pub unsafe fn setBackgroundStyle(&self, background_style: NSBackgroundStyle);
98
99        #[cfg(feature = "NSTableView")]
100        #[unsafe(method(rowSizeStyle))]
101        #[unsafe(method_family = none)]
102        pub unsafe fn rowSizeStyle(&self) -> NSTableViewRowSizeStyle;
103
104        #[cfg(feature = "NSTableView")]
105        /// Setter for [`rowSizeStyle`][Self::rowSizeStyle].
106        #[unsafe(method(setRowSizeStyle:))]
107        #[unsafe(method_family = none)]
108        pub unsafe fn setRowSizeStyle(&self, row_size_style: NSTableViewRowSizeStyle);
109
110        #[cfg(feature = "NSDraggingItem")]
111        #[unsafe(method(draggingImageComponents))]
112        #[unsafe(method_family = none)]
113        pub unsafe fn draggingImageComponents(&self)
114            -> Retained<NSArray<NSDraggingImageComponent>>;
115    );
116}
117
118/// Methods declared on superclass `NSView`.
119#[cfg(all(feature = "NSResponder", feature = "NSView"))]
120impl NSTableCellView {
121    extern_methods!(
122        #[unsafe(method(initWithFrame:))]
123        #[unsafe(method_family = init)]
124        pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
125
126        #[unsafe(method(initWithCoder:))]
127        #[unsafe(method_family = init)]
128        pub unsafe fn initWithCoder(
129            this: Allocated<Self>,
130            coder: &NSCoder,
131        ) -> Option<Retained<Self>>;
132    );
133}
134
135/// Methods declared on superclass `NSResponder`.
136#[cfg(all(feature = "NSResponder", feature = "NSView"))]
137impl NSTableCellView {
138    extern_methods!(
139        #[unsafe(method(init))]
140        #[unsafe(method_family = init)]
141        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
142    );
143}
144
145/// Methods declared on superclass `NSObject`.
146#[cfg(all(feature = "NSResponder", feature = "NSView"))]
147impl NSTableCellView {
148    extern_methods!(
149        #[unsafe(method(new))]
150        #[unsafe(method_family = new)]
151        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
152    );
153}