Struct cursive::views::Checkbox [] [src]

pub struct Checkbox { /* fields omitted */ }

Checkable box.

Methods

impl Checkbox
[src]

Disables this view.

A disabled view cannot be selected.

Disables this view.

Chainable variant.

Re-enables this view.

Enable or disable this view.

Returns true if this view is enabled.

Creates a new, unchecked checkbox.

Sets a callback to be used when the state changes.

Sets a callback to be used when the state changes.

Chainable variant.

Toggles the checkbox state.

Check the checkbox.

Check the checkbox.

Chainable variant.

Returns true if the checkbox is checked.

Uncheck the checkbox.

Uncheck the checkbox.

Chainable variant.

Sets the checkbox state.

Trait Implementations

impl Default for Checkbox
[src]

Returns the "default value" for a type. Read more

impl View for Checkbox
[src]

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

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

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

Called when a key was pressed. 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