Trait ux::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)
; }

Trait containing all ScrollActor methods.

Implementors

ScrollActor

Required methods

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

Retrieves the ScrollActor:scroll-mode property

Returns

the scrolling mode

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]

Scrolls self so that rect is in the visible portion.

rect

a Rect

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

Sets the ScrollActor:scroll-mode property.

mode

a ScrollMode

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

Loading content...

Implementors

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

Loading content...