glink/text

Types

pub type Prop

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 bold(bold: Bool) -> Prop

Make the text bold.

pub fn bold_() -> Prop

Make the text bold.

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 dim_color_() -> Prop

Dim the color (emit a small amount of light).

pub fn inverse(inverse: Bool) -> Prop

Inverse background and foreground colors.

pub fn inverse_() -> Prop

Inverse background and foreground colors.

pub fn italic(italic: Bool) -> Prop

Make the text italic.

pub fn italic_() -> Prop

Make the text italic.

pub fn strikethrough(strikethrough: Bool) -> Prop

Make the text crossed with a line.

pub fn strikethrough_() -> Prop

Make the text crossed with a line.

pub fn underline(underline: Bool) -> Prop

Make the text underlined.

pub fn underline_() -> Prop

Make the text underlined.

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.

Search Document