Skip to content

Commit 64dd01a

Browse files
authored
NSScreen (cocoa): Add maximumRefreshInterval and minimumRefreshInterval (#646)
1 parent 58972ae commit 64dd01a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cocoa/src/appkit.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3333,6 +3333,8 @@ pub trait NSScreen: Sized {
33333333
unsafe fn visibleFrame(self) -> NSRect;
33343334
unsafe fn colorSpace(self) -> id /* (NSColorSpace *) */;
33353335
unsafe fn screensHaveSeparateSpaces(_: Self) -> BOOL;
3336+
unsafe fn maximumRefreshInterval(self) -> NSTimeInterval;
3337+
unsafe fn minimumRefreshInterval(self) -> NSTimeInterval;
33363338

33373339
// Screen Backing Coordinate Conversion
33383340
unsafe fn backingAlignedRect_options_(
@@ -3390,6 +3392,14 @@ impl NSScreen for id {
33903392
msg_send![class!(NSScreen), screensHaveSeparateSpaces]
33913393
}
33923394

3395+
unsafe fn maximumRefreshInterval(self) -> NSTimeInterval {
3396+
msg_send![self, maximumRefreshInterval]
3397+
}
3398+
3399+
unsafe fn minimumRefreshInterval(self) -> NSTimeInterval {
3400+
msg_send![self, minimumRefreshInterval]
3401+
}
3402+
33933403
// Screen Backing Coordinate Conversion
33943404

33953405
unsafe fn backingAlignedRect_options_(

0 commit comments

Comments
 (0)