pub trait HasScrollData: Any {
// Required methods
fn as_any(&self) -> &dyn Any;
fn scroll_top(&self) -> f64;
fn scroll_left(&self) -> f64;
fn scroll_width(&self) -> i32;
fn scroll_height(&self) -> i32;
fn client_width(&self) -> i32;
fn client_height(&self) -> i32;
}Required Methods§
Sourcefn scroll_top(&self) -> f64
fn scroll_top(&self) -> f64
Get the vertical scroll position
Sourcefn scroll_left(&self) -> f64
fn scroll_left(&self) -> f64
Get the horizontal scroll position
Sourcefn scroll_width(&self) -> i32
fn scroll_width(&self) -> i32
Get the total scrollable width
Sourcefn scroll_height(&self) -> i32
fn scroll_height(&self) -> i32
Get the total scrollable height
Sourcefn client_width(&self) -> i32
fn client_width(&self) -> i32
Get the viewport width
Sourcefn client_height(&self) -> i32
fn client_height(&self) -> i32
Get the viewport height
Implementors§
impl HasScrollData for SerializedScrollData
Available on crate feature
serialize only.