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
use crate::{Ref, Visual};

/// Interface for controls that are at the root of a hosted visual tree,
/// such as popups.
///
/// An input element that is such a root returns itself from the
/// `as_hosted_visual_tree_root` virtual member of `InputElement`.
pub trait IHostedVisualTreeRoot {
    /// The visual tree host.
    fn host(&self) -> Option<Ref<Visual>>;
}