pub struct ScrollBarArgs {
pub orientation: Orientation,
}
Expand description
Arguments for scrollbar widget functions.
Fields§
§orientation: Orientation
Scrollbar orientation.
Implementations§
source§impl ScrollBarArgs
impl ScrollBarArgs
sourcepub fn new(orientation: Orientation) -> Self
pub fn new(orientation: Orientation) -> Self
Arguments from scroll context.
sourcepub fn offset(&self) -> ContextVar<Factor>
pub fn offset(&self) -> ContextVar<Factor>
Gets the context variable that gets and sets the offset for the orientation.
See SCROLL.vertical_offset
and SCROLL.horizontal_offset
for more details.
sourcepub fn viewport_ratio(&self) -> ReadOnlyContextVar<Factor>
pub fn viewport_ratio(&self) -> ReadOnlyContextVar<Factor>
Gets the context variable that gets the viewport/content ratio for the orientation.
See SCROLL
for more details.
sourcepub fn content_overflows(&self) -> BoxedVar<bool>
pub fn content_overflows(&self) -> BoxedVar<bool>
Gets the context variable that gets if the scrollbar should be visible.
See SCROLL
for more details.
Trait Implementations§
source§impl Clone for ScrollBarArgs
impl Clone for ScrollBarArgs
source§fn clone(&self) -> ScrollBarArgs
fn clone(&self) -> ScrollBarArgs
Returns a copy 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 ScrollBarArgs
impl Debug for ScrollBarArgs
source§impl PartialEq for ScrollBarArgs
impl PartialEq for ScrollBarArgs
impl StructuralPartialEq for ScrollBarArgs
Auto Trait Implementations§
impl Freeze for ScrollBarArgs
impl RefUnwindSafe for ScrollBarArgs
impl Send for ScrollBarArgs
impl Sync for ScrollBarArgs
impl Unpin for ScrollBarArgs
impl UnwindSafe for ScrollBarArgs
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
source§impl<T> AnyVarValue for Twhere
T: VarValue,
impl<T> AnyVarValue for Twhere
T: VarValue,
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Access to mut
dyn Any
methods.source§fn clone_boxed(&self) -> Box<dyn AnyVarValue>
fn clone_boxed(&self) -> Box<dyn AnyVarValue>
Clone the value.
source§fn clone_boxed_var(&self) -> Box<dyn AnyVar>
fn clone_boxed_var(&self) -> Box<dyn AnyVar>
Clone the value into a new boxed
LocalVar<Self>
.source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
Gets if
self
equals other
.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> FsChangeNote for T
impl<T> FsChangeNote for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more