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

pub struct SliderView { /* 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. Read more

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

Called when an event is received (key press, mouse event, ...). Read more

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

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

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

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

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

What part of the view is important and should be visible? Read more

Auto Trait Implementations

impl !Send for SliderView

impl !Sync for SliderView