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

Caller-owned notification state ported from Pcg ScreenshotSavedManager. 更多...

#include <PcgScreenshotSavedNotice.h>

Public 成员函数

Result< void > configure (bool enabled, float showSeconds)
 Configure enable state and visible duration atomically.
 
Result< void > request (const std::string &savedPath)
 Cancel an old notice and schedule a new one for the next end-of-frame.
 
Result< void > endFrame (float unscaledNow)
 Publish a pending notice after rendering this frame.
 
Result< void > tick (float unscaledNow)
 Advance expiration using explicit unscaled time.
 
bool getVisible () const noexcept
 Return whether the saved label is visible.
 
bool getPathVisible () const noexcept
 Return whether the path label is visible.
 
const std::string & getPath () const noexcept
 Return last saved path.
 
bool getPending () const noexcept
 Return whether publication is waiting for end-of-frame.
 

详细描述

Caller-owned notification state ported from Pcg ScreenshotSavedManager.

在文件 PcgScreenshotSavedNotice.h 第 9 行定义.

成员函数说明

◆ configure()

Result< void > eve::ui::PcgScreenshotSavedNotice::configure ( bool  enabled,
float  showSeconds 
)

Configure enable state and visible duration atomically.

在文件 PcgScreenshotSavedNotice.cpp 第 6 行定义.

引用了 enabled, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().

◆ endFrame()

Result< void > eve::ui::PcgScreenshotSavedNotice::endFrame ( float  unscaledNow)

Publish a pending notice after rendering this frame.

在文件 PcgScreenshotSavedNotice.cpp 第 8 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().

◆ getPath()

const std::string & eve::ui::PcgScreenshotSavedNotice::getPath ( ) const
inlinenoexcept

Return last saved path.

在文件 PcgScreenshotSavedNotice.h 第 17 行定义.

◆ getPathVisible()

bool eve::ui::PcgScreenshotSavedNotice::getPathVisible ( ) const
inlinenoexcept

Return whether the path label is visible.

在文件 PcgScreenshotSavedNotice.h 第 16 行定义.

◆ getPending()

bool eve::ui::PcgScreenshotSavedNotice::getPending ( ) const
inlinenoexcept

Return whether publication is waiting for end-of-frame.

在文件 PcgScreenshotSavedNotice.h 第 18 行定义.

◆ getVisible()

bool eve::ui::PcgScreenshotSavedNotice::getVisible ( ) const
inlinenoexcept

Return whether the saved label is visible.

在文件 PcgScreenshotSavedNotice.h 第 15 行定义.

◆ request()

Result< void > eve::ui::PcgScreenshotSavedNotice::request ( const std::string &  savedPath)

Cancel an old notice and schedule a new one for the next end-of-frame.

在文件 PcgScreenshotSavedNotice.cpp 第 7 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, path , 以及 eve::Result< T >::success().

◆ tick()

Result< void > eve::ui::PcgScreenshotSavedNotice::tick ( float  unscaledNow)

Advance expiration using explicit unscaled time.

在文件 PcgScreenshotSavedNotice.cpp 第 9 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().


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