Added setWorksWhenModal to NSPanel trait
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user