载入中...
搜索中...
未找到
PcgColorPreviewSync.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Export.h"
4#include "common/Result.h"
5namespace ssq { class Table; }
6namespace eve::ui {
9public:
11 [[nodiscard]] Result<void> sync(float red, float green, float blue, float alpha);
float getRed() const noexcept { return red_; } float getGreen() const noexcept { return green_; } float getBlue() const noexcept { return blue_; } float getAlpha() const noexcept { return alpha_; }
16private:
17 float red_ = 1.f, green_ = 1.f, blue_ = 1.f, alpha_ = 1.f;
18};
20void exposePcgColorPreviewSyncBindings(ssq::Table& table);
21}
#define EVENGINE_API_WORLD
Definition Export.h:109
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 highlighted-color snapshot ported from Pcg ColorPreviewSync.
void exposePcgColorPreviewSyncBindings(ssq::Table &table)
Register Pcg color-preview bindings.
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