载入中...
搜索中...
未找到
eve::editor::EditorFocusService类 参考

Shared semantic focus service for docked editor and game HUD surfaces. 更多...

#include <EditorSelection.h>

Public 成员函数

Result< EditorFocusSnapshot > focus (std::string channel, StableId surface, StableId item={})
 Set the focused surface/item for one channel.
 
EditorFocusSnapshot snapshot (const std::string &channel) const
 Read the current focus of one channel.
 

详细描述

Shared semantic focus service for docked editor and game HUD surfaces.

在文件 EditorSelection.h 第 54 行定义.

成员函数说明

◆ focus()

Result< EditorFocusSnapshot > eve::editor::EditorFocusService::focus ( std::string  channel,
StableId  surface,
StableId  item = {} 
)

Set the focused surface/item for one channel.

在文件 EditorSelection.cpp 第 49 行定义.

引用了 eve::editing::FocusSnapshot::channel, eve::UuidIdAdapter< Tag >::empty() , 以及 value.

被这些函数引用 eve::editor::EditorWorkspace::focusItem().

◆ snapshot()

EditorFocusSnapshot eve::editor::EditorFocusService::snapshot ( const std::string &  channel) const

Read the current focus of one channel.

在文件 EditorSelection.cpp 第 62 行定义.

引用了 eve::editing::FocusSnapshot::channel , 以及 found.

被这些函数引用 eve::editor::EditorWorkspace::getFocusedSurface().


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