/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | edge.cpp | 21 double GetValueInPx(const Dimension& value, double dipScale) in GetValueInPx() argument 24 return value.Value() * dipScale; in GetValueInPx() 81 Size Edge::GetLayoutSizeInPx(double dipScale) const in GetLayoutSizeInPx() 83 double width = GetValueInPx(left_, dipScale) + GetValueInPx(right_, dipScale); in GetLayoutSizeInPx() 84 double height = GetValueInPx(top_, dipScale) + GetValueInPx(bottom_, dipScale); in GetLayoutSizeInPx() 88 Offset Edge::GetOffsetInPx(double dipScale) const in GetOffsetInPx() 90 return Offset(GetValueInPx(left_, dipScale), GetValueInPx(top_, dipScale)); in GetOffsetInPx() [all...] |
H A D | border.cpp | 46 Offset Border::GetOffset(double dipScale) const in GetOffset() 48 return Offset(left_.GetWidthInPx(dipScale), top_.GetWidthInPx(dipScale)); in GetOffset() 51 double Border::HorizontalWidth(double dipScale) const in HorizontalWidth() 53 return left_.GetWidthInPx(dipScale) + right_.GetWidthInPx(dipScale); in HorizontalWidth() 56 double Border::VerticalWidth(double dipScale) const in VerticalWidth() 58 return top_.GetWidthInPx(dipScale) + bottom_.GetWidthInPx(dipScale); in VerticalWidth() 61 Size Border::GetLayoutSize(double dipScale) cons [all...] |
H A D | decoration.cpp | 38 Size Decoration::GetOccupiedSize(double dipScale) const in GetOccupiedSize() 40 return border_.GetLayoutSize(dipScale) + padding_.GetLayoutSizeInPx(dipScale); in GetOccupiedSize() 43 Offset Decoration::GetOffset(double dipScale) const in GetOffset() 45 return border_.GetOffset(dipScale) + padding_.GetOffsetInPx(dipScale); in GetOffset() 48 double Decoration::VerticalSpaceOccupied(double dipScale) const in VerticalSpaceOccupied() 50 return border_.VerticalWidth(dipScale) + padding_.VerticalInPx(dipScale); in VerticalSpaceOccupied() 53 double Decoration::HorizontalSpaceOccupied(double dipScale) cons [all...] |
H A D | border_edge.h | 52 double GetWidthInPx(double dipScale) const in GetWidthInPx() 54 return width_.ConvertToPx(dipScale); in GetWidthInPx()
|
H A D | border.h | 52 Offset GetOffset(double dipScale) const; 53 double HorizontalWidth(double dipScale) const; 54 double VerticalWidth(double dipScale) const; 55 Size GetLayoutSize(double dipScale) const;
|
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_universal_painter.cpp | 41 SkCanvas* canvas, const RRect& paintRRect, uint32_t backgroundColor, double dipScale) in DrawRRectBackground() 44 RSCanvas* canvas, const RRect& paintRRect, uint32_t backgroundColor, double dipScale) in DrawRRectBackground() 63 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.topLeftRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground() 64 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.topLeftRadius.GetY(), dipScale), 0.0))); in DrawRRectBackground() 66 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.topRightRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground() 67 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.topRightRadius.GetY(), dipScale), 0.0))); in DrawRRectBackground() 70 std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomRightRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground() 72 std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomRightRadius.GetY(), dipScale), 0.0))); in DrawRRectBackground() 74 SkDoubleToScalar(std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomLeftRadius.GetX(), dipScale), 0.0)), in DrawRRectBackground() 76 std::max(RosenUniversalPainter::NormalizeToPx(corner.bottomLeftRadius.GetY(), dipScale), 0. in DrawRRectBackground() 40 DrawRRectBackground( SkCanvas* canvas, const RRect& paintRRect, uint32_t backgroundColor, double dipScale) DrawRRectBackground() argument [all...] |
H A D | rosen_universal_painter.h | 37 SkCanvas* canvas, const RRect& paintRRect, uint32_t backgroundColor, double dipScale); 43 RSCanvas* canvas, const RRect& paintRRect, uint32_t backgroundColor, double dipScale);
|
H A D | rosen_decoration_painter.h | 62 const RefPtr<Decoration>& decoration, const Rect& paintRect, const Size& paintSize, double dipScale); 93 SkCanvas* canvas, const sk_sp<SkImage>& image, double dipScale); 117 RSCanvas* canvas, const std::shared_ptr<RSImage>& image, double dipScale); 126 static void PaintBorder(std::shared_ptr<RSNode>& rsNode, Border& border, double dipScale); 177 static sk_sp<SkShader> CreateGradientShader(const Gradient& gradient, const SkSize& size, double dipScale); 180 const RSSize& size, double dipScale);
|
H A D | border_image_painter.h | 52 static sk_sp<SkShader> CreateGradientShader(const Gradient& gradient, const SkSize& size, double dipScale); 56 const RSSize& size, double dipScale);
|
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/ |
H A D | screen_system_manager.cpp | 47 auto dipScale = context->GetDipScale(); in GetSize() local 48 if (width < MAX_SCREEN_WIDTH_SM.Value() * dipScale) { in GetSize() 50 } else if (width < MAX_SCREEN_WIDTH_MD.Value() * dipScale) { in GetSize() 52 } else if (width < MAX_SCREEN_WIDTH_LG.Value() * dipScale) { in GetSize() 54 } else if (width < MAX_SCREEN_WIDTH_XL.Value() * dipScale) { in GetSize()
|
H A D | screen_system_manager.h | 56 void SetWindowInfo(double screenWidth, double density, double dipScale)
in SetWindowInfo() argument 60 dipScale_ = dipScale;
in SetWindowInfo() 61 viewScale_ = density / dipScale;
in SetWindowInfo() 64 void SetWindowInfo(double density, double dipScale)
in SetWindowInfo() argument 67 dipScale_ = dipScale;
in SetWindowInfo() 68 viewScale_ = density / dipScale;
in SetWindowInfo()
|
H A D | grid_container_info.cpp | 57 double dipScale = GridSystemManager::GetInstance().GetDipScale(); in BuildColumnWidth() local 63 double gutterWidth = GetValue(gutterWidth_, systemGridInfo.gutter, UNDEFINED_DIMENSION).ConvertToPx(dipScale); in BuildColumnWidth() 64 double marginLeft = GetValue(marginLeft_, systemGridInfo.margin, UNDEFINED_DIMENSION).ConvertToPx(dipScale); in BuildColumnWidth() 65 double marginRight = GetValue(marginRight_, systemGridInfo.margin, UNDEFINED_DIMENSION).ConvertToPx(dipScale); in BuildColumnWidth() 66 double padding = GetValue(paddingLeft_, Dimension(), UNDEFINED_DIMENSION).ConvertToPx(dipScale) + in BuildColumnWidth() 67 GetValue(paddingRight_, Dimension(), UNDEFINED_DIMENSION).ConvertToPx(dipScale); in BuildColumnWidth()
|
H A D | grid_column_info.cpp | 49 double dipScale = GridSystemManager::GetInstance().GetDipScale(); in GetWidth() local 52 ((columns - 1) * parent_->GetGutterWidth().ConvertToPx(dipScale)); in GetWidth() 99 double dipScale = GridSystemManager::GetInstance().GetDipScale(); in GetOffset() local 100 double offsetVp = offset * (parent_->GetColumnWidth() + parent_->GetGutterWidth().ConvertToPx(dipScale)); in GetOffset()
|
/foundation/arkui/ace_engine/frameworks/core/components/clip/ |
H A D | rosen_render_clip.cpp | 56 double dipScale = context->GetDipScale(); in SyncGeometryProperties() local 58 topLeftRadius_.GetX().ConvertToPx(dipScale), in SyncGeometryProperties() 59 topRightRadius_.GetX().ConvertToPx(dipScale), in SyncGeometryProperties() 60 bottomRightRadius_.GetX().ConvertToPx(dipScale), in SyncGeometryProperties() 61 bottomLeftRadius_.GetX().ConvertToPx(dipScale) in SyncGeometryProperties()
|
/foundation/arkui/ace_engine/frameworks/core/components/positioned/ |
H A D | rosen_render_positioned.cpp | 28 auto dipScale = context->GetDipScale(); in Update() local 30 rsNode->SetFramePositionX(left_.ConvertToPx(dipScale)); in Update() 33 rsNode->SetFramePositionY(top_.ConvertToPx(dipScale)); in Update()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_filter.cpp | 46 std::shared_ptr<RSFilter> RSFilter::CreateMaterialFilter(int style, float dipScale, BLUR_COLOR_MODE mode, float ratio) in CreateMaterialFilter() argument 48 return std::make_shared<RSMaterialFilter>(style, dipScale, mode, ratio); in CreateMaterialFilter() 63 float RSFilter::RadiusVp2Sigma(float radiusVp, float dipScale) in RadiusVp2Sigma() argument 65 float radiusPx = radiusVp * dipScale; in RadiusVp2Sigma()
|
H A D | rs_material_filter.cpp | 81 RSMaterialFilter::RSMaterialFilter(int style, float dipScale, BLUR_COLOR_MODE mode, float ratio)
in RSMaterialFilter() argument 84 imageFilter_ = RSMaterialFilter::CreateMaterialStyle(static_cast<MATERIAL_BLUR_STYLE>(style), dipScale, ratio);
in RSMaterialFilter() 118 float RSMaterialFilter::RadiusVp2Sigma(float radiusVp, float dipScale)
in RadiusVp2Sigma() argument 120 float radiusPx = radiusVp * dipScale;
in RadiusVp2Sigma() 190 MATERIAL_BLUR_STYLE style, float dipScale, float ratio)
in CreateMaterialStyle() 197 radius_ = RSMaterialFilter::RadiusVp2Sigma(materialParam.radius, dipScale) * ratio;
in CreateMaterialStyle() 189 CreateMaterialStyle( MATERIAL_BLUR_STYLE style, float dipScale, float ratio) CreateMaterialStyle() argument
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_material_filter_test.cpp | 48 float dipScale = 1.0; in HWTEST_F() local 52 RSMaterialFilter rsMaterialFilter(style, dipScale, mode, ratio); in HWTEST_F() 56 auto rsMaterialFilter2 = RSMaterialFilter(style, dipScale, mode, ratio); in HWTEST_F() 67 float dipScale = 1.0f; in HWTEST_F() local 72 RSMaterialFilter rsMaterialFilter = RSMaterialFilter(style, dipScale, mode, ratio); in HWTEST_F() 78 auto rsMaterialFilter2 = std::make_shared<RSMaterialFilter>(style, dipScale, mode, ratio); in HWTEST_F() 197 float dipScale = 1.0f; in HWTEST_F() local 201 RSMaterialFilter rsMaterialFilter = RSMaterialFilter(style, dipScale, mode, ratio); in HWTEST_F() 345 float dipScale = 1.0f; in HWTEST_F() local 349 RSMaterialFilter rsMaterialFilter = RSMaterialFilter(style, dipScale, mod in HWTEST_F() 409 float dipScale = 1.0f; HWTEST_F() local [all...] |
H A D | rs_filter_test.cpp | 49 float dipScale = 1.0f;
in HWTEST_F() local 51 auto filter2 = RSFilter::CreateMaterialFilter(0, dipScale, BLUR_COLOR_MODE::DEFAULT, ratio);
in HWTEST_F() 82 float dipScale = 1.0f;
in HWTEST_F() local 84 auto filter = RSFilter::CreateMaterialFilter(0, dipScale, BLUR_COLOR_MODE::DEFAULT, ratio);
in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/ |
H A D | rosen_render_text_overlay.cpp | 399 double dipScale = 1.0; in PaintMore() local 401 dipScale = pipelineContext->GetDipScale(); in PaintMore() 405 Offset center = (DOT1_POSITION + DOT4_POSITION) * dipScale * HALF; in PaintMore() 416 Offset topLeft = (DOT1_POSITION + dot1StartOffset_) * dipScale; in PaintMore() 417 Offset topRight = (DOT2_POSITION + dot2StartOffset_) * dipScale; in PaintMore() 418 Offset bottomLeft = (DOT3_POSITION + dot3StartOffset_) * dipScale; in PaintMore() 419 Offset bottomRight = (DOT4_POSITION + dot4StartOffset_) * dipScale; in PaintMore() 432 path.rLineTo(SkDoubleToScalar(dot2Offset_.GetX() * dipScale), SkDoubleToScalar(0.0)); in PaintMore() 434 path.rLineTo(SkDoubleToScalar(0.0), SkDoubleToScalar(dot3Offset_.GetY() * dipScale)); in PaintMore() 436 path.rLineTo(SkDoubleToScalar(dot4Offset_.GetX() * dipScale), SkDoubleToScala in PaintMore() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/ |
H A D | rs_material_filter.h | 62 RSMaterialFilter(int style, float dipScale, BLUR_COLOR_MODE mode, float ratio);
106 std::shared_ptr<Drawing::ImageFilter> CreateMaterialStyle(MATERIAL_BLUR_STYLE style, float dipScale, float ratio);
108 static float RadiusVp2Sigma(float radiusVp, float dipScale);
|
H A D | rs_filter.h | 48 int style, float dipScale, BLUR_COLOR_MODE mode = DEFAULT, float ratio = 1.0); 53 static float RadiusVp2Sigma(float radiusVp, float dipScale);
|
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/ |
H A D | rosen_render_tab_bar_item.cpp | 45 double dipScale = pipelineContext->GetDipScale(); in Paint() local 48 rsNode->SetCornerRadius(Dimension(CLICKED_RADIUS, DimensionUnit::VP).ConvertToPx(dipScale)); in Paint()
|
/foundation/arkui/ace_engine/frameworks/core/components/tool_bar/ |
H A D | render_tool_bar.cpp | 95 double dipScale = NormalizeToPx(info->GetParent()->GetGutterWidth()); in GetMaxWidthBasedOnGridType() local 96 actualWidth_ += info->GetWidth(1) + dipScale; in GetMaxWidthBasedOnGridType()
|
/foundation/arkui/ace_engine/frameworks/core/components/checkable/ |
H A D | rosen_render_radio.cpp | 151 double dipScale = 1.0; in DrawTouchBoard() local 154 dipScale = pipelineContext->GetDipScale(); in DrawTouchBoard() 157 width_, height_), Radius(height_ * HALF)), PRESS_COLOR, dipScale); in DrawTouchBoard()
|