Trait animate::ScrollActorExt[][src]

pub trait ScrollActorExt: 'static {
    fn get_scroll_mode(&self) -> ScrollMode;
fn scroll_to_point(&self, point: &InternalPoint);
fn scroll_to_rect(&self, rect: &InternalRect);
fn set_scroll_mode(&self, mode: ScrollMode);
fn connect_property_scroll_mode_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all ScrollActor methods.

Implementors

ScrollActor

Required methods

fn get_scroll_mode(&self) -> ScrollMode[src]

Retrieves the ScrollActor:scroll-mode property

Returns

the scrolling mode

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

fn scroll_to_rect(&self, rect: &InternalRect)[src]

Scrolls self so that rect is in the visible portion.

rect

a Rect

fn set_scroll_mode(&self, mode: ScrollMode)[src]

Sets the ScrollActor:scroll-mode property.

mode

a ScrollMode

fn connect_property_scroll_mode_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Loading content...

Implementors

impl<O: IsA<ScrollActor>> ScrollActorExt for O[src]

Loading content...