Rename VideoMode to VideoModeHandle (#3328)

This commit is contained in:
daxpedda 2023-12-26 22:12:33 +01:00 committed by GitHub
parent 34e42ff94d
commit 658f49b014
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 111 additions and 104 deletions

View file

@ -35,7 +35,7 @@ pub use self::error::OsError;
pub(crate) use self::event_loop::{
EventLoop, EventLoopProxy, EventLoopWindowTarget, PlatformSpecificEventLoopAttributes,
};
pub use self::monitor::{MonitorHandle, VideoMode};
pub use self::monitor::{MonitorHandle, VideoModeHandle};
pub use self::window::{PlatformSpecificWindowBuilderAttributes, Window, WindowId};
pub(crate) use self::keyboard::KeyEventExtra;

View file

@ -26,15 +26,15 @@ impl MonitorHandle {
unreachable!()
}
pub fn video_modes(&self) -> Empty<VideoMode> {
pub fn video_modes(&self) -> Empty<VideoModeHandle> {
unreachable!()
}
}
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub struct VideoMode;
pub struct VideoModeHandle;
impl VideoMode {
impl VideoModeHandle {
pub fn size(&self) -> PhysicalSize<u32> {
unreachable!();
}