Platform / renderer backend for declarative UI. Concrete implementations live under ui/<backend>/ (e.g. ui/imgui). 更多...
#include <UIBackend.h>
Public 成员函数 | |
| virtual | ~UIBackend ()=default |
| virtual bool | init (SDL_Window *window, eve::graphics::Graphics *gfx)=0 |
| virtual void | shutdown ()=0 |
| virtual bool | isInitialized () const =0 |
| virtual void | processEvent (const SDL_Event *event)=0 |
| virtual void | newFrame ()=0 |
| virtual bool | wantCaptureMouse () const |
| virtual bool | wantCaptureKeyboard () const |
| virtual void | setScale (float) |
| Scale fonts + ImGui style metrics (1 = default desktop). | |
| virtual float | getScale () const |
| virtual uint64_t | registerTexture (graphics::Texture *) |
| virtual void | unregisterTexture (uint64_t) |
| virtual bool | textureSize (uint64_t, int *, int *) const |
| virtual void * | textureHandle (uint64_t) const |
详细描述
Platform / renderer backend for declarative UI. Concrete implementations live under ui/<backend>/ (e.g. ui/imgui).
在文件 UIBackend.h 第 18 行定义.
构造及析构函数说明
◆ ~UIBackend()
|
virtualdefault |
成员函数说明
◆ getScale()
|
inlinevirtual |
被 eve::ui::ImGuiBackend 重载.
在文件 UIBackend.h 第 34 行定义.
◆ init()
|
pure virtual |
在 eve::ui::ImGuiBackend 内被实现.
◆ isInitialized()
|
pure virtual |
在 eve::ui::ImGuiBackend 内被实现.
◆ newFrame()
|
pure virtual |
在 eve::ui::ImGuiBackend 内被实现.
◆ processEvent()
|
pure virtual |
在 eve::ui::ImGuiBackend 内被实现.
◆ registerTexture()
|
inlinevirtual |
Register an engine texture for UI drawing. Returns an opaque id usable as UINode::textureId (0 = unsupported / failure). The texture must stay alive while registered.
在文件 UIBackend.h 第 41 行定义.
◆ setScale()
|
inlinevirtual |
Scale fonts + ImGui style metrics (1 = default desktop).
被 eve::ui::ImGuiBackend 重载.
在文件 UIBackend.h 第 33 行定义.
◆ shutdown()
|
pure virtual |
在 eve::ui::ImGuiBackend 内被实现.
◆ textureHandle()
|
inlinevirtual |
Backend draw handle (ImTextureID) for a registered id; null if unknown.
在文件 UIBackend.h 第 46 行定义.
◆ textureSize()
|
inlinevirtual |
Texture pixel size for a registered id (used by nine-patch UV math).
在文件 UIBackend.h 第 44 行定义.
◆ unregisterTexture()
|
inlinevirtual |
在文件 UIBackend.h 第 42 行定义.
◆ wantCaptureKeyboard()
|
inlinevirtual |
被 eve::ui::ImGuiBackend 重载.
在文件 UIBackend.h 第 30 行定义.
◆ wantCaptureMouse()
|
inlinevirtual |
被 eve::ui::ImGuiBackend 重载.
在文件 UIBackend.h 第 29 行定义.
该类的文档由以下文件生成:
- src/modules/ui/UIBackend.h