objc2_app_kit/generated/
NSWindowTab.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct NSWindowTab;
15);
16
17extern_conformance!(
18 unsafe impl NSObjectProtocol for NSWindowTab {}
19);
20
21impl NSWindowTab {
22 extern_methods!(
23 #[unsafe(method(title))]
24 #[unsafe(method_family = none)]
25 pub unsafe fn title(&self) -> Retained<NSString>;
26
27 #[unsafe(method(setTitle:))]
29 #[unsafe(method_family = none)]
30 pub unsafe fn setTitle(&self, title: Option<&NSString>);
31
32 #[unsafe(method(attributedTitle))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn attributedTitle(&self) -> Option<Retained<NSAttributedString>>;
35
36 #[unsafe(method(setAttributedTitle:))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn setAttributedTitle(&self, attributed_title: Option<&NSAttributedString>);
40
41 #[unsafe(method(toolTip))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn toolTip(&self) -> Retained<NSString>;
44
45 #[unsafe(method(setToolTip:))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn setToolTip(&self, tool_tip: Option<&NSString>);
49
50 #[cfg(all(feature = "NSResponder", feature = "NSView"))]
51 #[unsafe(method(accessoryView))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn accessoryView(&self, mtm: MainThreadMarker) -> Option<Retained<NSView>>;
54
55 #[cfg(all(feature = "NSResponder", feature = "NSView"))]
56 #[unsafe(method(setAccessoryView:))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn setAccessoryView(&self, accessory_view: Option<&NSView>);
60 );
61}
62
63impl NSWindowTab {
65 extern_methods!(
66 #[unsafe(method(init))]
67 #[unsafe(method_family = init)]
68 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
69
70 #[unsafe(method(new))]
71 #[unsafe(method_family = new)]
72 pub unsafe fn new() -> Retained<Self>;
73 );
74}