载入中...
搜索中...
未找到
eve::ui::EditorShell类 参考

DevTools editor shell (main menu bar + docked panel layout). 更多...

#include <EditorShell.h>

Public 成员函数

 EditorShell ()=default
 
 ~EditorShell ()
 
 EditorShell (const EditorShell &)=delete
 
EditorShelloperator= (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.
 
UIHosthost () 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.h20 行定义.

构造及析构函数说明

◆ EditorShell() [1/2]

eve::ui::EditorShell::EditorShell ( )
default

◆ ~EditorShell()

eve::ui::EditorShell::~EditorShell ( )

在文件 EditorShell.cpp12 行定义.

引用了 eve::ui::UIHost::setTree() , 以及 eve::ui::window().

◆ EditorShell() [2/2]

eve::ui::EditorShell::EditorShell ( const EditorShell )
delete

成员函数说明

◆ build()

WidgetDesc eve::ui::EditorShell::build ( )

Declarative tree of the menu bar.

在文件 EditorShell.cpp76 行定义.

引用了 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.cpp37 行定义.

引用了 eve::ui::UIHost::setVisible().

◆ host()

UIHost * eve::ui::EditorShell::host ( ) const
inline

The menu-bar host (nullptr until open()); for tests/embedding.

在文件 EditorShell.h39 行定义.

◆ isOpen()

bool eve::ui::EditorShell::isOpen ( ) const

True while the shell is mounted and visible.

在文件 EditorShell.cpp43 行定义.

◆ open()

void eve::ui::EditorShell::open ( UIHost inspector,
UIHost database,
UIHost scene 
)

Mounts the menu bar and docks the given panel hosts.

参数
inspectorInspector panel host (may be null).
databaseDatabase panel host (may be null).
sceneScene panel host (may be null).

在文件 EditorShell.cpp16 行定义.

引用了 build(), eve::ui::UIHost::createHost() , 以及 eve::ui::UIHost::setTree().

◆ operator=()

EditorShell & eve::ui::EditorShell::operator= ( const EditorShell )
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.cpp47 行定义.

引用了 name , 以及 eve::ui::UIHost::setVisible().

被这些函数引用 build().


该类的文档由以下文件生成: