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
17
18
use crate::Rect;

/// Provides data for the scene invalidated event of a renderer.
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct SceneInvalidatedEventArgs {
    dirty_rect: Rect,
}

impl SceneInvalidatedEventArgs {
    pub fn new(dirty_rect: Rect) -> Self {
        Self { dirty_rect }
    }

    /// The invalidated area.
    pub fn dirty_rect(&self) -> Rect {
        self.dirty_rect
    }
}