objc2_app_kit/generated/
NSWindowTabGroup.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 #[thread_kind = MainThreadOnly]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct NSWindowTabGroup;
16);
17
18extern_conformance!(
19 unsafe impl NSObjectProtocol for NSWindowTabGroup {}
20);
21
22impl NSWindowTabGroup {
23 extern_methods!(
24 #[cfg(feature = "NSWindow")]
25 #[unsafe(method(identifier))]
26 #[unsafe(method_family = none)]
27 pub unsafe fn identifier(&self) -> Retained<NSWindowTabbingIdentifier>;
28
29 #[cfg(all(feature = "NSResponder", feature = "NSWindow"))]
30 #[unsafe(method(windows))]
31 #[unsafe(method_family = none)]
32 pub fn windows(&self) -> Retained<NSArray<NSWindow>>;
33
34 #[unsafe(method(isOverviewVisible))]
35 #[unsafe(method_family = none)]
36 pub unsafe fn isOverviewVisible(&self) -> bool;
37
38 #[unsafe(method(setOverviewVisible:))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn setOverviewVisible(&self, overview_visible: bool);
42
43 #[unsafe(method(isTabBarVisible))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn isTabBarVisible(&self) -> bool;
46
47 #[cfg(all(feature = "NSResponder", feature = "NSWindow"))]
48 #[unsafe(method(selectedWindow))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn selectedWindow(&self) -> Option<Retained<NSWindow>>;
51
52 #[cfg(all(feature = "NSResponder", feature = "NSWindow"))]
53 #[unsafe(method(setSelectedWindow:))]
56 #[unsafe(method_family = none)]
57 pub fn setSelectedWindow(&self, selected_window: Option<&NSWindow>);
58
59 #[cfg(all(feature = "NSResponder", feature = "NSWindow"))]
60 #[unsafe(method(addWindow:))]
61 #[unsafe(method_family = none)]
62 pub unsafe fn addWindow(&self, window: &NSWindow);
63
64 #[cfg(all(feature = "NSResponder", feature = "NSWindow"))]
65 #[unsafe(method(insertWindow:atIndex:))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn insertWindow_atIndex(&self, window: &NSWindow, index: NSInteger);
68
69 #[cfg(all(feature = "NSResponder", feature = "NSWindow"))]
70 #[unsafe(method(removeWindow:))]
71 #[unsafe(method_family = none)]
72 pub unsafe fn removeWindow(&self, window: &NSWindow);
73 );
74}
75
76impl NSWindowTabGroup {
78 extern_methods!(
79 #[unsafe(method(init))]
80 #[unsafe(method_family = init)]
81 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
82
83 #[unsafe(method(new))]
84 #[unsafe(method_family = new)]
85 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
86 );
87}