Struct components::widgets::ScrollPosition
source · [−]pub struct ScrollPosition {Show 18 fields
pub allow_implicit_scrolling: bool,
pub at_edge: bool,
pub axis: Axis,
pub axis_direction: AxisDirection,
pub extent_after: f32,
pub extent_before: f32,
pub extent_inside: f32,
pub has_content_dimensions: bool,
pub has_listeners: bool,
pub has_pixels: bool,
pub has_viewport_dimension: bool,
pub have_dimensions: bool,
pub keep_scroll_offset: bool,
pub max_scroll_extent: f32,
pub min_scroll_extent: f32,
pub out_of_range: bool,
pub pixels: f32,
pub viewport_dimension: f32,
}
Fields
allow_implicit_scrolling: bool
at_edge: bool
axis: Axis
axis_direction: AxisDirection
extent_after: f32
extent_before: f32
extent_inside: f32
has_content_dimensions: bool
has_listeners: bool
has_pixels: bool
has_viewport_dimension: bool
have_dimensions: bool
keep_scroll_offset: bool
max_scroll_extent: f32
min_scroll_extent: f32
out_of_range: bool
pixels: f32
viewport_dimension: f32
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ScrollPosition
impl Send for ScrollPosition
impl Sync for ScrollPosition
impl Unpin for ScrollPosition
impl UnwindSafe for ScrollPosition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.