Expand description
The style for shapes and text, font, color, etc.
Re-exports§
pub use colors::BLACK;
pub use colors::BLUE;
pub use colors::CYAN;
pub use colors::GREEN;
pub use colors::MAGENTA;
pub use colors::RED;
pub use colors::TRANSPARENT;
pub use colors::WHITE;
pub use colors::YELLOW;
pub use colors::full_palette;
full_palette
Modules§
- colors
- Basic predefined colors.
- text_
anchor - Text anchor attributes are used to properly position the text.
Structs§
- Font
Desc - Describes a font
- HSLColor
- The color described by HSL color space
- Palette99
- Definitions of palettes of accessibility The palette of 99% accessibility
- Palette100
- Definitions of palettes of accessibility The palette of 100% accessibility
- Palette9999
- Definitions of palettes of accessibility The palette of 99.99% accessibility
- Palette
Color - A color in the given palette
- RGBA
Color - The RGBA representation of the color, Plotters use RGBA as the internal representation of color
- RGBColor
- The color described by its RGB value
- Shape
Style - Style for any shape
- Text
Style - Style of a text
Enums§
- Font
Family - Describes font family. This can be either a specific font family name, such as “arial”, or a general font family class, such as “serif” and “sans-serif”
- Font
Style - Describes the font style. Such as Italic, Oblique, etc.
- Font
Transform - Specifying text transformations
- Relative
Size - Describes a relative size, might be 1. portion of height 2. portion of width 3. portion of the minimal of height and weight
Traits§
- AsRelative
- Allows a value turns into a relative size
- Color
- Any color representation
- Into
Font - The trait that allows some type turns into a font description
- Into
Text Style - Trait for values that can be converted into
TextStyle
values - Palette
- Definitions of palettes of accessibility Represents a color palette
- Size
Desc - The trait that describes a size, it may be a relative size which the size is determined by the parent size, e.g., 10% of the parent width
Functions§
- register_
font - Register a font in the fonts table.
Type Aliases§
- Font
Error - The error type for the font implementation
- Font
Result - The type we used to represent a result of any font operations
- Layout
Box - Represents a box where a text label can be fit