Trait ScrollActorExt

Source
pub trait ScrollActorExt: 'static {
    // Required methods
    fn get_scroll_mode(&self) -> ScrollMode;
    fn scroll_to_point(&self, point: &Point);
    fn scroll_to_rect(&self, rect: &Rect);
    fn set_scroll_mode(&self, mode: ScrollMode);
    fn connect_property_scroll_mode_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}
Expand description

Trait containing all ScrollActor methods.

§Implementors

ScrollActor

Required Methods§

Source

fn get_scroll_mode(&self) -> ScrollMode

Retrieves the ScrollActor:scroll-mode property

§Returns

the scrolling mode

Source

fn scroll_to_point(&self, point: &Point)

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

Source

fn scroll_to_rect(&self, rect: &Rect)

Scrolls self so that rect is in the visible portion.

§rect

a Rect

Source

fn set_scroll_mode(&self, mode: ScrollMode)

Sets the ScrollActor:scroll-mode property.

§mode

a ScrollMode

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§