#[repr(C)]pub struct GhosttyTerminalScrollbar {
pub total: u64,
pub offset: u64,
pub len: u64,
}Expand description
Scrollbar state for the terminal viewport.
Represents the scrollable area dimensions needed to render a scrollbar.
@ingroup terminal
Fields§
§total: u64Total size of the scrollable area in rows.
offset: u64Offset into the total area that the viewport is at.
len: u64Length of the visible area in rows.
Trait Implementations§
Source§impl Clone for GhosttyTerminalScrollbar
impl Clone for GhosttyTerminalScrollbar
Source§fn clone(&self) -> GhosttyTerminalScrollbar
fn clone(&self) -> GhosttyTerminalScrollbar
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 GhosttyTerminalScrollbar
impl Debug for GhosttyTerminalScrollbar
Source§impl Default for GhosttyTerminalScrollbar
impl Default for GhosttyTerminalScrollbar
Source§fn default() -> GhosttyTerminalScrollbar
fn default() -> GhosttyTerminalScrollbar
Returns the “default value” for a type. Read more
impl Copy for GhosttyTerminalScrollbar
Auto Trait Implementations§
impl Freeze for GhosttyTerminalScrollbar
impl RefUnwindSafe for GhosttyTerminalScrollbar
impl Send for GhosttyTerminalScrollbar
impl Sync for GhosttyTerminalScrollbar
impl Unpin for GhosttyTerminalScrollbar
impl UnsafeUnpin for GhosttyTerminalScrollbar
impl UnwindSafe for GhosttyTerminalScrollbar
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