tree: add Node::node_output
This commit is contained in:
parent
0dcb33ae38
commit
b83bf0657b
15 changed files with 65 additions and 7 deletions
|
|
@ -11,8 +11,8 @@ use {
|
|||
text::TextTexture,
|
||||
tree::{
|
||||
ContainerSplit, Direction, FindTreeResult, FindTreeUsecase, FoundNode, Node, NodeId,
|
||||
NodeVisitor, TileDragDestination, ToplevelData, ToplevelNode, ToplevelNodeBase,
|
||||
default_tile_drag_destination,
|
||||
NodeVisitor, OutputNode, TileDragDestination, ToplevelData, ToplevelNode,
|
||||
ToplevelNodeBase, default_tile_drag_destination,
|
||||
},
|
||||
utils::{
|
||||
asyncevent::AsyncEvent, errorfmt::ErrorFmt, on_drop_event::OnDropEvent,
|
||||
|
|
@ -201,6 +201,10 @@ impl Node for PlaceholderNode {
|
|||
fn node_into_toplevel(self: Rc<Self>) -> Option<Rc<dyn ToplevelNode>> {
|
||||
Some(self)
|
||||
}
|
||||
|
||||
fn node_output(&self) -> Option<Rc<OutputNode>> {
|
||||
self.toplevel.output_opt()
|
||||
}
|
||||
}
|
||||
|
||||
impl ToplevelNodeBase for PlaceholderNode {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue