pub struct Label { /* private fields */ }

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Widgets may need to communicate with transmogrifier implementations. This type is the type that can be sent to a transmogrifier. Read more

The type of the event that any Transmogrifier for this widget to use. Read more

The unique class name for this widget. Must not conflict with any other widgets in use. Widget authors should prefix their widget names to ensure no conflicts. For example, the gooey-widgets crate prefixes all of the CLASS constants with gooey-. Read more

When true, the control is able to receive focus through focus advancement, most commonly done when using the tab key. Read more

Returns all classes that apply styles for this widget.

Called when an event from the transmogrifier was received.

Returns the effective text color for the given style.

Returns the effective background color for the given style.

Invokes with_fn with the widget widget_id and a Context. Returns the result. Read more

Invokes with_fn with the widget widget_id and a Context. Returns the result. Read more

Auto Trait Implementations

Blanket Implementations

Convert the source color to the destination color using the specified method Read more

Convert the source color to the destination color using the bradford method by default Read more

Gets the TypeId of self. Read more

Returns the underlying type as Any.

Returns the underlying type as Any.

Returns the TypeId of the widget.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Convert into T with values clamped to the color defined bounds Read more

Convert into T. The resulting color might be invalid in its color space 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.

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more