ferroui-base 0.3.0

The base library of FerroUI: the property system, layout, input, styling, media, text, animation, data binding and the compositor
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Describes how to interpret the alpha component of a pixel.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
pub enum AlphaFormat {
    /// All pixels have their alpha premultiplied in their color components.
    #[default]
    Premul,
    /// All pixels have their color components stored without any regard to
    /// the alpha, e.g. they are unpremultiplied.
    Unpremul,
    /// All pixels are stored as opaque.
    Opaque,
}