Crate tui_gradient_block

Source

Structs§

BorderStyleInfo
A struct that defines the characters used for different parts of a border’s visual appearance. Each field specifies a character to represent a particular section of the border.
SplitBorderSegments
Represents individual border segments that can be split or modified.
TuiGradientblock
A struct that represents a customizable block with gradient text, borders, and other visual elements.

Enums§

BorderStyle
contains the custom border types Defines different border styles that can be applied.
GradientSegments
Represents different segments of a border where gradients can be applied.
MiscBorderTypes
Contains miscellaneous border types
TitleAlignment
Defines the alignment options for a title within a bordered area.

Constants§

ERROR_MESSAGE
A constant error message displayed when there are not enough colors provided for a gradient. It encourages the user to use at least two colors for a gradient effect or repeat the same color if a solid color is desired.
MISC1
A set of predefined border styles for different visual aesthetics. Each BorderStyleInfo instance defines the characters to be used for different parts of the border (corners, sides, and centers).
MISC2
A border style with special bottom corners “╘” and “╛” and “═” edges for a different aesthetic.
MISC3
A border style with “╬” for the corners and sides, giving a more solid and ornate border.
MISC4
A more unique border style featuring “$” for the corners, “~” for the center sides, and “─” for the edges.