#include <UISystem.h>
静态 Public 成员函数 | |
| static void | setBackend (UIBackend *backend) |
| static UIBackend * | backend () |
| static const UIStats & | stats () |
| static ViewportState * | viewportState (const std::string &hostName, const std::string &nodeId) |
| static ViewportState * | ensureViewport (const std::string &key, int w, int h) |
| static void | render () |
| Walk all UIHost (+ subclasses) via ECS View. | |
| static std::vector< UIEvent > & | pendingEvents () |
| static void | dispatchEvents () |
| static UIHost * | findHost (const std::string &name) |
| Lookup by Meta.name across the UIHost View. | |
| static UIHost * | findHostByOwner (uint32_t ownerId) |
| First host with Meta.ownerId == ownerId, or nullptr. | |
| static std::vector< UIClick > & | clickQueue () |
| static std::vector< UIChange > & | changeQueue () |
| static std::string | consumeClick () |
| Pop next click as "name/node"; empty if none. | |
| static std::string | consumeClickFor (const std::string &hostName) |
| Pop next click for a specific host; returns node id only (or ""). | |
| static std::string | consumeChange () |
| Pop next change as "name/node"; empty if none. | |
详细描述
在文件 UISystem.h 第 70 行定义.
成员函数说明
◆ backend()
|
static |
在文件 UISystem.cpp 第 535 行定义.
被这些函数引用 setBackend().
◆ changeQueue()
|
static |
在文件 UISystem.cpp 第 532 行定义.
◆ clickQueue()
|
static |
在文件 UISystem.cpp 第 531 行定义.
◆ consumeChange()
|
static |
Pop next change as "name/node"; empty if none.
在文件 UISystem.cpp 第 696 行定义.
引用了 c.
被这些函数引用 eve::ui::UI::consumeChange().
◆ consumeClick()
|
static |
Pop next click as "name/node"; empty if none.
在文件 UISystem.cpp 第 678 行定义.
引用了 c.
被这些函数引用 eve::ui::UI::consumeClick().
◆ consumeClickFor()
|
static |
Pop next click for a specific host; returns node id only (or "").
在文件 UISystem.cpp 第 686 行定义.
引用了 id.
◆ dispatchEvents()
|
static |
在文件 UISystem.cpp 第 628 行定义.
引用了 c, events, eve::ui::UIClick::hostName, eve::ui::UIChange::hostName, idx, eve::ui::UIChange::kind , 以及 eve::ui::UIChange::nodeId.
被这些函数引用 eve::ui::UI::dispatchEvents().
◆ ensureViewport()
|
static |
Create/refresh the offscreen canvas for a viewport key.
在文件 UISystem.cpp 第 538 行定义.
引用了 eve::ui::ViewportState::canvas, eve::graphics::Canvas::getTexture(), h, eve::ui::ViewportState::height, eve::ui::ViewportState::key, eve::ui::ViewportState::textureId, w , 以及 eve::ui::ViewportState::width.
被这些函数引用 eve::ui::UI::viewportCanvas().
◆ findHost()
|
static |
Lookup by Meta.name across the UIHost View.
在文件 UISystem.cpp 第 561 行定义.
被这些函数引用 eve::ui::UI::findHost() , 以及 eve::ui::Component::mountAs().
◆ findHostByOwner()
|
static |
First host with Meta.ownerId == ownerId, or nullptr.
在文件 UISystem.cpp 第 573 行定义.
引用了 view.
被这些函数引用 eve::ui::UI::findHostByOwner().
◆ pendingEvents()
|
static |
在文件 UISystem.cpp 第 530 行定义.
被这些函数引用 eve::ui::UI::dispatchEvents().
◆ render()
|
static |
Walk all UIHost (+ subclasses) via ECS View.
在文件 UISystem.cpp 第 585 行定义.
引用了 a, eve::ui::applyThemeToImGui(), b, eve::ui::globalTheme(), eve::ui::measureTree() , 以及 view.
被这些函数引用 eve::ui::UI::beginFrameAndRender().
◆ setBackend()
|
static |
Backend used for texture size lookups while rendering (set by UI).
在文件 UISystem.cpp 第 534 行定义.
引用了 backend().
被这些函数引用 eve::ui::UI::initBackend().
◆ stats()
|
static |
在文件 UISystem.cpp 第 536 行定义.
被这些函数引用 eve::ui::UI::getStats().
◆ viewportState()
|
static |
Viewport state for "hostName/nodeId"; nullptr if no such viewport.
在文件 UISystem.cpp 第 556 行定义.
被这些函数引用 eve::ui::UI::viewportActive(), eve::ui::UI::viewportCanvas(), eve::ui::UI::viewportDragDX(), eve::ui::UI::viewportDragDY(), eve::ui::UI::viewportHovered(), eve::ui::UI::viewportMouseX(), eve::ui::UI::viewportMouseY() , 以及 eve::ui::UI::viewportWheel().
该类的文档由以下文件生成:
- src/modules/ui/UISystem.h
- src/modules/ui/UISystem.cpp