载入中...
搜索中...
未找到
UiMotionSinks.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
18#include "ui/UIHost.h"
19
20#include <string>
21
22namespace eve::ui {
23
29public:
31 explicit UiHostPosSink(UIHostHandle host) : host_(host) {}
32
34 [[nodiscard]] eve::Result<void> write(eve::animation::MotionVec2 value) override;
35
36private:
37 UIHostHandle host_{};
38};
39
45public:
47 explicit UiHostSizeSink(UIHostHandle host) : host_(host) {}
48
50 [[nodiscard]] eve::Result<void> write(eve::animation::MotionVec2 value) override;
51
52private:
53 UIHostHandle host_{};
54};
55
61public:
64
66 [[nodiscard]] eve::Result<void> write(float value) override;
67
68private:
69 UIHostHandle host_{};
70};
71
77public:
81 : host_(host), nodeId_(std::move(nodeId)) {}
82
84 [[nodiscard]] eve::Result<void> write(float value) override;
85
86private:
87 UIHostHandle host_{};
88 std::string nodeId_;
89};
90
97public:
101 : host_(host), nodeId_(std::move(nodeId)) {}
102
104 [[nodiscard]] eve::Result<void> write(eve::animation::MotionVec2 value) override;
105
106private:
107 UIHostHandle host_{};
108 std::string nodeId_;
109};
110
111} // namespace eve::ui
double value
std::string nodeId
#define EVENGINE_API_WORLD
Definition Export.h:109
LitMotion-style typed motion handles, values, and sink interfaces.
UIHostHandle host
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Push target for a float motion. Lifetime is borrowed by MotionRuntime.
Definition MotionTypes.h:84
Push target for a MotionVec2 motion.
Definition MotionTypes.h:96
Pushes float samples into a host overlay background alpha. @ownership Does not own the host; resolves...
UiHostOverlayAlphaSink(UIHostHandle host)
Ui host overlay alpha sink.
Pushes MotionVec2 samples into a host window position (Meta.posX/Y). @ownership Does not own the host...
UiHostPosSink(UIHostHandle host)
Ui host pos sink.
Pushes MotionVec2 samples into a host explicit size (Meta.sizeX/Y). @ownership Does not own the host;...
UiHostSizeSink(UIHostHandle host)
Ui host size sink.
Pushes float samples into a retained node's transient opacity. @ownership Does not own the host/node;...
UiNodeOpacitySink(UIHostHandle host, std::string nodeId)
Ui node opacity sink.
Pushes MotionVec2 samples into a node's absolute placement offset. @ownership Does not own the host/n...
UiNodePosSink(UIHostHandle host, std::string nodeId)
Ui node pos sink.
ecs::EntityHandle UIHostHandle
Definition UIHost.h:16
Compact float2 used by motion adapters (avoids graphics math deps).
Definition MotionTypes.h:39