Caller-owned state for Pcg's draggable photo-mode window. 更多...
#include <PcgDraggableWindow.h>
Public 成员函数 | |
| Result< void > | configure (float x, float y, float width, float height, float screenWidth, float screenHeight, float canvasScale) |
| Configure geometry and remember the exact reset position atomically. | |
| Result< void > | drag (float deltaX, float deltaY) |
| Apply one pointer delta divided by canvas scale and clamp to Pcg bounds. | |
| void | pointerDown (bool middleButtonDown) noexcept |
| Process pointer-down; middleButtonDown restores the initial position. | |
| PcgUiRequestStatus | consumeBringToFront () noexcept |
| Consume the request to move the window to the front. | |
| float | getX () const noexcept |
| Return current anchored X. | |
| float | getY () const noexcept |
| Return current anchored Y. | |
详细描述
Caller-owned state for Pcg's draggable photo-mode window.
在文件 PcgDraggableWindow.h 第 9 行定义.
成员函数说明
◆ configure()
| Result< void > eve::ui::PcgDraggableWindow::configure | ( | float | x, |
| float | y, | ||
| float | width, | ||
| float | height, | ||
| float | screenWidth, | ||
| float | screenHeight, | ||
| float | canvasScale | ||
| ) |
Configure geometry and remember the exact reset position atomically.
在文件 PcgDraggableWindow.cpp 第 11 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), height, eve::InvalidArgument, scale, eve::Result< T >::success(), width, x , 以及 y.
◆ consumeBringToFront()
|
noexcept |
Consume the request to move the window to the front.
在文件 PcgDraggableWindow.cpp 第 50 行定义.
引用了 eve::ui::None, eve::ui::Requested , 以及 value.
◆ drag()
| Result< void > eve::ui::PcgDraggableWindow::drag | ( | float | deltaX, |
| float | deltaY | ||
| ) |
Apply one pointer delta divided by canvas scale and clamp to Pcg bounds.
在文件 PcgDraggableWindow.cpp 第 30 行定义.
引用了 dx, dy, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Result< T >::success(), x , 以及 y.
◆ getX()
|
inlinenoexcept |
Return current anchored X.
在文件 PcgDraggableWindow.h 第 20 行定义.
◆ getY()
|
inlinenoexcept |
Return current anchored Y.
在文件 PcgDraggableWindow.h 第 21 行定义.
◆ pointerDown()
|
noexcept |
Process pointer-down; middleButtonDown restores the initial position.
在文件 PcgDraggableWindow.cpp 第 42 行定义.
该类的文档由以下文件生成:
- src/modules/ui/PcgDraggableWindow.h
- src/modules/ui/PcgDraggableWindow.cpp