[−][src]Struct azul_core::window::ScrollStates
Implementations
impl ScrollStates
[src]
pub fn new() -> ScrollStates
[src]
#[must_use]pub fn get_scroll_position(
&self,
scroll_id: &ExternalScrollId
) -> Option<LayoutPoint>
[src]
&self,
scroll_id: &ExternalScrollId
) -> Option<LayoutPoint>
pub fn set_scroll_position(
&mut self,
node: &OverflowingScrollNode,
scroll_position: LayoutPoint
)
[src]
&mut self,
node: &OverflowingScrollNode,
scroll_position: LayoutPoint
)
Set the scroll amount - does not update the entry.used_this_frame
,
since that is only relevant when we are actually querying the renderer.
#[must_use]pub fn get_scroll_position_and_mark_as_used(
&mut self,
scroll_id: &ExternalScrollId
) -> Option<LayoutPoint>
[src]
&mut self,
scroll_id: &ExternalScrollId
) -> Option<LayoutPoint>
NOTE: This has to be a getter, because we need to update
pub fn scroll_node(
&mut self,
node: &OverflowingScrollNode,
scroll_by_x: f32,
scroll_by_y: f32
)
[src]
&mut self,
node: &OverflowingScrollNode,
scroll_by_x: f32,
scroll_by_y: f32
)
Updating (add to) the existing scroll amount does not update the entry.used_this_frame
,
since that is only relevant when we are actually querying the renderer.
pub fn remove_unused_scroll_states(&mut self)
[src]
Removes all scroll states that weren't used in the last frame
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ScrollStates
impl Send for ScrollStates
impl Sync for ScrollStates
impl Unpin for ScrollStates
impl UnwindSafe for ScrollStates
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, 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>,