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

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.

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

◆ consumeBringToFront()

PcgUiRequestStatus eve::ui::PcgDraggableWindow::consumeBringToFront ( )
noexcept

Consume the request to move the window to the front.

在文件 PcgDraggableWindow.cpp 第 50 行定义.

引用了 eve::ui::None, eve::ui::Requested , 以及 value.

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

◆ 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.

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

◆ getX()

float eve::ui::PcgDraggableWindow::getX ( ) const
inlinenoexcept

Return current anchored X.

在文件 PcgDraggableWindow.h 第 20 行定义.

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

◆ getY()

float eve::ui::PcgDraggableWindow::getY ( ) const
inlinenoexcept

Return current anchored Y.

在文件 PcgDraggableWindow.h 第 21 行定义.

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

◆ pointerDown()

void eve::ui::PcgDraggableWindow::pointerDown ( bool  middleButtonDown)
noexcept

Process pointer-down; middleButtonDown restores the initial position.

在文件 PcgDraggableWindow.cpp 第 42 行定义.

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


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