Initial commit, layout mockup
This commit is contained in:
29
addons/dockable_container/layout_node.gd
Normal file
29
addons/dockable_container/layout_node.gd
Normal file
@@ -0,0 +1,29 @@
|
||||
@tool
|
||||
class_name DockableLayoutNode
|
||||
extends Resource
|
||||
## Base class for DockableLayout tree nodes
|
||||
|
||||
var parent: DockableLayoutSplit:
|
||||
get:
|
||||
return _parent_ref.get_ref()
|
||||
set(value):
|
||||
_parent_ref = weakref(value)
|
||||
|
||||
var _parent_ref := WeakRef.new()
|
||||
|
||||
|
||||
func emit_tree_changed() -> void:
|
||||
var node := self
|
||||
while node:
|
||||
node.emit_changed()
|
||||
node = node.parent
|
||||
|
||||
|
||||
## Returns whether there are any nodes
|
||||
func is_empty() -> bool:
|
||||
return true
|
||||
|
||||
|
||||
## Returns all tab names in this node
|
||||
func get_names() -> PackedStringArray:
|
||||
return PackedStringArray()
|
||||
Reference in New Issue
Block a user