x-graphics 0.2.1

Graphics framework for X
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::text::TextAlignment;

impl From<TextAlignment> for &'static str {
    fn from(alignment: TextAlignment) -> Self {
        match alignment {
            TextAlignment::Left => "left",
            TextAlignment::Center => "center",
            TextAlignment::Right => "right",
        }
    }
}