pub struct SurfaceSizeWriter { /* private fields */ }Expand description
Handle to synchronously change the size of the window from the WindowEvent.
Implementations§
Source§impl SurfaceSizeWriter
impl SurfaceSizeWriter
pub fn new(new_surface_size: Weak<Mutex<PhysicalSize<u32>>>) -> Self
Sourcepub fn request_surface_size(
&mut self,
new_surface_size: PhysicalSize<u32>,
) -> Result<(), InternalError>
pub fn request_surface_size( &mut self, new_surface_size: PhysicalSize<u32>, ) -> Result<(), InternalError>
Try to request surface size which will be set synchronously on the window.
Sourcepub fn surface_size(&self) -> Result<PhysicalSize<u32>, InternalError>
pub fn surface_size(&self) -> Result<PhysicalSize<u32>, InternalError>
Get the currently stashed surface size.
Trait Implementations§
Source§impl Clone for SurfaceSizeWriter
impl Clone for SurfaceSizeWriter
Source§impl Debug for SurfaceSizeWriter
impl Debug for SurfaceSizeWriter
impl Eq for SurfaceSizeWriter
Auto Trait Implementations§
impl Freeze for SurfaceSizeWriter
impl RefUnwindSafe for SurfaceSizeWriter
impl Send for SurfaceSizeWriter
impl Sync for SurfaceSizeWriter
impl Unpin for SurfaceSizeWriter
impl UnsafeUnpin for SurfaceSizeWriter
impl UnwindSafe for SurfaceSizeWriter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more