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. Read more

Called when an event is received (key press, mouse event, ...). 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 Checkbox

impl !Sync for Checkbox