[−][src]Module bar_config::config
Bar configuration state.
This module contains everything required to express the any state of the bar. The root
element (Config
) can be accessed through the Bar
using the load
and lock
methods.
Examples
use bar_config::Bar; use std::io::Cursor; let config_file = Cursor::new(String::from( "height: 30\n\ monitors:\n\ - { name: \"DVI-1\" }" )); let bar = Bar::load(config_file).unwrap(); let config = bar.lock(); assert_eq!(config.height, 30); assert_eq!(config.monitors.len(), 1); assert_eq!(config.monitors[0].name, "DVI-1");
Structs
Border | Border separating the bar from the rest of the WM. |
Color | RGBA color specified as four values from 0 to 255. |
ComponentSettings | Default options available for every component. |
Config | Root element of the bar configuration. |
Font | Distinct identification for a font. |
Monitor | Distinct identification for a monitor. |
Enums
Background | Background of a component or the bar. |
Position | Available positions for the bar. |