Files
XCEngine/docs/api/XCEditor/Foundation/UIEditorShortcutManager/Dispatch.md

34 lines
1.0 KiB
Markdown
Raw Normal View History

# UIEditorShortcutManager::Dispatch
公开方法,详见头文件声明。
```cpp
UIEditorShortcutDispatchResult Dispatch( const XCEngine::UI::UIInputEvent& event, const XCEngine::UI::UIShortcutContext& shortcutContext, UIEditorWorkspaceController& controller) const;
```
该方法声明于 `XCEditor/Foundation/UIEditorShortcutManager.h`,当前页面用于固定 `UIEditorShortcutManager` 类目录下的方法级 canonical 路径。
**参数:**
- `event` - 参数语义详见头文件声明。
- `shortcutContext` - 参数语义详见头文件声明。
- `controller` - 参数语义详见头文件声明。
**返回:** `UIEditorShortcutDispatchResult` - 返回值语义详见头文件声明。
**示例:**
```cpp
#include <XCEditor/Foundation/UIEditorShortcutManager.h>
void Example() {
XCEngine::UIEditorShortcutManager object;
// 根据上下文补齐参数后调用 UIEditorShortcutManager::Dispatch(...)。
(void)object;
}
```
## 相关文档
- [返回类总览](UIEditorShortcutManager.md)
- [返回模块目录](../Foundation.md)