pub struct ScrollFadeStyle {
pub strength: f32,
pub size: f32,
}Expand description
Controls if and how to fade out the sides of a crate::ScrollArea
to indicate there is more there if you scroll.
Fields§
§strength: f32Opacity of the fade effect at the outer edge, in 0.0-1.0.
Set to 0.0 to disable the fade effect.
size: f32Size of the fade-area (height for vertical scrolling, width for horizontal scrolling).
Implementations§
Trait Implementations§
Source§impl Clone for ScrollFadeStyle
impl Clone for ScrollFadeStyle
Source§fn clone(&self) -> ScrollFadeStyle
fn clone(&self) -> ScrollFadeStyle
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 ScrollFadeStyle
impl Debug for ScrollFadeStyle
Source§impl Default for ScrollFadeStyle
impl Default for ScrollFadeStyle
Source§impl PartialEq for ScrollFadeStyle
impl PartialEq for ScrollFadeStyle
impl Copy for ScrollFadeStyle
impl StructuralPartialEq for ScrollFadeStyle
Auto Trait Implementations§
impl Freeze for ScrollFadeStyle
impl RefUnwindSafe for ScrollFadeStyle
impl Send for ScrollFadeStyle
impl Sync for ScrollFadeStyle
impl Unpin for ScrollFadeStyle
impl UnwindSafe for ScrollFadeStyle
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