Add MonitorHandle::current_video_mode()

This commit is contained in:
daxpedda
2024-07-21 00:01:43 +02:00
parent 1168cd4113
commit 2e53533cc1
12 changed files with 167 additions and 79 deletions

View File

@@ -89,6 +89,10 @@ impl MonitorHandle {
})
}
pub fn current_video_mode(&self) -> Option<VideoModeHandle> {
Some(VideoModeHandle(self.clone()))
}
pub fn video_modes(&self) -> Once<VideoModeHandle> {
iter::once(VideoModeHandle(self.clone()))
}