ferroui-base 0.2.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
//! The members of layout the benchmarks of the framework reach: upstream's
//! layout benchmark sets the flags of a layoutable through accessors of their
//! private setters (`UnsafeAccessor`), so that the time of invalidating a
//! control is not measured.

use super::Layoutable;

/// The private setter of `Layoutable.IsMeasureValid`: sets the flag alone,
/// without invalidating anything.
pub fn set_is_measure_valid(layoutable: &Layoutable, value: bool) {
    layoutable.set_is_measure_valid(value);
}

/// The private setter of `Layoutable.IsArrangeValid`: sets the flag alone,
/// without invalidating anything.
pub fn set_is_arrange_valid(layoutable: &Layoutable, value: bool) {
    layoutable.set_is_arrange_valid(value);
}