icrate/generated/AppKit/
NSTableCellView.rs1use crate::common::*;
4use crate::AppKit::*;
5use crate::CoreData::*;
6use crate::Foundation::*;
7
8extern_class!(
9 #[derive(Debug, PartialEq, Eq, Hash)]
10 #[cfg(feature = "AppKit_NSTableCellView")]
11 pub struct NSTableCellView;
12
13 #[cfg(feature = "AppKit_NSTableCellView")]
14 unsafe impl ClassType for NSTableCellView {
15 #[inherits(NSResponder, NSObject)]
16 type Super = NSView;
17 type Mutability = MainThreadOnly;
18 }
19);
20
21#[cfg(feature = "AppKit_NSTableCellView")]
22unsafe impl NSAccessibility for NSTableCellView {}
23
24#[cfg(feature = "AppKit_NSTableCellView")]
25unsafe impl NSAccessibilityElementProtocol for NSTableCellView {}
26
27#[cfg(feature = "AppKit_NSTableCellView")]
28unsafe impl NSAnimatablePropertyContainer for NSTableCellView {}
29
30#[cfg(feature = "AppKit_NSTableCellView")]
31unsafe impl NSAppearanceCustomization for NSTableCellView {}
32
33#[cfg(feature = "AppKit_NSTableCellView")]
34unsafe impl NSCoding for NSTableCellView {}
35
36#[cfg(feature = "AppKit_NSTableCellView")]
37unsafe impl NSDraggingDestination for NSTableCellView {}
38
39#[cfg(feature = "AppKit_NSTableCellView")]
40unsafe impl NSObjectProtocol for NSTableCellView {}
41
42#[cfg(feature = "AppKit_NSTableCellView")]
43unsafe impl NSUserInterfaceItemIdentification for NSTableCellView {}
44
45extern_methods!(
46 #[cfg(feature = "AppKit_NSTableCellView")]
47 unsafe impl NSTableCellView {
48 #[method_id(@__retain_semantics Other objectValue)]
49 pub unsafe fn objectValue(&self) -> Option<Id<AnyObject>>;
50
51 #[method(setObjectValue:)]
52 pub unsafe fn setObjectValue(&self, object_value: Option<&AnyObject>);
53
54 #[cfg(feature = "AppKit_NSTextField")]
55 #[method_id(@__retain_semantics Other textField)]
56 pub unsafe fn textField(&self) -> Option<Id<NSTextField>>;
57
58 #[cfg(feature = "AppKit_NSTextField")]
59 #[method(setTextField:)]
60 pub unsafe fn setTextField(&self, text_field: Option<&NSTextField>);
61
62 #[cfg(feature = "AppKit_NSImageView")]
63 #[method_id(@__retain_semantics Other imageView)]
64 pub unsafe fn imageView(&self) -> Option<Id<NSImageView>>;
65
66 #[cfg(feature = "AppKit_NSImageView")]
67 #[method(setImageView:)]
68 pub unsafe fn setImageView(&self, image_view: Option<&NSImageView>);
69
70 #[method(backgroundStyle)]
71 pub unsafe fn backgroundStyle(&self) -> NSBackgroundStyle;
72
73 #[method(setBackgroundStyle:)]
74 pub unsafe fn setBackgroundStyle(&self, background_style: NSBackgroundStyle);
75
76 #[method(rowSizeStyle)]
77 pub unsafe fn rowSizeStyle(&self) -> NSTableViewRowSizeStyle;
78
79 #[method(setRowSizeStyle:)]
80 pub unsafe fn setRowSizeStyle(&self, row_size_style: NSTableViewRowSizeStyle);
81
82 #[cfg(all(
83 feature = "AppKit_NSDraggingImageComponent",
84 feature = "Foundation_NSArray"
85 ))]
86 #[method_id(@__retain_semantics Other draggingImageComponents)]
87 pub unsafe fn draggingImageComponents(&self) -> Id<NSArray<NSDraggingImageComponent>>;
88 }
89);
90
91extern_methods!(
92 #[cfg(feature = "AppKit_NSTableCellView")]
94 unsafe impl NSTableCellView {
95 #[method_id(@__retain_semantics Init initWithFrame:)]
96 pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Id<Self>;
97
98 #[cfg(feature = "Foundation_NSCoder")]
99 #[method_id(@__retain_semantics Init initWithCoder:)]
100 pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Option<Id<Self>>;
101 }
102);
103
104extern_methods!(
105 #[cfg(feature = "AppKit_NSTableCellView")]
107 unsafe impl NSTableCellView {
108 #[method_id(@__retain_semantics Init init)]
109 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
110 }
111);
112
113extern_methods!(
114 #[cfg(feature = "AppKit_NSTableCellView")]
116 unsafe impl NSTableCellView {
117 #[method_id(@__retain_semantics New new)]
118 pub unsafe fn new(mtm: MainThreadMarker) -> Id<Self>;
119 }
120);