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
13
14
15
16
use std::time::Duration;

/// Represents a single layout pass timing.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
pub struct LayoutPassTiming {
    /// The number of the layout pass.
    pub pass_counter: i32,
    /// The elapsed time during the layout pass.
    pub elapsed: Duration,
}

impl LayoutPassTiming {
    pub const fn new(pass_counter: i32, elapsed: Duration) -> Self {
        Self { pass_counter, elapsed }
    }
}