[−][src]Struct fake_dpi::FakeDpiWindow
Wraps a window to simulate Hi-DPI screen.
Fields
inner: W
The inner window.
dpi: f64
Controls DPI factor.
This can be changed at run-time to test application logic.
By default, this is set to 2.0
.
Trait Implementations
impl<W: AdvancedWindow> AdvancedWindow for FakeDpiWindow<W>
[src]
fn get_title(&self) -> String
[src]
fn set_title(&mut self, val: String)
[src]
fn get_exit_on_esc(&self) -> bool
[src]
fn set_exit_on_esc(&mut self, val: bool)
[src]
fn get_automatic_close(&self) -> bool
[src]
fn set_automatic_close(&mut self, val: bool)
[src]
fn set_capture_cursor(&mut self, val: bool)
[src]
fn show(&mut self)
[src]
fn hide(&mut self)
[src]
fn get_position(&self) -> Option<Position>
[src]
fn set_position<P: Into<Position>>(&mut self, val: P)
[src]
fn set_size<S: Into<Size>>(&mut self, val: S)
[src]
fn title(self, value: String) -> Self
fn exit_on_esc(self, value: bool) -> Self
fn automatic_close(self, value: bool) -> Self
fn capture_cursor(self, value: bool) -> Self
fn position<P>(self, val: P) -> Self where
P: Into<Position>,
P: Into<Position>,
impl<W: BuildFromWindowSettings> BuildFromWindowSettings for FakeDpiWindow<W>
[src]
fn build_from_window_settings(
settings: &WindowSettings
) -> Result<Self, Box<dyn Error + 'static>>
[src]
settings: &WindowSettings
) -> Result<Self, Box<dyn Error + 'static>>
impl<W: Window> Window for FakeDpiWindow<W>
[src]
fn set_should_close(&mut self, val: bool)
[src]
fn should_close(&self) -> bool
[src]
fn size(&self) -> Size
[src]
fn swap_buffers(&mut self)
[src]
fn wait_event(&mut self) -> Event
[src]
fn wait_event_timeout(&mut self, val: Duration) -> Option<Event>
[src]
fn poll_event(&mut self) -> Option<Event>
[src]
fn draw_size(&self) -> Size
[src]
Auto Trait Implementations
impl<W> RefUnwindSafe for FakeDpiWindow<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<W> Send for FakeDpiWindow<W> where
W: Send,
W: Send,
impl<W> Sync for FakeDpiWindow<W> where
W: Sync,
W: Sync,
impl<W> Unpin for FakeDpiWindow<W> where
W: Unpin,
W: Unpin,
impl<W> UnwindSafe for FakeDpiWindow<W> where
W: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,