Home
last modified time | relevance | path

Searched refs:dashWidth (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_border.cpp73 void RSBorder::SetDashWidth(float dashWidth) in SetDashWidth() argument
76 dashWidth_.push_back(dashWidth); in SetDashWidth()
172 void RSBorder::SetDashWidthFour(const Vector4f& dashWidth) in SetDashWidthFour() argument
174 …if (dashWidth.x_ == dashWidth.y_ && dashWidth.x_ == dashWidth.z_ && dashWidth.x_ == dashWidth.w_) { in SetDashWidthFour()
175 return SetDashWidth(dashWidth.x_); in SetDashWidthFour()
177 dashWidth_ = { dashWidth.x_, dashWidth.y_, dashWidth.z_, dashWidth.w_ }; in SetDashWidthFour()
259 float dashWidth = GetDashWidth(idx); in SetBorderEffect() local
261 bool bothZero = ROSEN_EQ(dashWidth, 0.f) && ROSEN_EQ(dashGap, 0.f); in SetBorderEffect()
262 if (dashWidth >= 0.f && dashGap >= 0.f) { in SetBorderEffect()
264 float intervals[] = { dashWidth, bothZero ? 1.f : dashGap }; in SetBorderEffect()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/
H A Drs_border.h73 void SetDashWidth(float dashWidth);
85 void SetDashWidthFour(const Vector4f& dashWidth);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dview_abstract_model_ng.h415 NG::BorderWidthProperty dashWidth; in SetDashWidth() local
416 dashWidth.leftDimen = left; in SetDashWidth()
417 dashWidth.rightDimen = right; in SetDashWidth()
418 dashWidth.topDimen = top; in SetDashWidth()
419 dashWidth.bottomDimen = bottom; in SetDashWidth()
420 dashWidth.multiValued = true; in SetDashWidth()
421 ViewAbstract::SetDashWidth(dashWidth); in SetDashWidth()
H A Dview_abstract.cpp700 BorderWidthProperty dashWidth; in SetDashWidth() local
701 dashWidth.SetBorderWidth(value); in SetDashWidth()
703 ACE_UPDATE_RENDER_CONTEXT(DashWidth, dashWidth); in SetDashWidth()
708 BorderWidthProperty dashWidth; in SetDashWidth() local
709 dashWidth.SetBorderWidth(value); in SetDashWidth()
711 ACE_UPDATE_NODE_RENDER_CONTEXT(DashWidth, dashWidth, frameNode); in SetDashWidth()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/
H A DArkComponent.ts3782 if (!isUndefined(value?.dashWidth) && value?.dashWidth !== null) {
3783 if (isNumber(value.dashWidth) || isString(value.dashWidth) || isResource(value.dashWidth) ||
3784 isObject(value.dashWidth) && isNumber(value.dashWidth.value)) {
3785 arkBorder.arkDashWidth.left = value.dashWidth;
3786 arkBorder.arkDashWidth.right = value.dashWidth;
3787 arkBorder.arkDashWidth.top = value.dashWidth;
3788 arkBorder.arkDashWidth.bottom = value.dashWidth;
3790 arkBorder.arkDashWidth.left = (value.dashWidth as EdgeWidths).left;
3791 arkBorder.arkDashWidth.right = (value.dashWidth as EdgeWidths).right;
3792 arkBorder.arkDashWidth.top = (value.dashWidth as EdgeWidths).top;
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/
H A Drs_properties.h217 void SetBorderDashWidth(const Vector4f& dashWidth);
228 void SetOutlineDashWidth(const Vector4f& dashWidth);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/
H A Drs_node.h280 void SetBorderDashWidth(const Vector4f& dashWidth);
289 void SetOutlineDashWidth(const Vector4f& dashWidth);
H A Drs_node.cpp1323 void RSNode::SetBorderDashWidth(const Vector4f& dashWidth) in SetBorderDashWidth() argument
1326 RSModifierType::BORDER_DASH_WIDTH, dashWidth); in SetBorderDashWidth()
1376 void RSNode::SetOutlineDashWidth(const Vector4f& dashWidth) in SetOutlineDashWidth() argument
1379 RSModifierType::OUTLINE_DASH_WIDTH, dashWidth); in SetOutlineDashWidth()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-border.md113 | dashWidth<sup>12+</sup> | [LengthMetrics](../js-apis-arkui-graphics.md#lengthmetrics12)&nbsp;\|&…
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-border.md113 | dashWidth<sup>12+</sup> | [LengthMetrics](../js-apis-arkui-graphics.md#lengthmetrics12) \| [Edge…
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/
H A Drs_properties.cpp1091 void RSProperties::SetBorderDashWidth(const Vector4f& dashWidth) in SetBorderDashWidth() argument
1096 border_->SetDashWidthFour(dashWidth); in SetBorderDashWidth()
1190 void RSProperties::SetOutlineDashWidth(const Vector4f& dashWidth) in SetOutlineDashWidth() argument
1195 outline_->SetDashWidthFour(dashWidth); in SetOutlineDashWidth()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_view_abstract.cpp4010 auto dashWidth = object->GetProperty("dashWidth"); in JsBorder() local
4011 if (!dashWidth->IsUndefined()) { in JsBorder()
4012 ParseDashWidth(dashWidth); in JsBorder()
4107 CalcDimension dashWidth; in ParseDashWidth() local
4108 if (ParseLengthMetricsToDimension(args, dashWidth)) { in ParseDashWidth()
4109 if (dashWidth.Unit() == DimensionUnit::PERCENT) { in ParseDashWidth()
4110 dashWidth.Reset(); in ParseDashWidth()
4112 ViewAbstractModel::GetInstance()->SetDashWidth(dashWidth); in ParseDashWidth()
4120 dashWidth.Reset(); in ParseDashWidth()
4121 ViewAbstractModel::GetInstance()->SetDashWidth(dashWidth); in ParseDashWidth()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DarkComponent.js3644 if (isNumber(value.dashWidth) || isString(value.dashWidth) || isResource(value.dashWidth) ||
3645 isObject(value.dashWidth) && isNumber(value.dashWidth.value)) {
3646 arkBorder.arkDashWidth.left = value.dashWidth;
3647 arkBorder.arkDashWidth.right = value.dashWidth;
3648 arkBorder.arkDashWidth.top = value.dashWidth;
3649 arkBorder.arkDashWidth.bottom = value.dashWidth;
3652 arkBorder.arkDashWidth.left = value.dashWidth.left;
3653 arkBorder.arkDashWidth.right = value.dashWidth.right;
3654 arkBorder.arkDashWidth.top = value.dashWidth.top;
3656 arkBorder.arkDashWidth.start = value.dashWidth.start;
[all …]