[−][src]Struct makepad_widget::ScrollView
Fields
view: View
scroll_h: Option<ScrollBar>
scroll_v: Option<ScrollBar>
Methods
impl ScrollView
[src]
pub fn proto(cx: &mut Cx) -> Self
[src]
pub fn proto_no_scroll(cx: &mut Cx) -> Self
[src]
pub fn begin_view(&mut self, cx: &mut Cx, layout: Layout) -> ViewRedraw
[src]
pub fn view_will_redraw(&mut self, cx: &mut Cx) -> bool
[src]
pub fn handle_scroll_bars(&mut self, cx: &mut Cx, event: &mut Event) -> bool
[src]
pub fn get_scroll_pos(&self, cx: &Cx) -> Vec2
[src]
pub fn set_scroll_pos(&mut self, cx: &mut Cx, pos: Vec2) -> bool
[src]
pub fn set_scroll_view_total(&mut self, cx: &mut Cx, view_total: Vec2)
[src]
pub fn get_scroll_view_total(&mut self) -> Vec2
[src]
pub fn scroll_into_view(&mut self, cx: &mut Cx, rect: Rect)
[src]
pub fn scroll_into_view_abs(&mut self, cx: &mut Cx, rect: Rect)
[src]
pub fn set_scroll_target(&mut self, cx: &mut Cx, pos: Vec2)
[src]
pub fn end_view(&mut self, cx: &mut Cx) -> Area
[src]
pub fn get_rect(&mut self, cx: &Cx) -> Rect
[src]
pub fn redraw_view_area(&self, cx: &mut Cx)
[src]
pub fn get_view_area(&self, cx: &Cx) -> Area
[src]
Trait Implementations
impl Clone for ScrollView
[src]
fn clone(&self) -> ScrollView
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl Send for ScrollView
impl Sync for ScrollView
impl Unpin for ScrollView
impl UnwindSafe for ScrollView
impl RefUnwindSafe for ScrollView
Blanket Implementations
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 = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,