Home
last modified time | relevance | path

Searched refs:GetStrokeWidth (Results 1 – 25 of 47) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Ddivider_composed_element.cpp28 …{ "strokeWidth", [](const DividerComposedElement& inspector) { return inspector.GetStrokeWidth(); … in __anonb2e5b0a30402()
42 std::string("strokeWidth: ").append(GetStrokeWidth().c_str())); in Dump()
70 std::string DividerComposedElement::GetStrokeWidth() const in GetStrokeWidth() function in OHOS::Ace::V2::DividerComposedElement
73 auto strokeWidth = renderDivider ? renderDivider->GetStrokeWidth() : Dimension(1.0); in GetStrokeWidth()
H A Dpattern_lock_composed_element.cpp33 …keWidth", [](const PatternLockComposedElement& inspector) { return inspector.GetStrokeWidth(); } }, in __anon7884fda20802()
54 std::string("pathStrokeWidth: ").append(GetStrokeWidth())); in Dump()
146 std::string PatternLockComposedElement::GetStrokeWidth() const in GetStrokeWidth() function in OHOS::Ace::V2::PatternLockComposedElement
154 return renderPatternLock->GetStrokeWidth().ToString(); in GetStrokeWidth()
H A Dgauge_composed_element.cpp32 …{ "strokeWidth", [](const GaugeComposedElement& inspector) { return inspector.GetStrokeWidth(); } … in __anon021f30250702()
45 DumpLog::GetInstance().AddDesc(std::string("strokeWidth: ").append(GetStrokeWidth())); in Dump()
105 std::string GaugeComposedElement::GetStrokeWidth() const in GetStrokeWidth() function in OHOS::Ace::V2::GaugeComposedElement
H A Dgauge_composed_element.h39 std::string GetStrokeWidth() const;
H A Ddivider_composed_element.h37 std::string GetStrokeWidth() const;
H A Dpattern_lock_composed_element.h39 std::string GetStrokeWidth() const;
H A Dshape_container_composed_element.h48 std::string GetStrokeWidth() const;
H A Dshape_composed_element.h47 std::string GetStrokeWidth() const;
H A Dshape_container_composed_element.cpp37 …idth", [](const ShapeContainerComposedElement& inspector) { return inspector.GetStrokeWidth(); } }, in __anona2101dcf0a02()
199 std::string ShapeContainerComposedElement::GetStrokeWidth() const in GetStrokeWidth() function in OHOS::Ace::V2::ShapeContainerComposedElement
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/progress/
H A Dprogress_test_ng.cpp234 EXPECT_EQ(progressLayoutAlgorithm->GetStrokeWidth(), STROKE_WIDTH.ConvertToPx());
242 EXPECT_EQ(progressLayoutAlgorithm->GetStrokeWidth(), STROKE_WIDTH.ConvertToPx());
250 EXPECT_EQ(progressLayoutAlgorithm->GetStrokeWidth(), STROKE_WIDTH.ConvertToPx());
294 EXPECT_EQ(progressLayoutAlgorithm->GetStrokeWidth(), LARG_STROKE_WIDTH.ConvertToPx());
303 EXPECT_EQ(progressLayoutAlgorithm->GetStrokeWidth(), LARG_STROKE_WIDTH.ConvertToPx());
358 EXPECT_EQ(progressLayoutAlgorithm->GetStrokeWidth(), STROKE_WIDTH.ConvertToPx());
469 EXPECT_EQ(progressLayoutAlgorithm->GetStrokeWidth(), STROKE_WIDTH.ConvertToPx());
810 EXPECT_EQ(progressLayoutAlgorithm->GetStrokeWidth(), STROKE_WIDTH.ConvertToPx());
951 EXPECT_EQ(layoutAlgorithm->GetStrokeWidth(), DEFAULT_STROKE_WIDTH.ConvertToPx());
1002 EXPECT_EQ(layoutAlgorithm->GetStrokeWidth(), DEFAULT_STROKE_WIDTH.ConvertToPx());
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/
H A Dprogress_layout_algorithm.cpp62 strokeWidth_ = progressLayoutProperty->GetStrokeWidth(). in MeasureContent()
109 strokeWidth_ = progressLayoutProperty->GetStrokeWidth(). in MeasureContentForApiNine()
155 float ProgressLayoutAlgorithm::GetStrokeWidth() const in GetStrokeWidth() function in OHOS::Ace::NG::ProgressLayoutAlgorithm
H A Dprogress_layout_algorithm.h43 float GetStrokeWidth() const;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item_group/
H A Dmenu_item_group_paint_method.cpp73 if (props->GetStrokeWidth()->Unit() != DimensionUnit::INVALID) { in PreparePaintData()
74 …info.strokeWidth = props->GetStrokeWidth().value_or(strokeWidth).ConvertToPxWithSize(groupSize.Hei… in PreparePaintData()
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/
H A Dui_canvas.cpp369 if (paint.GetStrokeWidth() > MAX_CURVE_WIDTH) { in DrawCurve()
1086 paint.GetStrokeWidth(), in DoDrawCurve()
1107 int16_t lineWidth = static_cast<int16_t>(paint.GetStrokeWidth()); in DoDrawRect()
1156 int16_t lineWidth = enableStroke ? paint.GetStrokeWidth() : 0; in DoFillRect()
1196 uint16_t halfLineWidth = enableStroke ? (paint.GetStrokeWidth() >> 1) : 0; in DoDrawCircle()
1208 drawStyle.lineWidth_ = static_cast<int16_t>(paint.GetStrokeWidth()); in DoDrawCircle()
1232 drawStyle.lineWidth_ = static_cast<int16_t>(paint.GetStrokeWidth()); in DoDrawArc()
1235 arcInfo.radius = arcParam->radius + ((paint.GetStrokeWidth() + 1) >> 1); in DoDrawArc()
1296 arcinfo.radius = (paint.GetStrokeWidth() + 1) >> 1; in DoDrawLineJoin()
1302 style.lineWidth_ = static_cast<int16_t>(paint.GetStrokeWidth()); in DoDrawLineJoin()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/divider/
H A Drender_divider.h42 Dimension GetStrokeWidth() const in GetStrokeWidth() function
H A Ddivider_component.h56 const Dimension& GetStrokeWidth() const in GetStrokeWidth() function
H A Drender_divider.cpp31 strokeWidth_ = divider->GetStrokeWidth(); in Update()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/
H A Dgauge_modifier.cpp105 if (paintProperty->GetStrokeWidth().has_value()) { in InitProperty()
106 strokeWidth = paintProperty->GetStrokeWidth()->ConvertToPx(); in InitProperty()
151 if (paintProperty->GetStrokeWidth().has_value()) { in UpdateProperty()
152 float strokeWidth = paintProperty->GetStrokeWidth()->ConvertToPx(); in UpdateProperty()
226 if (paintProperty->GetStrokeWidth().has_value() in PaintCircularAndIndicator()
227 && paintProperty->GetStrokeWidth()->Value() > 0) { in PaintCircularAndIndicator()
229 std::min(static_cast<float>(paintProperty->GetStrokeWidth()->ConvertToPx()), in PaintCircularAndIndicator()
721 if (paintProperty->HasStrokeWidth() && (paintProperty->GetStrokeWidth()->Value() > 0)) { in CalculateStartAndSweepDegree()
722 … data.thickness = std::min(static_cast<float>(paintProperty->GetStrokeWidth()->ConvertToPx()), in CalculateStartAndSweepDegree()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/pattern_lock/
H A Dpattern_lock_component.cpp85 const Dimension& PatternLockComponent::GetStrokeWidth() const in GetStrokeWidth() function in OHOS::Ace::V2::PatternLockComponent
H A Dpattern_lock_component.h62 const Dimension& GetStrokeWidth() const;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dsk_painter.cpp74 if (NearZero(shapePaintProperty.GetStrokeWidth()->Value())) { in SetPen()
148 if (NearZero(shapePaintProperty.GetStrokeWidth()->Value())) { in SetPen()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item/
H A Dmenu_item_paint_method.cpp59 …info.strokeWidth = props->GetStrokeWidth().value_or(strokeWidth).ConvertToPxWithSize(itemSize.Heig… in GetOverlayDrawFunction()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/divider/
H A Ddivider_layout_algorithm.cpp39 Dimension strokeWidth = dividerLayoutProperty->GetStrokeWidth().value_or(defaultStrokeWidth); in MeasureContent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/data_panel/
H A Ddata_panel_paint_method.cpp41 … auto strokeWidth = paintProperty->GetStrokeWidth().value_or(theme->GetThickness()).ConvertToPx(); in UpdateContentModifier()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/shape/
H A Dellipse_pattern_test_ng.cpp69 …if (!shapePaintProperty->HasStrokeWidth() || !NearZero(shapePaintProperty->GetStrokeWidth()->Value… in Draw()

12