pub struct DisplayResized {
pub width: u16,
pub height: u16,
}Expand description
Terminal display was resized.
Emitted by the display driver when the terminal size changes. Handlers should adjust layouts and re-render as needed.
Fields§
§width: u16New width in columns
height: u16New height in rows
Trait Implementations§
Source§impl Clone for DisplayResized
impl Clone for DisplayResized
Source§fn clone(&self) -> DisplayResized
fn clone(&self) -> DisplayResized
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DisplayResized
impl Debug for DisplayResized
Source§impl Event for DisplayResized
impl Event for DisplayResized
Source§impl PartialEq for DisplayResized
impl PartialEq for DisplayResized
impl Copy for DisplayResized
impl Eq for DisplayResized
impl StructuralPartialEq for DisplayResized
Auto Trait Implementations§
impl Freeze for DisplayResized
impl RefUnwindSafe for DisplayResized
impl Send for DisplayResized
impl Sync for DisplayResized
impl Unpin for DisplayResized
impl UnsafeUnpin for DisplayResized
impl UnwindSafe for DisplayResized
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