载入中...
搜索中...
未找到
PcgPhotoModeColorPicker.h
浏览该文件的文档.
[[nodiscard]] Result<void> open(float r,float g,float b,float a,bool hdr); [[nodiscard]] Result<void> setLast(float r,float g,float b,float a); void setFocusedName(const std::string& name){focusedName_="("+name+")";} void close()noexcept{open_=false;} [[nodiscard]] Result<void> setRed(float v); [[nodiscard]] Result<void> setGreen(float v); [[nodiscard]] Result<void> setBlue(float v); [[nodiscard]] Result<void> setHdr(float v); void reset()noexcept; float getRed()const noexcept{return r_;} float getGreen()const noexcept{return g_;} float getBlue()const noexcept{return b_;} float getAlpha()const noexcept{return a_;} float getPreviewRed()const noexcept; float getPreviewGreen()const noexcept; float getPreviewBlue()const noexcept; float getHdrSwatch()const noexcept; bool getHdrEnabled()const noexcept{return hdr_;} bool getOpen()const noexcept{return open_;} const std::string& getFocusedName()const noexcept{return focusedName_;} uint64_t getChangeRevision()const noexcept{return revision_;} PcgUiRequestStatus consumeBringToFront()noexcept;
void exposePcgPhotoModeColorPickerBindings(ssq::Table& table);
30private:bool hdrActive()const noexcept;Result<void> setChannel(float& dst,float value);float r_=0,g_=0,b_=0,a_=1,lastR_=0,lastG_=0,lastB_=0,lastA_=1;bool hdr_=false,open_=false,front_=false;uint64_t revision_=0;std::string focusedName_;
Move-only, checked operation results for the common layer.
Caller-owned runtime model of Pcg PhotoModeColorPicker.
Definition PcgPhotoModeColorPicker.h:11
Definition Component.cpp:5
void exposePcgPhotoModeColorPickerBindings(ssq::Table &t)
Register Pcg photo-mode color-picker bindings.
Definition PcgPhotoModeColorPicker.cpp:14
PcgUiRequestStatus
Explicit status returned when consuming a one-shot Pcg UI request.
Definition PcgUiStatus.h:4
enum EVENGINE_API_FOUNDATION Table
OT_TABLE (editable via Runtime table APIs / ReflectedPropertyModel).
Definition Runtime.h:121