yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::layout_designer::DockTree Struct Reference

#include <dock_tree.h>

Public Member Functions

 DockTree ()
 
 DockTree (std::string name)
 
DockTree Clone () const
 
bool Validate (std::string *error) const
 
const DockNodeFindNode (DockNodeId id) const
 
DockNodeFindNode (DockNodeId id)
 

Public Attributes

std::string name
 
std::string description
 
std::uint64_t schema_version = 2
 
std::unique_ptr< DockNoderoot
 

Detailed Description

Definition at line 108 of file dock_tree.h.

Constructor & Destructor Documentation

◆ DockTree() [1/2]

yaze::editor::layout_designer::DockTree::DockTree ( )

Definition at line 139 of file dock_tree.cc.

◆ DockTree() [2/2]

yaze::editor::layout_designer::DockTree::DockTree ( std::string name)
explicit

Definition at line 141 of file dock_tree.cc.

Member Function Documentation

◆ Clone()

DockTree yaze::editor::layout_designer::DockTree::Clone ( ) const

Definition at line 144 of file dock_tree.cc.

References description, name, root, and schema_version.

Referenced by yaze::editor::layout_designer::TreeUndoStack::Push().

◆ Validate()

bool yaze::editor::layout_designer::DockTree::Validate ( std::string * error) const

Definition at line 222 of file dock_tree.cc.

References root.

Referenced by yaze::editor::LayoutManager::ApplyDockTree().

◆ FindNode() [1/2]

◆ FindNode() [2/2]

DockNode * yaze::editor::layout_designer::DockTree::FindNode ( DockNodeId id)

Definition at line 257 of file dock_tree.cc.

References FindNode().

Here is the call graph for this function:

Member Data Documentation

◆ name

◆ description

◆ schema_version

std::uint64_t yaze::editor::layout_designer::DockTree::schema_version = 2

Definition at line 114 of file dock_tree.h.

Referenced by Clone(), and yaze::editor::layout_designer::DockTreeFromJson().

◆ root


The documentation for this struct was generated from the following files: