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
pub fn with_borders(
&mut self,
borders: Borders,
variant: BorderType,
color: Color
) -> &mut Self
pub fn with_borders(
&mut self,
borders: Borders,
variant: BorderType,
color: Color
) -> &mut Self
with_borders
Set component borders style
underlined
Set underlined property for component
slow_blink
Set slow_blink property for component
rapid_blink
Set rapid_blink 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
Auto Trait Implementations
impl RefUnwindSafe for GenericPropsBuilder
impl Send for GenericPropsBuilder
impl Sync for GenericPropsBuilder
impl Unpin for GenericPropsBuilder
impl UnwindSafe for GenericPropsBuilder