[−][src]Struct azul_core::window::ScrollState
Fields
scroll_position: LayoutPoint
Amount in pixel that the current node is scrolled
used_this_frame: bool
Was the scroll amount used in this frame?
Implementations
impl ScrollState
[src]
pub fn get(&self) -> LayoutPoint
[src]
Return the current position of the scroll state
pub fn add(&mut self, x: f32, y: f32, child_rect: &LayoutRect)
[src]
Add a scroll X / Y onto the existing scroll state
pub fn set(&mut self, x: f32, y: f32, child_rect: &LayoutRect)
[src]
Set the scroll state to a new position
pub fn get_and_mark_as_used(&mut self) -> LayoutPoint
[src]
Returns the scroll position and also set the "used_this_frame" flag
Trait Implementations
impl Clone for ScrollState
[src]
fn clone(&self) -> ScrollState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ScrollState
[src]
impl Debug for ScrollState
[src]
impl Default for ScrollState
[src]
impl PartialEq<ScrollState> for ScrollState
[src]
fn eq(&self, other: &ScrollState) -> bool
[src]
fn ne(&self, other: &ScrollState) -> bool
[src]
impl PartialOrd<ScrollState> for ScrollState
[src]
fn partial_cmp(&self, other: &ScrollState) -> Option<Ordering>
[src]
fn lt(&self, other: &ScrollState) -> bool
[src]
fn le(&self, other: &ScrollState) -> bool
[src]
fn gt(&self, other: &ScrollState) -> bool
[src]
fn ge(&self, other: &ScrollState) -> bool
[src]
impl StructuralPartialEq for ScrollState
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScrollState
impl Send for ScrollState
impl Sync for ScrollState
impl Unpin for ScrollState
impl UnwindSafe for ScrollState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,