glink/text
Types
Values
pub fn background_color(background_color: Color) -> Prop
Same as color
, but for background.
pub fn background_color_(background_color: String) -> Prop
Same as color
, but for background.
pub fn color(color: Color) -> Prop
Change text color. Ink uses chalk
under the hood, so all its functionality is supported.
pub fn color_(color: String) -> Prop
Change text color. Ink uses chalk
under the hood, so all its functionality is supported.
pub fn dim_color(dim_color: Bool) -> Prop
Dim the color (emit a small amount of light).
pub fn strikethrough(strikethrough: Bool) -> Prop
Make the text crossed with a line.
pub fn wrap(wrap: TextWrap) -> Prop
This property tells Ink to wrap or truncate text if its width is larger than container.
If Wrap
is passed (by default), Ink will wrap text and split it into multiple lines.
If Truncate*
is passed, Ink will truncate text instead, which will result in one line of text with the rest cut off.