Struct scroll_controller::ScrollController [] [src]

pub struct ScrollController {
    pub offset: [f64; 2],
    pub bounds: [f64; 4],
    pub area: [f64; 2],
    pub speed: f64,
    // some fields omitted
}

Stores information for scrolling.

Fields

The offset of visible area.

Visible bounds.

The size of the scrollable area.

The scroll speed.

Methods

impl ScrollController
[src]

[src]

Creates a new ScrollController.

[src]

Returns the visible rectangle that intersects with the area. This is used to find what part of the area the user is looking at.

[src]

Transform a rectangle from area coordinates to view.

[src]

Handles event.

Trait Implementations

impl Clone for ScrollController
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ScrollController
[src]

[src]

Formats the value using the given formatter.