pub struct ViewportScrolled {
pub window_id: u64,
pub buffer_id: u64,
pub top_line: u32,
pub bottom_line: u32,
}Expand description
Viewport scrolled within a window.
Emitted when the visible portion of a buffer changes due to scrolling.
Fields§
§window_id: u64ID of the window that scrolled
buffer_id: u64ID of the buffer being viewed
top_line: u32First visible line (0-indexed)
bottom_line: u32Last visible line (0-indexed)
Trait Implementations§
Source§impl Clone for ViewportScrolled
impl Clone for ViewportScrolled
Source§fn clone(&self) -> ViewportScrolled
fn clone(&self) -> ViewportScrolled
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 ViewportScrolled
impl Debug for ViewportScrolled
Source§impl Event for ViewportScrolled
impl Event for ViewportScrolled
Source§impl PartialEq for ViewportScrolled
impl PartialEq for ViewportScrolled
impl Copy for ViewportScrolled
impl Eq for ViewportScrolled
impl StructuralPartialEq for ViewportScrolled
Auto Trait Implementations§
impl Freeze for ViewportScrolled
impl RefUnwindSafe for ViewportScrolled
impl Send for ViewportScrolled
impl Sync for ViewportScrolled
impl Unpin for ViewportScrolled
impl UnsafeUnpin for ViewportScrolled
impl UnwindSafe for ViewportScrolled
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