pub struct ScrollSource {
    pub scroll_bar: bool,
    pub drag: bool,
    pub mouse_wheel: bool,
}Expand description
What is the source of scrolling for a ScrollArea.
Fields§
§scroll_bar: boolScroll the area by dragging a scroll bar.
By default the scroll bars remain visible to show current position.
To hide them use ScrollArea::scroll_bar_visibility().
drag: boolScroll the area by dragging the contents.
mouse_wheel: boolScroll the area by scrolling (or shift scrolling) the mouse wheel with
the mouse cursor over the ScrollArea.
Implementations§
Source§impl ScrollSource
 
impl ScrollSource
pub const NONE: Self
pub const ALL: Self
pub const SCROLL_BAR: Self
pub const DRAG: Self
pub const MOUSE_WHEEL: Self
Trait Implementations§
Source§impl Add for ScrollSource
 
impl Add for ScrollSource
Source§impl AddAssign for ScrollSource
 
impl AddAssign for ScrollSource
Source§fn add_assign(&mut self, rhs: Self)
 
fn add_assign(&mut self, rhs: Self)
Performs the 
+= operation. Read moreSource§impl BitOr for ScrollSource
 
impl BitOr for ScrollSource
Source§impl BitOrAssign for ScrollSource
 
impl BitOrAssign for ScrollSource
Source§fn bitor_assign(&mut self, rhs: Self)
 
fn bitor_assign(&mut self, rhs: Self)
Performs the 
|= operation. Read moreSource§impl Clone for ScrollSource
 
impl Clone for ScrollSource
Source§fn clone(&self) -> ScrollSource
 
fn clone(&self) -> ScrollSource
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 ScrollSource
 
impl Debug for ScrollSource
Source§impl Default for ScrollSource
 
impl Default for ScrollSource
Source§impl<'de> Deserialize<'de> for ScrollSource
 
impl<'de> Deserialize<'de> for ScrollSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScrollSource
 
impl PartialEq for ScrollSource
Source§impl Serialize for ScrollSource
 
impl Serialize for ScrollSource
impl Copy for ScrollSource
impl Eq for ScrollSource
impl StructuralPartialEq for ScrollSource
Auto Trait Implementations§
impl Freeze for ScrollSource
impl RefUnwindSafe for ScrollSource
impl Send for ScrollSource
impl Sync for ScrollSource
impl Unpin for ScrollSource
impl UnwindSafe for ScrollSource
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