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

Caller-owned runtime model of Pcg PhotoModeColorPicker. 更多...

#include <PcgPhotoModeColorPicker.h>

Public 成员函数

Result< void > open (float r, float g, float b, float a, bool hdr)
 Open with a source color and preserve Pcg's HDR preprocessing.
 
Result< void > setLast (float r, float g, float b, float a)
 Store the color restored by reset.
 
void setFocusedName (const std::string &name)
 Set the focused display name, exposed with Pcg parentheses.
 
void close () noexcept
 Close the picker.
 
Result< void > setRed (float v)
 Set one raw channel and publish one change.
 
Result< void > setGreen (float v)
 Set one raw channel and publish one change.
 
Result< void > setBlue (float v)
 Set one raw channel and publish one change.
 
Result< void > setHdr (float v)
 Set HDR alpha and publish one change.
 
void reset () noexcept
 Restore last RGBA and reproduce four slider events plus explicit callback.
 
float getRed () const noexcept
 Return raw channel.
 
float getGreen () const noexcept
 
float getBlue () const noexcept
 
float getAlpha () const noexcept
 
float getPreviewRed () const noexcept
 Return displayed/applied RGB after optional HDR multiplication.
 
float getPreviewGreen () const noexcept
 
float getPreviewBlue () const noexcept
 
float getHdrSwatch () const noexcept
 Return HDR slider grayscale swatch.
 
bool getHdrEnabled () const noexcept
 Return whether HDR controls are active.
 
bool getOpen () const noexcept
 Return whether picker is open.
 
const std::string & getFocusedName () const noexcept
 Return focused name including parentheses.
 
uint64_t getChangeRevision () const noexcept
 Return change callback revision.
 
PcgUiRequestStatus consumeBringToFront () noexcept
 Return and clear the SetAsLastSibling request.
 

详细描述

Caller-owned runtime model of Pcg PhotoModeColorPicker.

在文件 PcgPhotoModeColorPicker.h 第 11 行定义.

成员函数说明

◆ close()

void eve::ui::PcgPhotoModeColorPicker::close ( )
inlinenoexcept

Close the picker.

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

◆ consumeBringToFront()

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

Return and clear the SetAsLastSibling request.

在文件 PcgPhotoModeColorPicker.cpp 第 13 行定义.

◆ getAlpha()

float eve::ui::PcgPhotoModeColorPicker::getAlpha ( ) const
inlinenoexcept

在文件 PcgPhotoModeColorPicker.h 第 22 行定义.

◆ getBlue()

float eve::ui::PcgPhotoModeColorPicker::getBlue ( ) const
inlinenoexcept

在文件 PcgPhotoModeColorPicker.h 第 22 行定义.

◆ getChangeRevision()

uint64_t eve::ui::PcgPhotoModeColorPicker::getChangeRevision ( ) const
inlinenoexcept

Return change callback revision.

在文件 PcgPhotoModeColorPicker.h 第 28 行定义.

◆ getFocusedName()

const std::string & eve::ui::PcgPhotoModeColorPicker::getFocusedName ( ) const
inlinenoexcept

Return focused name including parentheses.

在文件 PcgPhotoModeColorPicker.h 第 27 行定义.

◆ getGreen()

float eve::ui::PcgPhotoModeColorPicker::getGreen ( ) const
inlinenoexcept

在文件 PcgPhotoModeColorPicker.h 第 22 行定义.

◆ getHdrEnabled()

bool eve::ui::PcgPhotoModeColorPicker::getHdrEnabled ( ) const
inlinenoexcept

Return whether HDR controls are active.

在文件 PcgPhotoModeColorPicker.h 第 25 行定义.

◆ getHdrSwatch()

float eve::ui::PcgPhotoModeColorPicker::getHdrSwatch ( ) const
noexcept

Return HDR slider grayscale swatch.

在文件 PcgPhotoModeColorPicker.cpp 第 13 行定义.

◆ getOpen()

bool eve::ui::PcgPhotoModeColorPicker::getOpen ( ) const
inlinenoexcept

Return whether picker is open.

在文件 PcgPhotoModeColorPicker.h 第 26 行定义.

◆ getPreviewBlue()

float eve::ui::PcgPhotoModeColorPicker::getPreviewBlue ( ) const
noexcept

在文件 PcgPhotoModeColorPicker.cpp 第 13 行定义.

◆ getPreviewGreen()

float eve::ui::PcgPhotoModeColorPicker::getPreviewGreen ( ) const
noexcept

在文件 PcgPhotoModeColorPicker.cpp 第 13 行定义.

◆ getPreviewRed()

float eve::ui::PcgPhotoModeColorPicker::getPreviewRed ( ) const
noexcept

Return displayed/applied RGB after optional HDR multiplication.

在文件 PcgPhotoModeColorPicker.cpp 第 13 行定义.

◆ getRed()

float eve::ui::PcgPhotoModeColorPicker::getRed ( ) const
inlinenoexcept

Return raw channel.

在文件 PcgPhotoModeColorPicker.h 第 22 行定义.

◆ open()

Result< void > eve::ui::PcgPhotoModeColorPicker::open ( float  r,
float  g,
float  b,
float  a,
bool  hdr 
)

Open with a source color and preserve Pcg's HDR preprocessing.

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

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

◆ reset()

void eve::ui::PcgPhotoModeColorPicker::reset ( )
noexcept

Restore last RGBA and reproduce four slider events plus explicit callback.

在文件 PcgPhotoModeColorPicker.cpp 第 12 行定义.

◆ setBlue()

Result< void > eve::ui::PcgPhotoModeColorPicker::setBlue ( float  v)

Set one raw channel and publish one change.

在文件 PcgPhotoModeColorPicker.cpp 第 11 行定义.

引用了 v.

◆ setFocusedName()

void eve::ui::PcgPhotoModeColorPicker::setFocusedName ( const std::string &  name)
inline

Set the focused display name, exposed with Pcg parentheses.

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

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

◆ setGreen()

Result< void > eve::ui::PcgPhotoModeColorPicker::setGreen ( float  v)

Set one raw channel and publish one change.

在文件 PcgPhotoModeColorPicker.cpp 第 11 行定义.

◆ setHdr()

Result< void > eve::ui::PcgPhotoModeColorPicker::setHdr ( float  v)

Set HDR alpha and publish one change.

在文件 PcgPhotoModeColorPicker.cpp 第 11 行定义.

◆ setLast()

Result< void > eve::ui::PcgPhotoModeColorPicker::setLast ( float  r,
float  g,
float  b,
float  a 
)

Store the color restored by reset.

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

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

◆ setRed()

Result< void > eve::ui::PcgPhotoModeColorPicker::setRed ( float  v)

Set one raw channel and publish one change.

在文件 PcgPhotoModeColorPicker.cpp 第 11 行定义.


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