Home
last modified time | relevance | path

Searched refs:strokeWidth_ (Results 1 – 25 of 35) sorted by relevance

12

/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/
H A Dgeometry_math_stroke.h59 : strokeWidth_(ALPHA_HALF), in GeometryMathStroke()
106 dx1 *= strokeWidth_; in CalcCap()
107 dy1 *= strokeWidth_; in CalcCap()
206 if (crossProduct != 0 && (crossProduct > 0) == (strokeWidth_ > 0)) { in CalcJoin()
394 strokeWidth_ = width * ALPHA_HALF; in SetWidth()
395 if (strokeWidth_ < 0) { in SetWidth()
396 strokeWidthUsingAbs_ = -strokeWidth_; in SetWidth()
399 strokeWidthUsingAbs_ = strokeWidth_; in SetWidth()
402 strokeWidthPercentDivision_ = strokeWidth_ / BUF_SIZE; in SetWidth()
418 return strokeWidth_ * TWO_TIMES; in GetWidth()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/
H A Dprogress_layout_algorithm.cpp62 strokeWidth_ = progressLayoutProperty->GetStrokeWidth(). in MeasureContent()
63 … value_or(progressTheme ? progressTheme->GetTrackThickness() : Dimension(strokeWidth_)). in MeasureContent()
70 float height_ = selfIdealHeight.value_or(strokeWidth_); in MeasureContent()
92 height_ = std::min(height_, strokeWidth_); in MeasureContent()
94 width_ = std::min(width_, strokeWidth_); in MeasureContent()
109 strokeWidth_ = progressLayoutProperty->GetStrokeWidth(). in MeasureContentForApiNine()
111 … progressTheme->GetTrackThickness()): Dimension(strokeWidth_)).ConvertToPx(); in MeasureContentForApiNine()
120 float height_ = strokeWidth_ * 2.0f; in MeasureContentForApiNine()
144 strokeWidth_ = std::min(strokeWidth_, height_ / 2.0f); in MeasureContentForApiNine()
145 strokeWidth_ = std::min(strokeWidth_, width_ / 2.0f); in MeasureContentForApiNine()
[all …]
H A Dprogress_paint_method.cpp59 strokeWidth_ = std::min(strokeWidth_, length); in CalculateStrokeWidth()
63 if (strokeWidth_ >= length * HALF) { in CalculateStrokeWidth()
64 strokeWidth_ = length * HALF * HALF; in CalculateStrokeWidth()
H A Dprogress_paint_method.h43 … : strokeWidth_(strokeWidth), progressType_(progressType), progressModifier_(progressModifier) in DECLARE_ACE_TYPE()
82 progressModifier_->SetStrokeWidth(strokeWidth_); in UpdateContentModifier()
99 …paintProperty->GetStrokeRadiusValue(Dimension(strokeWidth_ / 2.0f, DimensionUnit::VP)).ConvertToPx… in UpdateContentModifier()
100 strokeRadius = std::min(strokeWidth_ / 2, strokeRadius); in UpdateContentModifier()
113 float strokeWidth_ = 0.0f; variable
H A Dprogress_pattern.cpp40 strokeWidth_ = progressLayoutAlgorithm->GetStrokeWidth(); in OnDirtyLayoutWrapperSwap()
79 …paintProperty->GetStrokeRadiusValue(Dimension(strokeWidth_ / 2, DimensionUnit::VP)).ConvertToPx()); in InitAnimatableProperty()
80 strokeRadius = std::min(strokeWidth_ / 2, strokeRadius); in InitAnimatableProperty()
89 progressAnimatableProperty.strokeWidth = strokeWidth_; in InitAnimatableProperty()
105 strokeWidth_ = std::min(strokeWidth_, length); in CalculateStrokeWidth()
109 if (strokeWidth_ >= radius) { in CalculateStrokeWidth()
110 strokeWidth_ = radius / 2; in CalculateStrokeWidth()
H A Dprogress_pattern.h62 return MakeRefPtr<ProgressPaintMethod>(progressType_, strokeWidth_, progressModifier_); in CreateNodePaintMethod()
162 float strokeWidth_ = Dimension(4.0_vp).ConvertToPx(); variable
H A Dprogress_layout_algorithm.h50 float strokeWidth_= 2.0f; variable
H A Dprogress_modifier.cpp84 AttachProperty(strokeWidth_); in ProgressModifier()
127 CHECK_NULL_VOID(strokeWidth_); in SetStrokeWidth()
128 strokeWidth_->Set(width); in SetStrokeWidth()
515 auto strokeWidth = strokeWidth_->Get(); in CalcRingProgressAdditionalAngle()
530 float radius = strokeWidth_->Get() / 2; in StartLinearSweepingAnimation()
744 float rightBottomY = strokeWidth_->Get() + offset.GetY(); in PaintLinear()
808 rightBottomY = offset.GetY() + strokeWidth_->Get(); in PaintLinearSweeping()
812 rightBottomX = offset.GetX() + strokeWidth_->Get(); in PaintLinearSweeping()
876 auto thickness = strokeWidth_->Get(); in PaintRing()
1356 double lengthOfScale = strokeWidth_->Get(); in PaintScaleRing()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/divider/
H A Ddivider_component.h58 return strokeWidth_; in GetStrokeWidth()
63 strokeWidth_ = strokeWidth; in SetStrokeWidth()
80 Dimension strokeWidth_ = Dimension(1.0); variable
H A Drender_divider.cpp31 strokeWidth_ = divider->GetStrokeWidth(); in Update()
45 …constrainStrokeWidth_ = GreatNotEqual(NormalizeToPx(strokeWidth_), 0.0) ? NormalizeToPx(strokeWidt… in PerformLayout()
H A Drender_divider.h44 return strokeWidth_; in GetStrokeWidth()
56 Dimension strokeWidth_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/divider/
H A Ddivider_modifier.cpp28 strokeWidth_ = AceType::MakeRefPtr<AnimatablePropertyFloat>(0.0); in DividerModifier()
36 AttachProperty(strokeWidth_); in DividerModifier()
51strokeWidth_->Get(), dividerLength_->Get(), vertical_->Get(), color_->Get().ToColor(), lineCap); in onDraw()
H A Ddivider_modifier.h42 strokeWidth_->Set(strokeWidth); in SetStrokeWidth()
71 RefPtr<AnimatablePropertyFloat> strokeWidth_;
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_progress.cpp190 progress.strokeWidth_.first = progress.ParseDimension(val); in SetSpecializedStyle()
191 progress.strokeWidth_.second = true; in SetSpecializedStyle()
224 progressChild_->GetTrack()->SetTrackThickness(strokeWidth_.first); in PrepareSpecializedComponent()
328 if (!strokeWidth_.second) { in InitProgressIfNeed()
330 strokeWidth_.first = theme->GetScaleLength(); in InitProgressIfNeed()
332 strokeWidth_.first = theme->GetRingThickness(); in InitProgressIfNeed()
334 strokeWidth_.first = theme->GetTrackThickness(); in InitProgressIfNeed()
H A Ddom_chart.cpp173 chart.strokeWidth_.first = chart.ParseDimension(val); in SetSpecializedStyle()
174 chart.strokeWidth_.second = true; in SetSpecializedStyle()
330 progressChild_->GetTrack()->SetTrackThickness(strokeWidth_.first); in PrepareSpecializedComponent()
370 if (strokeWidth_.second) { in PrepareSpecializedComponent()
371 dataPanelChild_->SetThickness(strokeWidth_.first); in PrepareSpecializedComponent()
393 if (strokeWidth_.second) { in PrepareSpecializedComponent()
394 dataPanelChild_->SetThickness(strokeWidth_.first); in PrepareSpecializedComponent()
H A Ddom_progress.h63 std::pair<Dimension, bool> strokeWidth_ = { 32.0_px, false }; variable
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/common/
H A Dpaint.h46 strokeWidth_(DEFAULT_STROKE_WIDTH), in Paint()
247 strokeWidth_ = width; in SetStrokeWidth()
260 return strokeWidth_; in GetStrokeWidth()
737 uint16_t strokeWidth_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/pattern_lock/
H A Dpattern_lock_component.cpp83 strokeWidth_ = lineWidth; in SetStrokeWidth()
87 return strokeWidth_; in GetStrokeWidth()
H A Drender_pattern_lock.h52 return strokeWidth_; in GetStrokeWidth()
131 Dimension strokeWidth_; variable
H A Drosen_render_pattern_lock.cpp142 if (LessOrEqual(strokeWidth_.Value(), 0.0)) { in PaintLockLine()
156 skPaintStroke.setStrokeWidth(NormalizeToPx(strokeWidth_)); in PaintLockLine()
192 if (LessOrEqual(strokeWidth_.Value(), 0.0)) { in PaintLockLine()
208 penStroke.SetWidth(NormalizeToPx(strokeWidth_)); in PaintLockLine()
H A Dpattern_lock_component.h87 Dimension strokeWidth_ { DEFAULT_STROKE_WIDTH, DimensionUnit::VP };
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/
H A Dgauge_modifier.h65 AttachProperty(strokeWidth_); in GaugeModifier()
137 RefPtr<AnimatablePropertyFloat> strokeWidth_; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Dshape.h126 strokeWidth_ = strokeWidth; in SetStrokeWidth()
131 return strokeWidth_; in GetStrokeWidth()
160 float strokeWidth_ = 0.0f; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/data_panel/
H A Ddata_panel_modifier.h134 strokeWidth_->Set(strokeWidth); in SetStrokeWidth()
212 RefPtr<AnimatablePropertyFloat> strokeWidth_; variable
/ohos5.0/foundation/graphic/graphic_utils_lite/frameworks/diagram/common/
H A Dpaint.cpp65 strokeWidth_ = paint.strokeWidth_; in Init()

12