pub struct Scrollbar {
pub size_inner_pane_x: Property<Size>,
pub size_inner_pane_y: Property<Size>,
pub scroll_x: Property<f64>,
pub scroll_y: Property<f64>,
}Expand description
A combination of a clipping area (nearly identical to a Frame,) and an
inner panel that can be scrolled on zero or more axes. Scroller coordinates with each chassis to
create native scrolling containers, which pass native scroll events back to Engine. In turn,
Scroller translates its children to reflect the current scroll position.
When both scrolling axes are disabled, Scroller acts exactly like a Frame, with a possibly-
transformed Group surrounding its contents.
Fields§
§size_inner_pane_x: Property<Size>§size_inner_pane_y: Property<Size>§scroll_x: Property<f64>§scroll_y: Property<f64>Trait Implementations§
source§impl CoercionRules for Scrollbar
impl CoercionRules for Scrollbar
source§impl<'de> Deserialize<'de> for Scrollbar
impl<'de> Deserialize<'de> for Scrollbar
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 HelperFunctions for Scrollbar
impl HelperFunctions for Scrollbar
source§impl Interpolatable for Scrollbar
impl Interpolatable for Scrollbar
fn interpolate(&self, _other: &Self, _t: f64) -> Self
source§impl ToPaxValue for Scrollbar
impl ToPaxValue for Scrollbar
fn to_pax_value(self) -> PaxValue
impl ImplToFromPaxAny for Scrollbar
Auto Trait Implementations§
impl Freeze for Scrollbar
impl RefUnwindSafe for Scrollbar
impl Send for Scrollbar
impl Sync for Scrollbar
impl Unpin for Scrollbar
impl UnwindSafe for Scrollbar
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
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, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.