Trait components::ScrollActorExt [−][src]
pub trait ScrollActorExt: 'static {
pub fn get_scroll_mode(&self) -> ScrollMode;
pub fn scroll_to_point(&self, point: &InternalPoint);
pub fn scroll_to_rect(&self, rect: &InternalRect);
pub fn set_scroll_mode(&self, mode: ScrollMode);
pub fn connect_property_scroll_mode_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self);
}Required methods
pub fn get_scroll_mode(&self) -> ScrollMode[src]
pub fn scroll_to_point(&self, point: &InternalPoint)[src]
Scrolls the contents of self so that point is the new origin
of the visible area.
The coordinates of point must be relative to the self.
This function will use the currently set easing state of the self
to transition from the current scroll origin to the new one.
point
a Point
pub fn scroll_to_rect(&self, rect: &InternalRect)[src]
pub fn set_scroll_mode(&self, mode: ScrollMode)[src]
pub fn connect_property_scroll_mode_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self), [src]
F: 'static + Fn(&Self),
Implementors
impl<O> ScrollActorExt for O where
O: IsA<ScrollActor>, [src]
impl<O> ScrollActorExt for O where
O: IsA<ScrollActor>, [src]pub fn get_scroll_mode(&self) -> ScrollMode[src]
pub fn scroll_to_point(&self, point: &InternalPoint)[src]
pub fn scroll_to_rect(&self, rect: &InternalRect)[src]
pub fn set_scroll_mode(&self, mode: ScrollMode)[src]
pub fn connect_property_scroll_mode_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O), [src]
F: 'static + Fn(&O),