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

#include <UISystem.h>

静态 Public 成员函数

static void setBackend (UIBackend *backend)
 
static UIBackendbackend ()
 
static const UIStatsstats ()
 
static ViewportStateviewportState (const std::string &hostName, const std::string &nodeId)
 
static ViewportStateensureViewport (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 UIHostfindHost (const std::string &name)
 Lookup by Meta.name across the UIHost View.
 
static UIHostfindHostByOwner (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.h70 行定义.

成员函数说明

◆ backend()

UIBackend * eve::ui::UISystem::backend ( )
static

在文件 UISystem.cpp535 行定义.

被这些函数引用 setBackend().

◆ changeQueue()

std::vector< UIChange > & eve::ui::UISystem::changeQueue ( )
static

在文件 UISystem.cpp532 行定义.

◆ clickQueue()

std::vector< UIClick > & eve::ui::UISystem::clickQueue ( )
static

在文件 UISystem.cpp531 行定义.

◆ consumeChange()

std::string eve::ui::UISystem::consumeChange ( )
static

Pop next change as "name/node"; empty if none.

在文件 UISystem.cpp696 行定义.

引用了 c.

被这些函数引用 eve::ui::UI::consumeChange().

◆ consumeClick()

std::string eve::ui::UISystem::consumeClick ( )
static

Pop next click as "name/node"; empty if none.

在文件 UISystem.cpp678 行定义.

引用了 c.

被这些函数引用 eve::ui::UI::consumeClick().

◆ consumeClickFor()

std::string eve::ui::UISystem::consumeClickFor ( const std::string &  hostName)
static

Pop next click for a specific host; returns node id only (or "").

在文件 UISystem.cpp686 行定义.

引用了 id.

◆ dispatchEvents()

void eve::ui::UISystem::dispatchEvents ( )
static

◆ ensureViewport()

ViewportState * eve::ui::UISystem::ensureViewport ( const std::string &  key,
int  w,
int  h 
)
static

◆ findHost()

UIHost * eve::ui::UISystem::findHost ( const std::string &  name)
static

Lookup by Meta.name across the UIHost View.

在文件 UISystem.cpp561 行定义.

引用了 name , 以及 view.

被这些函数引用 eve::ui::UI::findHost() , 以及 eve::ui::Component::mountAs().

◆ findHostByOwner()

UIHost * eve::ui::UISystem::findHostByOwner ( uint32_t  ownerId)
static

First host with Meta.ownerId == ownerId, or nullptr.

在文件 UISystem.cpp573 行定义.

引用了 view.

被这些函数引用 eve::ui::UI::findHostByOwner().

◆ pendingEvents()

std::vector< UIEvent > & eve::ui::UISystem::pendingEvents ( )
static

在文件 UISystem.cpp530 行定义.

被这些函数引用 eve::ui::UI::dispatchEvents().

◆ render()

void eve::ui::UISystem::render ( )
static

Walk all UIHost (+ subclasses) via ECS View.

在文件 UISystem.cpp585 行定义.

引用了 a, eve::ui::applyThemeToImGui(), b, eve::ui::globalTheme(), eve::ui::measureTree() , 以及 view.

被这些函数引用 eve::ui::UI::beginFrameAndRender().

◆ setBackend()

void eve::ui::UISystem::setBackend ( UIBackend backend)
static

Backend used for texture size lookups while rendering (set by UI).

在文件 UISystem.cpp534 行定义.

引用了 backend().

被这些函数引用 eve::ui::UI::initBackend().

◆ stats()

const UIStats & eve::ui::UISystem::stats ( )
static

在文件 UISystem.cpp536 行定义.

被这些函数引用 eve::ui::UI::getStats().

◆ viewportState()

ViewportState * eve::ui::UISystem::viewportState ( const std::string &  hostName,
const std::string &  nodeId 
)
static

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