Skip to content

Commit

Permalink
NSScreen (cocoa): Add maximumRefreshInterval and minimumRefreshInterv…
Browse files Browse the repository at this point in the history
…al (#646)
  • Loading branch information
Genbuchan authored Nov 24, 2023
1 parent 58972ae commit 64dd01a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cocoa/src/appkit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3333,6 +3333,8 @@ pub trait NSScreen: Sized {
unsafe fn visibleFrame(self) -> NSRect;
unsafe fn colorSpace(self) -> id /* (NSColorSpace *) */;
unsafe fn screensHaveSeparateSpaces(_: Self) -> BOOL;
unsafe fn maximumRefreshInterval(self) -> NSTimeInterval;
unsafe fn minimumRefreshInterval(self) -> NSTimeInterval;

// Screen Backing Coordinate Conversion
unsafe fn backingAlignedRect_options_(
Expand Down Expand Up @@ -3390,6 +3392,14 @@ impl NSScreen for id {
msg_send![class!(NSScreen), screensHaveSeparateSpaces]
}

unsafe fn maximumRefreshInterval(self) -> NSTimeInterval {
msg_send![self, maximumRefreshInterval]
}

unsafe fn minimumRefreshInterval(self) -> NSTimeInterval {
msg_send![self, minimumRefreshInterval]
}

// Screen Backing Coordinate Conversion

unsafe fn backingAlignedRect_options_(
Expand Down

0 comments on commit 64dd01a

Please sign in to comment.