pub struct ScrollView {
pub view: View,
pub scroll_h: Option<ScrollBar>,
pub scroll_v: Option<ScrollBar>,
}
Fields§
§view: View
§scroll_h: Option<ScrollBar>
§scroll_v: Option<ScrollBar>
Implementations§
Source§impl ScrollView
impl ScrollView
pub fn proto(cx: &mut Cx) -> Self
pub fn proto_no_scroll(cx: &mut Cx) -> Self
pub fn begin_view(&mut self, cx: &mut Cx, layout: Layout) -> ViewRedraw
pub fn view_will_redraw(&mut self, cx: &mut Cx) -> bool
pub fn handle_scroll_bars(&mut self, cx: &mut Cx, event: &mut Event) -> bool
pub fn get_scroll_pos(&self, cx: &Cx) -> Vec2
pub fn set_scroll_pos(&mut self, cx: &mut Cx, pos: Vec2) -> bool
pub fn set_scroll_view_total(&mut self, cx: &mut Cx, view_total: Vec2)
pub fn get_scroll_view_total(&mut self) -> Vec2
pub fn scroll_into_view(&mut self, cx: &mut Cx, rect: Rect)
pub fn scroll_into_view_abs(&mut self, cx: &mut Cx, rect: Rect)
pub fn set_scroll_target(&mut self, cx: &mut Cx, pos: Vec2)
pub fn end_view(&mut self, cx: &mut Cx) -> Area
pub fn get_rect(&mut self, cx: &Cx) -> Rect
pub fn redraw_view_area(&self, cx: &mut Cx)
pub fn get_view_area(&self, cx: &Cx) -> Area
Trait Implementations§
Source§impl Clone for ScrollView
impl Clone for ScrollView
Source§fn clone(&self) -> ScrollView
fn clone(&self) -> ScrollView
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 moreAuto Trait Implementations§
impl Freeze for ScrollView
impl RefUnwindSafe for ScrollView
impl Send for ScrollView
impl Sync for ScrollView
impl Unpin for ScrollView
impl UnwindSafe for ScrollView
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