1
0
Fork 0
forked from wry/wry

tree: make surface visibility tracking more robust

This commit is contained in:
Julian Orth 2024-03-29 20:07:28 +01:00
parent be0935c8dd
commit ba98103233
26 changed files with 313 additions and 144 deletions

View file

@ -4,7 +4,14 @@ 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_prepare_set_visible(&self) {
// nothing
}
fn stacked_needs_set_visible(&self) -> bool {
true
}
fn stacked_set_visible(&self, visible: bool);
fn stacked_has_workspace_link(&self) -> bool;
fn stacked_absolute_position_constrains_input(&self) -> bool {
true