Added setWorksWhenModal to NSPanel trait

This commit is contained in:
Adrian Hupka
2022-06-03 19:01:08 +02:00
committed by GitHub
parent dd1135e599
commit 01169af4e2
+5
View File
@@ -1813,6 +1813,7 @@ pub trait NSPanel: Sized {
unsafe fn becomesKeyOnlyIfNeeded(self) -> BOOL;
unsafe fn setFloatingPanel(self, floatingPanel: BOOL);
unsafe fn floatingPanel(self) -> BOOL;
unsafe fn setWorksWhenModal(self, worksWithPanel: BOOL);
}
impl NSPanel for id {
@@ -1833,6 +1834,10 @@ impl NSPanel for id {
unsafe fn floatingPanel(self) -> BOOL {
msg_send![self, isFloatingPanel]
}
unsafe fn setWorksWhenModal(self, worksWhenModal: BOOL) {
msg_send![self, setWorksWhenModal: worksWhenModal]
}
}
#[repr(i64)]