pub struct CheckButton { /* private fields */ }
Expand description

A check button with label

See also CheckBox which excludes the label.

Implementations

Construct a check button with a given label

CheckButton labels are optional; if no label is desired, use an empty string or use CheckBox instead.

Set event handler f

When the check button is set or unset, the closure f is called.

Construct a check button with a given label and event handler f

CheckButton labels are optional; if no label is desired, use an empty string or use CheckBox instead.

When the check button is set or unset, the closure f is called.

Set the initial state of the check button.

Set whether this widget is editable (inline)

Get whether this widget is editable

Set whether this widget is editable

Trait Implementations

Get size rules for the given axis Read more

Set size and position Read more

Translate a coordinate to a WidgetId Read more

Draw a widget and its children Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Get the widget’s state

Set the widget’s state

Set size and position Read more

Translate a coordinate to a WidgetId Read more

Get size rules for the given axis Read more

Draw a widget and its children Read more

Configure widget Read more

Pre-configuration Read more

Navigation in spatial order Read more

Is this widget navigable via Tab key? Read more

Get translation of children relative to this widget Read more

Handle an event sent to this widget Read more

Potentially steal an event before it reaches a child Read more

Handle an event sent to child index but left unhandled Read more

Handler for messages from children/descendants Read more

Handler for scrolling Read more

Get the number of child widgets Read more

Get a reference to a child widget by index, or None if the index is out of bounds. Read more

Mutable variant of get Read more

Find the child which is an ancestor of this id, if any Read more

Make an identifier for a child Read more

Get the widget’s identifier Read more

Get the widget’s region, relative to its parent.

Get the name of the widget struct

Erase type

Erase type

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Cast from Self to T Read more

Try converting from Self to T Read more

Try approximate conversion from Self to T Read more

Cast approximately from Self to T Read more

Cast to integer, truncating Read more

Cast to the nearest integer Read more

Cast the floor to an integer Read more

Cast the ceiling to an integer Read more

Try converting to integer with truncation Read more

Try converting to the nearest integer Read more

Try converting the floor to an integer Read more

Try convert the ceiling to an integer Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the widget’s identifier Read more

Test widget identifier for equality Read more

Display as “StructName#WidgetId”

Check whether id is self or a descendant Read more

Check whether id is not self and is a descendant Read more

Find the descendant with this id, if any

Find the descendant with this id, if any