pub struct ScrollbarStyle {
pub thumb_color: Color,
pub thumb_hover_color: Color,
pub thumb_radius: f32,
pub thumb_width: f32,
pub hit_width: f32,
pub thumb_min_size: f32,
}Fields§
§thumb_color: Color§thumb_hover_color: Color指针悬停(或拖拽中)在 thumb 上时的高亮色
thumb_radius: f32§thumb_width: f32交叉轴上的可见宽度(命中带由 scrollbar_bands 从它推出来)
hit_width: f32交叉轴命中带的最小宽度;比 thumb_width 窄时不会裁掉可见 thumb
thumb_min_size: f32主轴 thumb 长度下限(长列表真正决定 thumb 长短的是这个,见 MIN_VISIBLE_RATIO)
Trait Implementations§
Source§impl Clone for ScrollbarStyle
impl Clone for ScrollbarStyle
Source§impl Debug for ScrollbarStyle
impl Debug for ScrollbarStyle
Source§impl PartialEq for ScrollbarStyle
impl PartialEq for ScrollbarStyle
impl StructuralPartialEq for ScrollbarStyle
Auto Trait Implementations§
impl Freeze for ScrollbarStyle
impl RefUnwindSafe for ScrollbarStyle
impl Send for ScrollbarStyle
impl Sync for ScrollbarStyle
impl Unpin for ScrollbarStyle
impl UnsafeUnpin for ScrollbarStyle
impl UnwindSafe for ScrollbarStyle
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