Skip to content

Commit 01169af

Browse files
authored
Added setWorksWhenModal to NSPanel trait
1 parent dd1135e commit 01169af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cocoa/src/appkit.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,6 +1813,7 @@ pub trait NSPanel: Sized {
18131813
unsafe fn becomesKeyOnlyIfNeeded(self) -> BOOL;
18141814
unsafe fn setFloatingPanel(self, floatingPanel: BOOL);
18151815
unsafe fn floatingPanel(self) -> BOOL;
1816+
unsafe fn setWorksWhenModal(self, worksWithPanel: BOOL);
18161817
}
18171818

18181819
impl NSPanel for id {
@@ -1833,6 +1834,10 @@ impl NSPanel for id {
18331834
unsafe fn floatingPanel(self) -> BOOL {
18341835
msg_send![self, isFloatingPanel]
18351836
}
1837+
1838+
unsafe fn setWorksWhenModal(self, worksWhenModal: BOOL) {
1839+
msg_send![self, setWorksWhenModal: worksWhenModal]
1840+
}
18361841
}
18371842

18381843
#[repr(i64)]

0 commit comments

Comments
 (0)