Module crossterm::style [−][src]
Module that contains all the actions related to the styling of the terminal. like coloring adding attributes etc.
Modules
color |
With this module you can perform actions that are color related. Like styling the font, foreground color and background. |
objectstyle |
This module contains the |
styledobject |
This module contains the logic to style an object that contains some state witch can be styled. |
Structs
DisplayableObject |
This is a wrapper for a styled object so that the styled object could be printed with the standard write functions in rust. |
ObjectStyle |
Struct that contains the style properties that can be applied to an displayable object. |
StyledObject |
Struct that contains both the style and the content wits can be styled. |
TerminalColor |
Struct that stores an specific platform implementation for color related actions. |
Enums
Attribute |
Attributes that could be applied on some text. |
Color |
Colors that are available for coloring the terminal font. |
ColorType |
Color types that can be used to determine if the Color enum is an Fore- or Background Color |
Functions
color |
Get an Terminal Color implementation whereon color related actions can be performed. Pass the reference to any screen you want this type to perform actions on. |
style |
This could be used to style an Displayable with colors and attributes. |