1
0
Fork 0
forked from wry/wry
wry/src/tree/stacked.rs
2022-04-29 17:57:11 +02:00

12 lines
374 B
Rust

use {crate::tree::Node, std::rc::Rc};
pub trait StackedNode: Node {
fn stacked_as_node(&self) -> &dyn Node;
fn stacked_into_node(self: Rc<Self>) -> Rc<dyn Node>;
fn stacked_into_dyn(self: Rc<Self>) -> Rc<dyn StackedNode>;
fn stacked_set_visible(&self, visible: bool);
fn stacked_absolute_position_constrains_input(&self) -> bool {
true
}
}