pub struct Gutters {
pub pad_left: u16,
pub pad_right: u16,
pub scrollbar: bool,
}Fields§
§pad_left: u16§pad_right: u16§scrollbar: boolImplementations§
Source§impl Gutters
impl Gutters
pub fn scrollbar_width(&self) -> u16
Sourcepub fn layer_width(&self, total: u16) -> u16
pub fn layer_width(&self, total: u16) -> u16
Width inside the left gutter (still includes the scrollbar column if any).
Sourcepub fn content_width(&self, total: u16) -> u16
pub fn content_width(&self, total: u16) -> u16
Inner content width once pad_left, pad_right, and the scrollbar column are subtracted.
Trait Implementations§
impl Copy for Gutters
Source§impl Default for Gutters
impl Default for Gutters
Source§fn default() -> Self
fn default() -> Self
Any buffer-backed window is scrollable by default. The scrollbar paints
only when content overflows; the column it occupies is reserved either
way so content width is stable across overflow transitions. Surfaces
that can’t scroll by construction (single-line status strips, cursor-
driven list/option/input panels) must opt out with scrollbar: false.
Auto Trait Implementations§
impl Freeze for Gutters
impl RefUnwindSafe for Gutters
impl Send for Gutters
impl Sync for Gutters
impl Unpin for Gutters
impl UnsafeUnpin for Gutters
impl UnwindSafe for Gutters
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