Struct cursive::views::SliderView [] [src]

pub struct SliderView {
    // some fields omitted
}

A horizontal or vertical slider.

Methods

impl SliderView
[src]

Creates a new SliderView in the given orientation.

The view will have a fixed length of max_value, with one tick per block.

Creates a new vertical SliderView.

Creates a new horizontal SliderView.

Sets the current value.

Returns an event result with a possible callback, if on_change was set..

Sets the current value.

Chainable variant.

Sets a callback to be called when the slider is moved.

Sets a callback to be called when the key is pressed.

Trait Implementations

impl View for SliderView
[src]

Draws the view with the given printer (includes bounds) and focus.

Returns the minimum size the view requires with the given restrictions. Read more

Called when a key was pressed. Default implementation just ignores it.

This view is offered focus. Will it take it? Read more

Returns true if the view content changed since last layout phase. Read more

Called once the size for this view has been decided, Read more

Finds the view pointed to by the given path. Read more