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()
|
inlinenoexcept |
Close the picker.
在文件 PcgPhotoModeColorPicker.h 第 16 行定义.
◆ consumeBringToFront()
|
noexcept |
Return and clear the SetAsLastSibling request.
在文件 PcgPhotoModeColorPicker.cpp 第 13 行定义.
◆ getAlpha()
|
inlinenoexcept |
在文件 PcgPhotoModeColorPicker.h 第 22 行定义.
◆ getBlue()
|
inlinenoexcept |
在文件 PcgPhotoModeColorPicker.h 第 22 行定义.
◆ getChangeRevision()
|
inlinenoexcept |
Return change callback revision.
在文件 PcgPhotoModeColorPicker.h 第 28 行定义.
◆ getFocusedName()
|
inlinenoexcept |
Return focused name including parentheses.
在文件 PcgPhotoModeColorPicker.h 第 27 行定义.
◆ getGreen()
|
inlinenoexcept |
在文件 PcgPhotoModeColorPicker.h 第 22 行定义.
◆ getHdrEnabled()
|
inlinenoexcept |
Return whether HDR controls are active.
在文件 PcgPhotoModeColorPicker.h 第 25 行定义.
◆ getHdrSwatch()
|
noexcept |
Return HDR slider grayscale swatch.
在文件 PcgPhotoModeColorPicker.cpp 第 13 行定义.
◆ getOpen()
|
inlinenoexcept |
Return whether picker is open.
在文件 PcgPhotoModeColorPicker.h 第 26 行定义.
◆ getPreviewBlue()
|
noexcept |
在文件 PcgPhotoModeColorPicker.cpp 第 13 行定义.
◆ getPreviewGreen()
|
noexcept |
在文件 PcgPhotoModeColorPicker.cpp 第 13 行定义.
◆ getPreviewRed()
|
noexcept |
Return displayed/applied RGB after optional HDR multiplication.
在文件 PcgPhotoModeColorPicker.cpp 第 13 行定义.
◆ getRed()
|
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()
|
noexcept |
Restore last RGBA and reproduce four slider events plus explicit callback.
在文件 PcgPhotoModeColorPicker.cpp 第 12 行定义.
◆ setBlue()
| Result< void > eve::ui::PcgPhotoModeColorPicker::setBlue | ( | float | v | ) |
◆ setFocusedName()
|
inline |
Set the focused display name, exposed with Pcg parentheses.
在文件 PcgPhotoModeColorPicker.h 第 15 行定义.
◆ 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 行定义.
该类的文档由以下文件生成:
- src/modules/ui/PcgPhotoModeColorPicker.h
- src/modules/ui/PcgPhotoModeColorPicker.cpp