tree: allow floats to be pinned
This commit is contained in:
parent
3e6640f0ca
commit
65a66c2e26
28 changed files with 528 additions and 36 deletions
|
|
@ -1,4 +1,7 @@
|
|||
use crate::tree::Node;
|
||||
use {
|
||||
crate::tree::{Node, WorkspaceNode},
|
||||
std::rc::Rc,
|
||||
};
|
||||
|
||||
pub trait StackedNode: Node {
|
||||
fn stacked_prepare_set_visible(&self) {
|
||||
|
|
@ -14,3 +17,7 @@ pub trait StackedNode: Node {
|
|||
true
|
||||
}
|
||||
}
|
||||
|
||||
pub trait PinnedNode: StackedNode {
|
||||
fn set_workspace(self: Rc<Self>, workspace: &Rc<WorkspaceNode>, update_visible: bool);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue