xengui 0.2.1

wgpu based, modern and high-performance GUI library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: Apache-2.0
use super::Color;

#[derive(Clone, Debug, PartialEq)]
pub enum Background {
    Color(Color),
    // LinearGradient(LinearGradient),
    // RadialGradient(RadialGradient),
    // Image(ImageBrush),
}
impl From<Color> for Background {
    fn from(color: Color) -> Self {
        Self::Color(color)
    }
}