Struct cursive_spinner_view::SpinnerView [−][src]
pub struct SpinnerView { /* fields omitted */ }Expand description
Spinner view
Implementations
New spinner view
A CbSink is needed for new spinner.
Examples
use cursive_spinner_view::SpinnerView;
let siv = cursive::default();
#[allow(unused)]
let spinner = SpinnerView::new(siv.cb_sink().clone());Spin down the spinner
To stop the spinner the numbers of spin-downs have to be equal the numbers of spin-ups.
Is the spinner spinning
Trait Implementations
Draws the view with the given printer (includes bounds) and focus. Read more
Should return true if the view content changed since the last call
to layout(). 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
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
This view is offered focus. Will it take it? Read more
What part of the view is important and should be visible? Read more
Auto Trait Implementations
impl !RefUnwindSafe for SpinnerView
impl Send for SpinnerView
impl !Sync for SpinnerView
impl Unpin for SpinnerView
impl !UnwindSafe for SpinnerView
Blanket Implementations
Mutably borrows from an owned value. Read more
Runs a callback on all views identified by sel. Read more
Runs a callback on the view identified by sel. Read more
Convenient method to use call_on with a view::Selector::Name.
Convenient method to find a view wrapped in an NamedView.
Returns a Box<View>.
Wraps self in a ResizedView with the given size constraints.
Wraps self into a fixed-size ResizedView.
Wraps self into a fixed-width ResizedView.
Wraps self into a fixed-width ResizedView.
Wraps self into a full-screen ResizedView.
Wraps self into a full-width ResizedView.
Wraps self into a full-height ResizedView.
Wraps self into a limited-size ResizedView.
Wraps self into a limited-width ResizedView.
Wraps self into a limited-height ResizedView.
Wraps self into a ResizedView at least sized size.
Wraps self in a ResizedView at least min_width wide.
Wraps self in a ResizedView at least min_height tall.
Wraps self in a ScrollView.
Calls the given closure and return the result. Read more
Calls the given closure on self.