1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "AppKit_NSWindowTab")]
pub struct NSWindowTab;
#[cfg(feature = "AppKit_NSWindowTab")]
unsafe impl ClassType for NSWindowTab {
type Super = NSObject;
}
);
#[cfg(feature = "AppKit_NSWindowTab")]
unsafe impl NSObjectProtocol for NSWindowTab {}
extern_methods!(
#[cfg(feature = "AppKit_NSWindowTab")]
unsafe impl NSWindowTab {
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other title)]
pub unsafe fn title(&self) -> Id<NSString, Shared>;
#[cfg(feature = "Foundation_NSString")]
#[method(setTitle:)]
pub unsafe fn setTitle(&self, title: Option<&NSString>);
#[cfg(feature = "Foundation_NSAttributedString")]
#[method_id(@__retain_semantics Other attributedTitle)]
pub unsafe fn attributedTitle(&self) -> Option<Id<NSAttributedString, Shared>>;
#[cfg(feature = "Foundation_NSAttributedString")]
#[method(setAttributedTitle:)]
pub unsafe fn setAttributedTitle(&self, attributed_title: Option<&NSAttributedString>);
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other toolTip)]
pub unsafe fn toolTip(&self) -> Id<NSString, Shared>;
#[cfg(feature = "Foundation_NSString")]
#[method(setToolTip:)]
pub unsafe fn setToolTip(&self, tool_tip: Option<&NSString>);
#[cfg(feature = "AppKit_NSView")]
#[method_id(@__retain_semantics Other accessoryView)]
pub unsafe fn accessoryView(&self) -> Option<Id<NSView, Shared>>;
#[cfg(feature = "AppKit_NSView")]
#[method(setAccessoryView:)]
pub unsafe fn setAccessoryView(&self, accessory_view: Option<&NSView>);
}
);