Struct editor2::scroll::ScrollManager
source · pub struct ScrollManager { /* private fields */ }
Implementations§
source§impl ScrollManager
impl ScrollManager
pub fn new() -> Self
pub fn clone_state(&mut self, other: &Self)
pub fn anchor(&self) -> ScrollAnchor
pub fn ongoing_scroll(&self) -> OngoingScroll
pub fn update_ongoing_scroll(&mut self, axis: Option<Axis>)
pub fn scroll_position(&self, snapshot: &DisplaySnapshot) -> Point<f32>
pub fn show_scrollbar(&mut self, cx: &mut ViewContext<'_, Editor>)
pub fn scrollbars_visible(&self) -> bool
pub fn has_autoscroll_request(&self) -> bool
pub fn clamp_scroll_left(&mut self, max: f32) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for ScrollManager
impl Send for ScrollManager
impl Sync for ScrollManager
impl Unpin for ScrollManager
impl UnwindSafe for ScrollManager
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