DevTools editor shell (main menu bar + docked panel layout). 更多...
#include <EditorShell.h>
Public 成员函数 | |
| EditorShell ()=default | |
| ~EditorShell () | |
| EditorShell (const EditorShell &)=delete | |
| EditorShell & | operator= (const EditorShell &)=delete |
| void | open (UIHost *inspector, UIHost *database, UIHost *scene) |
| Mounts the menu bar and docks the given panel hosts. | |
| void | close () |
| Hides the menu bar and every docked panel. | |
| bool | isOpen () const |
| True while the shell is mounted and visible. | |
| UIHost * | host () const |
| The menu-bar host (nullptr until open()); for tests/embedding. | |
| bool | selectPanel (const std::string &name) |
| Shows one panel and hides the others. | |
| WidgetDesc | build () |
| Declarative tree of the menu bar. | |
详细描述
DevTools editor shell (main menu bar + docked panel layout).
Owns a thin menu-bar host ("eve_editor") with one button per tool panel. Clicking a button shows the matching panel host and hides the others, and the panel hosts are positioned as a simple left/right dock. Console / AI / debugger panels stay independent ImGui windows (different render path).
在文件 EditorShell.h 第 20 行定义.
构造及析构函数说明
◆ EditorShell() [1/2]
|
default |
◆ ~EditorShell()
| eve::ui::EditorShell::~EditorShell | ( | ) |
在文件 EditorShell.cpp 第 12 行定义.
引用了 eve::ui::UIHost::setTree() , 以及 eve::ui::window().
◆ EditorShell() [2/2]
|
delete |
成员函数说明
◆ build()
| WidgetDesc eve::ui::EditorShell::build | ( | ) |
Declarative tree of the menu bar.
在文件 EditorShell.cpp 第 76 行定义.
引用了 eve::ui::button(), eve::ui::row(), selectPanel(), eve::ui::spacer(), eve::ui::text() , 以及 eve::ui::window().
被这些函数引用 open().
◆ close()
| void eve::ui::EditorShell::close | ( | ) |
Hides the menu bar and every docked panel.
在文件 EditorShell.cpp 第 37 行定义.
◆ host()
|
inline |
The menu-bar host (nullptr until open()); for tests/embedding.
在文件 EditorShell.h 第 39 行定义.
◆ isOpen()
| bool eve::ui::EditorShell::isOpen | ( | ) | const |
True while the shell is mounted and visible.
在文件 EditorShell.cpp 第 43 行定义.
◆ open()
Mounts the menu bar and docks the given panel hosts.
- 参数
-
inspector Inspector panel host (may be null). database Database panel host (may be null). scene Scene panel host (may be null).
在文件 EditorShell.cpp 第 16 行定义.
引用了 build(), eve::ui::UIHost::createHost() , 以及 eve::ui::UIHost::setTree().
◆ operator=()
|
delete |
◆ selectPanel()
| bool eve::ui::EditorShell::selectPanel | ( | const std::string & | name | ) |
Shows one panel and hides the others.
- 参数
-
name "inspector" | "database" | "scene" ("" hides all panels).
- 返回
- False when the name is unknown or the shell is not open.
在文件 EditorShell.cpp 第 47 行定义.
引用了 name , 以及 eve::ui::UIHost::setVisible().
被这些函数引用 build().
该类的文档由以下文件生成:
- src/modules/ui/EditorShell.h
- src/modules/ui/EditorShell.cpp