[][src]Function xosd_rs::default_color

pub fn default_color<'a>() -> Result<Cow<'a, str>>

Get the default color

The XOSD library defines and uses a default color. This can be queries here. The returned string represents a name from the X11 rgb.txt.

Errors

If osd_default_color points to NULL Error::IsNullPtr is returned.

Example

let mut osd = Xosd::new(1)?;

assert_eq!(default_color()?, "green");