Dear ImGui + SDL input + Vulkan present overlay. 更多...
#include <ImGuiBackend.h>
Public 成员函数 | |
| ImGuiBackend ()=default | |
| ~ImGuiBackend () override | |
| ImGuiBackend (const ImGuiBackend &)=delete | |
| ImGuiBackend & | operator= (const ImGuiBackend &)=delete |
| bool | init (SDL_Window *window, eve::graphics::Graphics *gfx) override |
| void | shutdown () override |
| bool | isInitialized () const override |
| void | processEvent (const SDL_Event *event) override |
| void | newFrame () override |
| bool | wantCaptureMouse () const override |
| bool | wantCaptureKeyboard () const override |
| void | setScale (float scale) override |
| Scale fonts + ImGui style metrics (1 = default desktop). | |
| float | getScale () const override |
Public 成员函数 继承自 eve::ui::UIBackend | |
| virtual | ~UIBackend ()=default |
详细描述
Dear ImGui + SDL input + Vulkan present overlay.
在文件 ImGuiBackend.h 第 13 行定义.
构造及析构函数说明
◆ ImGuiBackend() [1/2]
|
default |
◆ ~ImGuiBackend()
|
override |
在文件 ImGuiBackend.cpp 第 105 行定义.
引用了 shutdown().
◆ ImGuiBackend() [2/2]
|
delete |
成员函数说明
◆ getScale()
|
inlineoverridevirtual |
重载 eve::ui::UIBackend .
在文件 ImGuiBackend.h 第 32 行定义.
◆ init()
|
overridevirtual |
实现了 eve::ui::UIBackend.
在文件 ImGuiBackend.cpp 第 107 行定义.
引用了 eve::graphics::Graphics::addWindowDestroyedCallback(), eve::ui::applyThemeToImGui(), device, eve::graphics::vulkan::Graphics::getDevice(), eve::ui::globalTheme(), ImGui_ImplWGPU_CreateFontsTexture(), ImGui_ImplWGPU_Init(), eve::graphics::Graphics::setPresentOverlay(), eve::ui::setThemeDpiScale(), eve::ui::setThemeUiScale() , 以及 eve::ui::window().
◆ isInitialized()
|
inlineoverridevirtual |
实现了 eve::ui::UIBackend.
在文件 ImGuiBackend.h 第 23 行定义.
◆ newFrame()
|
overridevirtual |
◆ operator=()
|
delete |
◆ processEvent()
|
overridevirtual |
实现了 eve::ui::UIBackend.
在文件 ImGuiBackend.cpp 第 270 行定义.
◆ setScale()
|
overridevirtual |
Scale fonts + ImGui style metrics (1 = default desktop).
重载 eve::ui::UIBackend .
在文件 ImGuiBackend.cpp 第 302 行定义.
引用了 scale.
◆ shutdown()
|
overridevirtual |
◆ wantCaptureKeyboard()
|
overridevirtual |
重载 eve::ui::UIBackend .
在文件 ImGuiBackend.cpp 第 507 行定义.
◆ wantCaptureMouse()
|
overridevirtual |
重载 eve::ui::UIBackend .
在文件 ImGuiBackend.cpp 第 502 行定义.
该类的文档由以下文件生成:
- src/modules/ui/imgui/ImGuiBackend.h
- src/modules/ui/imgui/ImGuiBackend.cpp
Public 成员函数 继承自