DevTools editor shell (main menu bar + docked panel layout). 更多...
#include <EditorShell.h>
Public 成员函数 | |
| EditorShell ()=default | |
| Editor shell. | |
| ~EditorShell () | |
| Editor shell. | |
| EditorShell (const EditorShell &)=delete | |
| EditorShell & | operator= (const EditorShell &)=delete |
| void | open (UIHostHandle inspector, UIHostHandle database, UIHostHandle 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. | |
| UIHostHandle | host () const noexcept |
| Returns the menu-bar host handle, or an empty handle until open(). | |
| bool | selectPanel (const std::string &name) |
| Shows one panel and hides the others. | |
| bool | togglePanel (const std::string &name) |
| Toggles one panel without hiding the other docked panels. | |
| WidgetDesc | build () |
| Declarative tree of the menu bar. | |
详细描述
DevTools editor shell (main menu bar + docked panel layout).
Owns a compact toolbar host ("eve_editor") with one command per tool panel. Panel windows receive a responsive initial three-column layout, then remain user-movable/resizable so ImGui's ini persistence restores the workspace.
在文件 EditorShell.h 第 21 行定义.
构造及析构函数说明
◆ EditorShell() [1/2]
|
default |
Editor shell.
◆ ~EditorShell()
| eve::ui::EditorShell::~EditorShell | ( | ) |
Editor shell.
在文件 EditorShell.cpp 第 17 行定义.
引用了 host(), eve::ui::UIHost::resolve() , 以及 eve::ui::window().
◆ EditorShell() [2/2]
|
delete |
成员函数说明
◆ build()
| WidgetDesc eve::ui::EditorShell::build | ( | ) |
Declarative tree of the menu bar.
在文件 EditorShell.cpp 第 110 行定义.
引用了 eve::ui::badge(), commands, eve::ui::Cubes, eve::ui::Database, eve::ui::EyeSlash, icon, eve::ui::iconButton(), eve::ui::Layers, selectPanel(), eve::ui::Sliders, eve::ui::spacer(), text, togglePanel(), eve::ui::toolbar() , 以及 eve::ui::window().
被这些函数引用 open().
◆ close()
| void eve::ui::EditorShell::close | ( | ) |
Hides the menu bar and every docked panel.
在文件 EditorShell.cpp 第 54 行定义.
◆ host()
|
inlinenoexcept |
Returns the menu-bar host handle, or an empty handle until open().
在文件 EditorShell.h 第 42 行定义.
被这些函数引用 isOpen(), open(), selectPanel(), togglePanel() , 以及 ~EditorShell().
◆ isOpen()
| bool eve::ui::EditorShell::isOpen | ( | ) | const |
True while the shell is mounted and visible.
在文件 EditorShell.cpp 第 61 行定义.
引用了 host() , 以及 eve::ui::UIHost::resolve().
◆ open()
| void eve::ui::EditorShell::open | ( | UIHostHandle | inspector, |
| UIHostHandle | database, | ||
| UIHostHandle | scene | ||
| ) |
Mounts the menu bar and docks the given panel hosts.
- 参数
-
inspector Inspector panel host handle (may be empty). database Database panel host handle (may be empty). scene Scene panel host handle (may be empty).
在文件 EditorShell.cpp 第 22 行定义.
引用了 build(), eve::ui::UIHost::createHost(), host(), eve::ui::UIHost::resolve(), scene , 以及 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 第 66 行定义.
引用了 host(), name , 以及 eve::ui::UIHost::resolve().
被这些函数引用 build().
◆ togglePanel()
| bool eve::ui::EditorShell::togglePanel | ( | const std::string & | name | ) |
Toggles one panel without hiding the other docked panels.
在文件 EditorShell.cpp 第 96 行定义.
引用了 handle, host(), name, eve::ui::UIHost::resolve() , 以及 eve::ui::UIHost::setVisible().
被这些函数引用 build().
该类的文档由以下文件生成:
- src/modules/ui/EditorShell.h
- src/modules/ui/EditorShell.cpp