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

pub struct Checkbox { /* fields omitted */ }

Checkable box.

Methods

impl Checkbox
[src]

[src]

Disables this view.

A disabled view cannot be selected.

[src]

Disables this view.

Chainable variant.

[src]

Re-enables this view.

[src]

Enable or disable this view.

[src]

Returns true if this view is enabled.

[src]

Creates a new, unchecked checkbox.

[src]

Sets a callback to be used when the state changes.

[src]

Sets a callback to be used when the state changes.

Chainable variant.

[src]

Toggles the checkbox state.

[src]

Check the checkbox.

[src]

Check the checkbox.

Chainable variant.

[src]

Returns true if the checkbox is checked.

[src]

Uncheck the checkbox.

[src]

Uncheck the checkbox.

Chainable variant.

[src]

Sets the checkbox state.

Trait Implementations

impl Default for Checkbox
[src]

[src]

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

impl View for Checkbox
[src]

[src]

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

[src]

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

[src]

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

[src]

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