mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 23:23:14 -04:00
On macOS, add documentEdited APIs (#2550)
* On macOS, add documentEdited APIs
Port of 33fdeab629
* Update src/platform/macos.rs
Co-authored-by: Mads Marquart <mads@marquart.dk>
* typo
Co-authored-by: Mads Marquart <mads@marquart.dk>
This commit is contained in:
@@ -168,6 +168,9 @@ extern_methods!(
|
||||
#[sel(setLevel:)]
|
||||
pub fn setLevel(&self, level: NSWindowLevel);
|
||||
|
||||
#[sel(setDocumentEdited:)]
|
||||
pub fn setDocumentEdited(&self, val: bool);
|
||||
|
||||
#[sel(occlusionState)]
|
||||
pub fn occlusionState(&self) -> NSWindowOcclusionState;
|
||||
|
||||
@@ -186,6 +189,9 @@ extern_methods!(
|
||||
#[sel(isZoomed)]
|
||||
pub fn isZoomed(&self) -> bool;
|
||||
|
||||
#[sel(isDocumentEdited)]
|
||||
pub fn isDocumentEdited(&self) -> bool;
|
||||
|
||||
#[sel(close)]
|
||||
pub fn close(&self);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user