ferroui_base/visual_tree/i_hosted_visual_tree_root.rs
1use crate::{Ref, Visual};
2
3/// Interface for controls that are at the root of a hosted visual tree,
4/// such as popups.
5///
6/// An input element that is such a root returns itself from the
7/// `as_hosted_visual_tree_root` virtual member of `InputElement`.
8pub trait IHostedVisualTreeRoot {
9 /// The visual tree host.
10 fn host(&self) -> Option<Ref<Visual>>;
11}