tree: add Node::node_output
This commit is contained in:
parent
0dcb33ae38
commit
b83bf0657b
15 changed files with 65 additions and 7 deletions
|
|
@ -18,7 +18,7 @@ use {
|
|||
text::TextTexture,
|
||||
tree::{
|
||||
ContainingNode, Direction, FindTreeResult, FindTreeUsecase, FoundNode, Node, NodeId,
|
||||
TddType, TileDragDestination, ToplevelData, ToplevelNode, ToplevelNodeBase,
|
||||
OutputNode, TddType, TileDragDestination, ToplevelData, ToplevelNode, ToplevelNodeBase,
|
||||
WorkspaceNode, default_tile_drag_bounds, walker::NodeVisitor,
|
||||
},
|
||||
utils::{
|
||||
|
|
@ -1761,6 +1761,10 @@ impl Node for ContainerNode {
|
|||
fn node_is_container(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn node_output(&self) -> Option<Rc<OutputNode>> {
|
||||
self.toplevel_data.output_opt()
|
||||
}
|
||||
}
|
||||
|
||||
impl ContainingNode for ContainerNode {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue