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

pub struct SliderView { /* fields omitted */ }

A horizontal or vertical slider.

Methods

impl SliderView
[src]

[src]

Creates a new SliderView in the given orientation.

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

[src]

Creates a new vertical SliderView.

[src]

Creates a new horizontal SliderView.

[src]

Sets the current value.

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

[src]

Sets the current value.

Chainable variant.

[src]

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

[src]

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

Trait Implementations

impl View for SliderView
[src]

[src]

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

[src]

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

[src]

Called when a key was pressed. Read more

[src]

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

[src]

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

[src]

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

[src]

Runs a closure on the view identified by the given selector. Read more

[src]

Moves the focus to the view identified by the given selector. Read more