ux-components 0.1.3

Backend agnostic GUI framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum BoxShape {
    // An axis-aligned, 2D rectangle. May have rounded corners (described by a BorderRadius). 
    // The edges of the rectangle will match the edges of the box into which the Border or BoxDecoration is painte
    Rectangle = 0,
    // A circle centered in the middle of the box into which the Border or BoxDecoration is painted. 
    // The diameter of the circle is the shortest dimension of the box, either the width or the height, 
    // such that the circle touches the edges of the box.
    Circle = 1,
}

impl Default for BoxShape {
    fn default() -> Self {
        Self::Rectangle
    }
}