载入中...
搜索中...
未找到
PcgPhotoModeColorPicker.h
浏览该文件的文档.
1#pragma once
2
3#include <cstdint>
4#include <string>
5#include "common/Export.h"
6#include "common/Result.h"
7#include "ui/PcgUiStatus.h"
8namespace ssq { class Table; }
9namespace eve::ui {
12public:
[[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;
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_;
31};
void exposePcgPhotoModeColorPickerBindings(ssq::Table& table);
33}
double value
#define EVENGINE_API_WORLD
Definition Export.h:109
tensor::Graph g
Definition GpuGraph.cpp:7
double r
float v
std::string name
MeleePoint3 b
Definition MeleeHit.cpp:41
MeleePoint3 a
Definition MeleeHit.cpp:40
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Caller-owned runtime model of Pcg PhotoModeColorPicker.
void exposePcgPhotoModeColorPickerBindings(ssq::Table &t)
Register Pcg photo-mode color-picker bindings.
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
EVEngine ECS 集成层:底层实现使用 sunxfancy/ECS.hpp https://github.com/sunxfancy/ECS.hpp
Definition ECS.h:14