#[repr(C)]pub struct ScrollbarPreferences {
pub visibility: ScrollbarVisibility,
pub track_click: ScrollbarTrackClick,
}Expand description
OS-level scrollbar behaviour preferences.
These are separate from the CSS scrollbar appearance (ComputedScrollbarStyle).
They control when scrollbars appear and how clicking the track behaves.
Fields§
§visibility: ScrollbarVisibilityHow scrollbars should be shown.
macOS: NSScroller.preferredScrollerStyle
track_click: ScrollbarTrackClickWhat happens when clicking the scrollbar track.
Trait Implementations§
Source§impl Clone for ScrollbarPreferences
impl Clone for ScrollbarPreferences
Source§fn clone(&self) -> ScrollbarPreferences
fn clone(&self) -> ScrollbarPreferences
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 ScrollbarPreferences
impl Debug for ScrollbarPreferences
Source§impl Default for ScrollbarPreferences
impl Default for ScrollbarPreferences
Source§impl PartialEq for ScrollbarPreferences
impl PartialEq for ScrollbarPreferences
impl Copy for ScrollbarPreferences
impl StructuralPartialEq for ScrollbarPreferences
Auto Trait Implementations§
impl Freeze for ScrollbarPreferences
impl RefUnwindSafe for ScrollbarPreferences
impl Send for ScrollbarPreferences
impl Sync for ScrollbarPreferences
impl Unpin for ScrollbarPreferences
impl UnsafeUnpin for ScrollbarPreferences
impl UnwindSafe for ScrollbarPreferences
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