/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | shadow.h | 58 Shadow(float elevation, Offset offset, Color spotColor, ShadowStyle style) in Shadow() argument 61 SetElevation(elevation); in Shadow() 148 void SetElevation(float elevation) in SetElevation() argument 150 if (elevation >= 0.0f && elevation < LIGHT_HEIGHT) { in SetElevation() 151 elevation_ = elevation; in SetElevation() 248 float elevation_ = 0.0f; // Rosen always needs a non-zero elevation.
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_shadow.cpp | 46 void RSShadow::SetElevation(float elevation) in SetElevation() argument 48 elevation_ = elevation; in SetElevation()
|
/foundation/arkui/ace_engine/frameworks/core/components/theme/ |
H A D | shadow_theme.cpp | 75 auto elevation = themeStyle->GetAttr<double>(elevationName, 0.0); in ParseShadowParam() local 90 return Shadow(static_cast<float>(elevation), offset, color, shadowStyle); in ParseShadowParam()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/ |
H A D | rs_shadow.h | 51 void SetElevation(float elevation);
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsshadow_fuzzer/ |
H A D | rsshadow_fuzzer.cpp | 131 float elevation = GetData<float>();
in DoSetElevation() local 132 rsShadow->SetElevation(elevation);
in DoSetElevation()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsrenderimage_fuzzer/ |
H A D | rsrenderimage_fuzzer.cpp | 335 float elevation = GetData<float>(); in RSShadowFuzzTest() local 344 shadow.SetElevation(elevation); in RSShadowFuzzTest()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/drawable/ |
H A D | rs_property_drawable_utils.h | 65 const float& elevation, const bool& isFilled, Color spotColor);
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/ |
H A D | rs_properties_painter.cpp | 266 float elevation = properties.GetShadowElevation() + DEFAULT_TRANSLATION_Z; in GetShadowDirtyRect() local 269 (elevation != DEFAULT_LIGHT_HEIGHT) ? elevation / (DEFAULT_LIGHT_HEIGHT - elevation) : MAX_TRANS_RATIO; in GetShadowDirtyRect() 272 float userSpotRatio = (elevation != DEFAULT_LIGHT_HEIGHT) in GetShadowDirtyRect() 273 ? DEFAULT_LIGHT_HEIGHT / (DEFAULT_LIGHT_HEIGHT - elevation) in GetShadowDirtyRect() 284 float ambientBlur = std::min(elevation * 0.5f, MAX_AMBIENT_RADIUS); in GetShadowDirtyRect()
|
H A D | rs_properties.cpp | 1937 void RSProperties::SetShadowElevation(float elevation) in SetShadowElevation() argument 1942 shadow_->SetElevation(elevation); in SetShadowElevation() 4313 float elevation = GetShadowElevation(); in UpdateForegroundFilter() local 4314 Drawing::scalar n1 = 0.25f * elevation * (1 + elevation / 128.0f); // 0.25f 128.0f in UpdateForegroundFilter() 4315 Drawing::scalar blurRadius = elevation > 0.0f ? n1 : GetShadowRadius(); in UpdateForegroundFilter()
|
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/ |
H A D | render_node.cpp | 1536 auto elevation = shadow_.GetElevation(); in GetRectWithShadow() local 1537 if (elevation > 0.0f && elevation < shadow_.GetLightHeight()) { in GetRectWithShadow() 1538 // Conversion between blurRadius and elevation. in GetRectWithShadow() 1539 blurRadius = elevation / (shadow_.GetLightHeight() - elevation) * shadow_.GetLightRadius(); in GetRectWithShadow()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_render_node_bridge.cpp | 412 Local<JSValueRef> elevation = runtimeCallInfo->GetCallArgRef(1); in SetShadowElevation() local 414 if (elevation->IsNumber()) { in SetShadowElevation() 415 elevationValue = elevation->ToNumber(vm)->Value(); in SetShadowElevation()
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | render_node_modifier.cpp | 154 void SetShadowElevation(ArkUINodeHandle node, ArkUI_Float32 elevation) in SetShadowElevation() argument 159 renderContext->SetShadowElevation(elevation); in SetShadowElevation()
|
/foundation/window/window_manager/wmserver/src/ |
H A D | window_manager_service.cpp | 609 WindowManagerConfig::ConfigItem item = shadowConfig["elevation"]; in ConfigAppWindowShadow() 611 auto elevation = *item.floatsValue_; in ConfigAppWindowShadow() local 612 if (elevation.size() != 1 || MathHelper::LessNotEqual(elevation[0], 0.0)) { in ConfigAppWindowShadow() 615 outShadow.elevation_ = elevation[0]; in ConfigAppWindowShadow()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/property/ |
H A D | rs_properties_test.cpp | 224 float elevation = 0.1f; in HWTEST_F() local 225 properties.SetShadowElevation(elevation); in HWTEST_F() 226 elevation = 1.0f; in HWTEST_F() 227 properties.SetShadowElevation(elevation); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/ |
H A D | rs_property_drawable_utils.cpp | 924 const float& offsetY, const float& elevation, const bool& isFilled, Color spotColor) in DrawShadow() 929 elevation, offsetX, offsetY, path.GetBounds().ToString().c_str()); in DrawShadow() 938 Drawing::Point3 planeParams = {0.0f, 0.0f, elevation}; in DrawShadow() 923 DrawShadow(Drawing::Canvas* canvas, Drawing::Path& path, const float& offsetX, const float& offsetY, const float& elevation, const bool& isFilled, Color spotColor) DrawShadow() argument
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/ |
H A D | rs_node.h | 327 void SetShadowElevation(float elevation);
|
H A D | rs_node.cpp | 1735 void RSNode::SetShadowElevation(float elevation) in SetShadowElevation() argument 1738 SetProperty<RSShadowElevationModifier, RSAnimatableProperty<float>>(RSModifierType::SHADOW_ELEVATION, elevation); in SetShadowElevation()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | render_context.h | 330 virtual void SetShadowElevation(float elevation) {} in SetShadowElevation() argument
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | jsXNode.js | 1926 set shadowElevation(elevation) { 1927 this.shadowElevationValue = this.checkUndefinedOrNullWithDefaultValue(elevation, 0);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | rosen_render_context.h | 397 void SetShadowElevation(float elevation) override;
|
H A D | rosen_render_context.cpp | 6205 void RosenRenderContext::SetShadowElevation(float elevation) argument 6208 rsNode_->SetShadowElevation(elevation);
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/cjui/ |
H A D | cjui_api.h | 2957 void (*setShadowElevation)(ArkUINodeHandle node, ArkUI_Float32 elevation);
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/arkoala/ |
H A D | arkoala_api.h | 4751 void (*setShadowElevation)(ArkUINodeHandle node, ArkUI_Float32 elevation);
|