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
//! The members of the compositor the benchmarks of the framework reach:
//! upstream's composition target benchmark builds draw list visuals without
//! a visual of the visual tree through the internal constructor of
//! `CompositionDrawListVisual`, with its access to the internals of the
//! framework.

use super::{CompositionDrawListVisual, Compositor};
use std::rc::Rc;

/// `new CompositionDrawListVisual(compositor, new
/// ServerCompositionDrawListVisual(compositor.Server, null), null)`: a draw
/// list visual of no visual of the tree. It draws the draw list it is given
/// and has no custom hit test.
pub fn create_draw_list_visual(compositor: &Rc<Compositor>) -> CompositionDrawListVisual {
    CompositionDrawListVisual::without_visual(compositor)
}