Struct dioxus_use_window::WindowSize
source · [−]pub struct WindowSize { /* private fields */ }Expand description
Window size effect handler
Implementations
sourceimpl WindowSize
impl WindowSize
sourcepub fn get_size() -> Option<(f64, f64)>
pub fn get_size() -> Option<(f64, f64)>
get size of the current window, return None if window not found
sourcepub fn set_window_width(_input: usize) -> Option<()>
pub fn set_window_width(_input: usize) -> Option<()>
set width of the current window, return None if failed to run
sourcepub fn set_window_height(_input: usize) -> Option<()>
pub fn set_window_height(_input: usize) -> Option<()>
set height of the current window, return None if failed to run
sourceimpl WindowSize
impl WindowSize
sourcepub fn as_width(self) -> WindowWidth
pub fn as_width(self) -> WindowWidth
using as WindowWidth
sourcepub fn as_height(self) -> WindowHeight
pub fn as_height(self) -> WindowHeight
using as WindowHeight
sourcepub fn as_layout<T>(self) -> WindowLayout<T>
pub fn as_layout<T>(self) -> WindowLayout<T>
using as WindowLayout
Trait Implementations
sourceimpl Debug for WindowSize
impl Debug for WindowSize
sourceimpl Default for WindowSize
impl Default for WindowSize
Auto Trait Implementations
impl !RefUnwindSafe for WindowSize
impl !Send for WindowSize
impl !Sync for WindowSize
impl Unpin for WindowSize
impl !UnwindSafe for WindowSize
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more