载入中...
搜索中...
未找到
ParentScaler.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
5#include "common/Result.h"
6
7namespace ssq {
8class Table;
9}
10
11namespace eve::ui {
12
15 bool scaleWithCanvas = true;
16 bool partScreen = false;
17 float maxHeight = 500.f;
18};
19
22 bool hasCanvas = false;
23 int targetCount = 0;
24 float canvasHeight = 0.f;
25};
26
29 float lastScaleHeight = 0.f;
30};
31
34 bool applyHeight = false;
35 float height = 0.f;
36};
37
51
53void exposeParentScalerBindings(ssq::Table& table);
54}
std::string output
EvpackChunkInput input
Definition Evpack.cpp:170
#define EVENGINE_API_WORLD
Definition Export.h:109
Move-only, checked operation results for the common layer.
TerrainThermalSettings settings
Move-only operation result carrying either a value or Status.
Definition Result.h:155
void exposeParentScalerBindings(ssq::Table &table)
Register ParentScaler value types and evaluator with the root script table.
Result< void > evaluateParentScaler(ParentScalerState *state, ParentScalerOutput *output, const ParentScalerSettings *settings, const ParentScalerInput *input)
Evaluate Pcg ParentScaler when canvas height changes.
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
Current canvas and target-list observation.
Height write emitted for every valid target rect.
Configuration for Pcg ParentScaler canvas-height behavior.
Caller-owned change detector retained across evaluations.