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
Required Methods§
Sourcefn get_scroll_mode(&self) -> ScrollMode
fn get_scroll_mode(&self) -> ScrollMode
Sourcefn scroll_to_point(&self, point: &Point)
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
Sourcefn scroll_to_rect(&self, rect: &Rect)
fn scroll_to_rect(&self, rect: &Rect)
Sourcefn set_scroll_mode(&self, mode: ScrollMode)
fn set_scroll_mode(&self, mode: ScrollMode)
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.