#include <UISystem.h>
Public 属性 | |
| std::string | key |
| graphics::Canvas * | canvas = nullptr |
| uint64_t | textureId = 0 |
| int | width = 0 |
| int | height = 0 |
| bool | hovered = false |
| bool | active = false |
| float | mouseX = 0.f |
| float | mouseY = 0.f |
| float | dragDX = 0.f |
| float | dragDY = 0.f |
| float | wheel = 0.f |
详细描述
Per-frame state of one embedded Viewport widget: its offscreen render target (owned by Graphics) and the input routed from the widget rect (local mouse, drag delta, wheel). Filled during UISystem::render().
在文件 UISystem.h 第 55 行定义.
类成员变量说明
◆ active
| bool eve::ui::ViewportState::active = false |
在文件 UISystem.h 第 62 行定义.
◆ canvas
| graphics::Canvas* eve::ui::ViewportState::canvas = nullptr |
在文件 UISystem.h 第 57 行定义.
被这些函数引用 eve::ui::UISystem::ensureViewport() , 以及 eve::ui::UI::viewportCanvas().
◆ dragDX
| float eve::ui::ViewportState::dragDX = 0.f |
在文件 UISystem.h 第 65 行定义.
◆ dragDY
| float eve::ui::ViewportState::dragDY = 0.f |
在文件 UISystem.h 第 66 行定义.
◆ height
| int eve::ui::ViewportState::height = 0 |
在文件 UISystem.h 第 60 行定义.
被这些函数引用 eve::ui::UISystem::ensureViewport().
◆ hovered
| bool eve::ui::ViewportState::hovered = false |
在文件 UISystem.h 第 61 行定义.
◆ key
| std::string eve::ui::ViewportState::key |
在文件 UISystem.h 第 56 行定义.
被这些函数引用 eve::ui::UISystem::ensureViewport().
◆ mouseX
| float eve::ui::ViewportState::mouseX = 0.f |
在文件 UISystem.h 第 63 行定义.
◆ mouseY
| float eve::ui::ViewportState::mouseY = 0.f |
在文件 UISystem.h 第 64 行定义.
◆ textureId
| uint64_t eve::ui::ViewportState::textureId = 0 |
在文件 UISystem.h 第 58 行定义.
被这些函数引用 eve::ui::UISystem::ensureViewport().
◆ wheel
| float eve::ui::ViewportState::wheel = 0.f |
在文件 UISystem.h 第 67 行定义.
◆ width
| int eve::ui::ViewportState::width = 0 |
在文件 UISystem.h 第 59 行定义.
被这些函数引用 eve::ui::UISystem::ensureViewport().
该结构体的文档由以下文件生成:
- src/modules/ui/UISystem.h