Files
XCEngine/docs/api/XCEngine/Editor/panels/panels.md

38 lines
1.1 KiB
Markdown

# panels
**命名空间**: `XCEngine::Editor`
**类型**: `submodule`
**描述**: 编辑器面板基础设施与具体面板集合,当前以 `Panel` 基类和 `PanelCollection` 容器为核心。
## 概述
`editor/src/panels` 目录当前包含菜单栏、Hierarchy、SceneView、GameView、Inspector、Console、Project 等具体面板。
当前这组文档当前覆盖了:
- [Panel](Panel/Panel.md)
- [PanelCollection](PanelCollection/PanelCollection.md)
- [MenuBar](MenuBar/MenuBar.md)
- [HierarchyPanel](HierarchyPanel/HierarchyPanel.md)
- [ProjectPanel](ProjectPanel/ProjectPanel.md)
- [InspectorPanel](InspectorPanel/InspectorPanel.md)
- [ConsolePanel](ConsolePanel/ConsolePanel.md)
- [SceneViewPanel](SceneViewPanel/SceneViewPanel.md)
- [GameViewPanel](GameViewPanel/GameViewPanel.md)
## 设计说明
当前面板系统的思路很直接:
- 每个面板继承 `Panel`
- 生命周期由 `PanelCollection` 统一调度
- 上下文通过 `IEditorContext*` 注入到每个面板
## 相关文档
- [Editor 模块](../Editor.md)
- [EditorWorkspace](../Core/EditorWorkspace/EditorWorkspace.md)
- [Layers](../Layers/Layers.md)