Home
last modified time | relevance | path

Searched refs:fromValue (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Dbind_templates.inl234 if (toValue[slot] != fromValue) {
235 toValue[slot] = fromValue;
255 float fromValue = from->GetValue(); variable
259 if (toValue.x != fromValue) {
260 toValue.x = fromValue;
263 if (toValue.y != fromValue) {
264 toValue.y = fromValue;
267 if (toValue.z != fromValue) {
268 toValue.z = fromValue;
271 if (toValue.w != fromValue) {
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/
H A Dslider_model.h56 SliderValidRange(float from, float to) : fromValue(from), toValue(to) {} in SliderValidRange()
60 return fromValue; in GetFromValue()
68 return std::isfinite(fromValue) && std::isfinite(toValue); in HasValidValues()
72 float fromValue = std::numeric_limits<float>::quiet_NaN();
107 virtual void SetValidSlideRange(float fromValue, float toValue) {}; in SetValidSlideRange() argument
H A Dslider_model_ng.cpp567 float fromValue = minValue; in SetValidSlideRange() local
570 fromValue = from; in SetValidSlideRange()
575 …if (GreatOrEqual(fromValue, minValue) && LessOrEqual(toValue, maxValue) && LessOrEqual(fromValue, … in SetValidSlideRange()
578fromValue = LessOrEqual(fromValue, minValue) ? minValue : std::floor(fromValue / step) * step; in SetValidSlideRange()
581 auto sliderValue = std::clamp(paintProperty->GetValueValue(fromValue), fromValue, toValue); in SetValidSlideRange()
583 AceType::MakeRefPtr<SliderModel::SliderValidRange>(fromValue, toValue); in SetValidSlideRange()
H A Dslider_model_ng.h64 void SetValidSlideRange(float fromValue, float toValue) override;
99 static void SetValidSlideRange(FrameNode* frameNode, float fromValue, float toValue);
H A Dslider_pattern.cpp992 auto fromValue = range->GetFromValue(); in GetValueInValidRange() local
999 fromValue = LessOrEqual(fromValue, min) ? min : std::floor(fromValue / step) * step; in GetValueInValidRange()
1001 …return LessNotEqual(value, fromValue) ? fromValue : GreatNotEqual(value, toValue) ? toValue : valu… in GetValueInValidRange()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/
H A Drs_particle_params.h46 Change(T fromValue, T toValue, int startMillis, int endMillis, RSAnimationTimingCurve& curve) in Change() argument
48 fromValue_ = fromValue; in Change()
174 float fromValue = val.valChangeOverLife_[i].fromValue_; in translateValToRender() local
183 fromValue, toValue, startMillis, endMillis, std::move(interpolator))); in translateValToRender()
205 auto fromValue = val.valChangeOverLife_[i].fromValue_; in translateColorToRender() local
214 fromValue, toValue, startMillis, endMillis, std::move(interpolator))); in translateColorToRender()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/
H A Drs_render_particle_effector_test.cpp97 float fromValue = 0.1f; in SetOpacity() local
102 …auto change1 = std::make_shared<ChangeInOverLife<float>>(fromValue, toValue, startMillis, endMilli… in SetOpacity()
104 …std::make_shared<ChangeInOverLife<float>>(toValue, fromValue, endMillis + 4000, endMillis + 7000, … in SetOpacity()
217 float fromValue = 0.1f; variable
223 …auto change1 = std::make_shared<ChangeInOverLife<float>>(fromValue, toValue, startMillis, endMilli…
225 …std::make_shared<ChangeInOverLife<float>>(toValue, fromValue, endMillis + 4000, endMillis + 7000, …
381 float fromValue = 0.1f; variable
386 …auto change1 = std::make_shared<ChangeInOverLife<float>>(fromValue, toValue, startMillis, endMilli…
388 …std::make_shared<ChangeInOverLife<float>>(toValue, fromValue, endMillis + 4000, endMillis + 7000, …
H A Drs_render_particle_emitter_test.cpp92 float fromValue = 0.1f; in SetOpacity() local
97 …auto change1 = std::make_shared<ChangeInOverLife<float>>(fromValue, toValue, startMillis, endMilli… in SetOpacity()
99 …std::make_shared<ChangeInOverLife<float>>(toValue, fromValue, endMillis + 4000, endMillis + 7000, … in SetOpacity()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/
H A Drs_render_particle.h63 …ChangeInOverLife(const T& fromValue, const T& toValue, const int& startMillis, const int& endMilli… in ChangeInOverLife() argument
65 … : fromValue_(fromValue), toValue_(toValue), startMillis_(startMillis), endMillis_(endMillis), in ChangeInOverLife()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/
H A Drs_marshalling_helper.cpp1096 float fromValue = 0.f; in Unmarshalling() local
1100 success = success && Unmarshalling(parcel, fromValue); in Unmarshalling()
1106 fromValue, toValue, startMillis, endMillis, interpolator); in Unmarshalling()
1175 Color fromValue = RSColor(0, 0, 0); in Unmarshalling() local
1179 … success = success && Unmarshalling(parcel, fromValue) && Unmarshalling(parcel, toValue) && in Unmarshalling()
1183 fromValue, toValue, startMillis, endMillis, std::move(interpolator)); in Unmarshalling()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_common_bridge.cpp3711 float fromValue = (fromArg->IsNumber()) ? fromArg->ToNumber(vm)->Value() : 0.0f; in SetMotionPath() local
3713 if (fromValue > 1.0f || fromValue < 0.0f) { in SetMotionPath()
3714 fromValue = 0.0f; in SetMotionPath()
3718 } else if (toValue < fromValue) { in SetMotionPath()
3719 toValue = fromValue; in SetMotionPath()
3722 …NodeModifiers()->getCommonModifier()->setMotionPath(nativeNode, pathStringValue.c_str(), fromValue, in SetMotionPath()