carbide_core 0.70.1

An easy-to-use, 100% Rust, extensible 2D GUI library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::Rect;
use crate::render::primitive_kind::PrimitiveKind;

/// Data required for rendering a single primitive widget.
pub struct Primitive {
    /// State and style for this primitive widget.
    pub kind: PrimitiveKind,
    /// The bounding rectangle for the `Primitive`.
    pub rect: Rect,
}