Struct tuirealm::props::builder::GenericPropsBuilder[][src]

pub struct GenericPropsBuilder { /* fields omitted */ }
Expand description

GenericPropsBuilder

This props builder exports methods to set values for all the possible properties. In a normal case you shouldn’t use this builder, unless you can actually customize everything of your component. For a Builder you should always implement only three traits: Default, From<Props> and PropsBuilder, then you should implement the setter methods for it, for the only properties you need for the associated component.

Implementations

with_foreground

Set foreground color for component

with_background

Set background color for component

with_borders

Set component borders style

bold

Set bold property for component

italic

Set italic property for component

underlined

Set underlined property for component

Set slow_blink property for component

Set rapid_blink property for component

reversed

Set reversed property for component

strikethrough

Set strikethrough property for component

with_texts

Set texts for component

with_custom_color

Set a custom color inside the color palette

with_value

Set a new key-value for component

Trait Implementations

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

Performs the conversion.

build Read more

hidden Read more

visible Read more

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

Performs the conversion.

Performs the conversion.

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.