Home
last modified time | relevance | path

Searched refs:borderWidth_ (Results 1 - 25 of 65) sorted by relevance

123

/foundation/arkui/ui_lite/frameworks/components/
H A Dui_checkbox.cpp44 borderWidth_(DEFAULT_BORDER_WIDTH), in UICheckBox()
125 borderWidth_ = DEFAULT_BORDER_WIDTH * minValue / DEFAULT_HOT_WIDTH; in CalculateSize()
143 int16_t dx = static_cast<int16_t>(borderWidth_ * DEFAULT_COEFFICIENT_START_DX); in SelectedStateSoftwareDrawing()
144 int16_t dy = static_cast<int16_t>(borderWidth_ * DEFAULT_COEFFICIENT_START_DY); in SelectedStateSoftwareDrawing()
146 dx = static_cast<int16_t>(borderWidth_ * DEFAULT_COEFFICIENT_MID_DX); in SelectedStateSoftwareDrawing()
148 dx = static_cast<int16_t>(borderWidth_ * DEFAULT_COEFFICIENT_MID_DY); in SelectedStateSoftwareDrawing()
188 styleUnSelect.borderWidth_ = rectLineWidth; in UnSelectedStateSoftwareDrawing()
246 int16_t rectLineWidth = borderWidth_ / DEFAULT_BORDER_WIDTH; in OnDraw()
249 int16_t x = contentRect.GetX() + (width_ - borderWidth_) / 2; // 2: half in OnDraw()
250 int16_t y = contentRect.GetY() + (height_ - borderWidth_) / in OnDraw()
[all...]
H A Dui_circle_progress.cpp97 arcinfo.center.x = center_.x + rect.GetLeft() + style_->paddingLeft_ + style_->borderWidth_; in DrawCommonCircle()
98 arcinfo.center.y = center_.y + rect.GetTop() + style_->paddingTop_ + style_->borderWidth_; in DrawCommonCircle()
/foundation/arkui/ace_engine/interfaces/inner_api/form_render/src/
H A Dform_renderer.cpp55 width_, height_, borderWidth_); in PreInitUIContent()
57 uiContent_->SetFormWidth(width_ - borderWidth_ * DOUBLE); in PreInitUIContent()
58 uiContent_->SetFormHeight(height_ - borderWidth_ * DOUBLE); in PreInitUIContent()
59 lastBorderWidth_ = borderWidth_; in PreInitUIContent()
111 rsSurfaceNode->SetBounds(round(borderWidth_), round(borderWidth_), round(width_ - borderWidth_ * DOUBLE), in RunFormPageInner()
112 round(height_ - borderWidth_ * DOUBLE)); in RunFormPageInner()
136 borderWidth_ = want.GetFloatParam(OHOS::AppExecFwk::Constants::PARAM_FORM_BORDER_WIDTH_KEY, 0.0f); in ParseWant()
267 borderWidth_ in OnSurfaceChange()
[all...]
/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_circle_progress.h212 progressImagePos_.x = x + style_->paddingLeft_ + style_->borderWidth_; in SetProgressImagePosition()
213 progressImagePos_.y = y + style_->paddingTop_ + style_->borderWidth_; in SetProgressImagePosition()
227 backgroundImagePos_.x = x + style_->paddingLeft_ + style_->borderWidth_; in SetBackgroundImagePosition()
228 backgroundImagePos_.y = y + style_->paddingTop_ + style_->borderWidth_; in SetBackgroundImagePosition()
H A Dui_button.h266 (style->borderWidth_ * 2); /* 2: left and right border */
280 (style->borderWidth_ * 2); /* 2: top and bottom border */
320 contentRect.SetX(GetRect().GetX() + style->paddingLeft_ + style->borderWidth_);
321 contentRect.SetY(GetRect().GetY() + style->paddingTop_ + style->borderWidth_);
331 contentRect.SetX(GetOrigRect().GetX() + style->paddingLeft_ + style->borderWidth_);
332 contentRect.SetY(GetOrigRect().GetY() + style->paddingTop_ + style->borderWidth_);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/radio/
H A Dradio_paint_method.cpp87 borderWidth_ = radioTheme->GetBorderWidth().ConvertToPx(); in InitializeParam()
222 pen.SetWidth(borderWidth_); in PaintRadio()
264 if (outWidth < borderWidth_) { in PaintRadio()
265 outWidth = borderWidth_; in PaintRadio()
281 canvas.DrawCircle(RSPoint(centerX, centerY), outCircleRadius - borderWidth_); in PaintRadio()
285 canvas.DrawCircle(RSPoint(centerX, centerY), outCircleRadius - borderWidth_ / CALC_RADIUS); in PaintRadio()
296 pen.SetWidth(borderWidth_); in PaintUnselectedIndicator()
311 canvas.DrawCircle(RSPoint(centerX, centerY), outCircleRadius - borderWidth_); in PaintUnselectedIndicator()
315 canvas.DrawCircle(RSPoint(centerX, centerY), outCircleRadius * totalScale_->Get() - borderWidth_ / CALC_RADIUS); in PaintUnselectedIndicator()
330 pen.SetWidth(borderWidth_ * borderOpacityScale in PaintIndicator()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkboxgroup/
H A Dcheckboxgroup_modifier.cpp51 borderWidth_ = parameters.borderWidth; in CheckBoxGroupModifier()
92 pen.SetWidth(borderWidth_); in PaintCheckBox()
181 float originX = origin.GetX() + borderWidth_ / CHECKBOX_GROUP_DOUBLE_RATIO; in DrawUnselected()
182 float originY = origin.GetY() + borderWidth_ / CHECKBOX_GROUP_DOUBLE_RATIO; in DrawUnselected()
183 float endX = originX + paintSize.Width() - borderWidth_; in DrawUnselected()
184 float endY = originY + paintSize.Height() - borderWidth_; in DrawUnselected()
211 float originX = paintOffset.GetX() + borderWidth_; in DrawUnselectedBorder()
212 float originY = paintOffset.GetY() + borderWidth_; in DrawUnselectedBorder()
213 float endX = originX + paintSize.Width() - CHECKBOX_GROUP_DOUBLE_RATIO * borderWidth_; in DrawUnselectedBorder()
214 float endY = originY + paintSize.Height() - CHECKBOX_GROUP_DOUBLE_RATIO * borderWidth_; in DrawUnselectedBorder()
[all...]
H A Dcheckboxgroup_modifier.h110 borderWidth_ = borderWidth; in SetBorderWidth()
209 return borderWidth_; in GetBorderWidth()
254 float borderWidth_; member in OHOS::Ace::NG::CheckBoxGroupModifier
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_circle_progress_unit_test.cpp176 int16_t x1 = x + view->GetStyleConst().paddingLeft_ + view->GetStyleConst().borderWidth_; in HWTEST_F()
177 int16_t y1 = y + view->GetStyleConst().paddingTop_ + view->GetStyleConst().borderWidth_; in HWTEST_F()
199 int16_t x1 = x + view->GetStyleConst().paddingLeft_ + view->GetStyleConst().borderWidth_; in HWTEST_F()
200 int16_t y1 = y + view->GetStyleConst().paddingTop_ + view->GetStyleConst().borderWidth_; in HWTEST_F()
H A Dui_label_button_unit_test.cpp149 style.borderWidth_ = 1; in HWTEST_F()
152 EXPECT_EQ(labelBtn_->GetLabelStyle().borderWidth_, style.borderWidth_); in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/pattern/image/
H A Dimage_paint_method_test_ng.cpp75 BorderWidthProperty borderWidth_; in HWTEST_F() local
76 frameNode->GetRenderContext()->UpdateBorderWidth(borderWidth_); in HWTEST_F()
78 borderWidth_.SetBorderWidth(IMAGE_SOURCEINFO_WIDTH); in HWTEST_F()
79 frameNode->GetRenderContext()->UpdateBorderWidth(borderWidth_); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/
H A Drs_magnifier_para.h33 float borderWidth_ = 0.f; member in OHOS::Rosen::RSMagnifierParams
56 out += " borderWidth:" + std::to_string(borderWidth_) + " offsetX:" + std::to_string(offsetX_); in Dump()
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_rect.cpp55 if (style.borderWidth_ == 0) { in Draw()
69 } else if (style.borderRadius_ < style.borderWidth_) { in Draw()
72 } else if (style.borderRadius_ == style.borderWidth_) { in Draw()
266 int16_t col2X = rect.GetLeft() + style.borderWidth_ - 1; in DrawRectBorderWithoutRadius()
267 int16_t col3X = rect.GetRight() - style.borderWidth_ + 1; in DrawRectBorderWithoutRadius()
271 int16_t row2Y = rect.GetTop() + style.borderWidth_ - 1; in DrawRectBorderWithoutRadius()
272 int16_t row3Y = rect.GetBottom() - style.borderWidth_ + 1; in DrawRectBorderWithoutRadius()
313 arcStyle.lineWidth_ = style.borderWidth_; in DrawRectRadiusEqualBorder()
383 int16_t rectCol2X = rect.GetLeft() + style.borderWidth_ - 1; in DrawRectRadiusSmallThanBorder()
384 int16_t rectCol3X = rect.GetRight() - style.borderWidth_ in DrawRectRadiusSmallThanBorder()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkbox/
H A Dcheckbox_paint_method.cpp74 borderWidth_ = checkBoxTheme->GetBorderWidth().ConvertToPx(); in InitializeParam()
99 pen.SetWidth(borderWidth_); in PaintCheckBox()
171 float originX = origin.GetX() + borderWidth_ / CHECKBOX_DOUBLE_RATIO; in DrawBorder()
172 float originY = origin.GetY() + borderWidth_ / CHECKBOX_DOUBLE_RATIO; in DrawBorder()
173 float endX = originX + paintSize.Width() - borderWidth_; in DrawBorder()
174 float endY = originY + paintSize.Height() - borderWidth_; in DrawBorder()
/foundation/arkui/ace_engine/frameworks/core/components/counter/
H A Dcounter_theme.h112 return borderWidth_; in GetBorderWidth()
139 NG::BorderWidthProperty borderWidth_ = { 1.0_vp, 1.0_vp, 1.0_vp, 1.0_vp }; member in OHOS::Ace::CounterTheme
/foundation/arkui/ace_engine/frameworks/core/components/checkable/
H A Dcheckable_theme.h91 return borderWidth_; in GetBorderWidth()
189 Dimension borderWidth_; member in OHOS::Ace::CheckableTheme
249 theme->borderWidth_ = checkboxPattern->GetAttr<Dimension>("checkbox_border_width", 0.0_vp); in ParsePattern()
349 theme->borderWidth_ = switchPattern->GetAttr<Dimension>("switch_border_width", 0.0_vp); in ParsePattern()
455 theme->borderWidth_ = radioPattern->GetAttr<Dimension>("radio_border_width", 0.0_vp); in ParsePattern()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/
H A Drs_property_drawable_foreground.cpp508 borderWidth_ = std::ceil(properties_.GetIlluminatedBorderWidth());
517 auto borderRRect = RRect(RectF(borderRect.left_ + borderWidth_ / 2.0f, borderRect.top_ + borderWidth_ / 2.0f,
518 borderRect.width_ - borderWidth_, borderRect.height_ - borderWidth_),
519 borderRadius - borderWidth_ / 2.0f, borderRadius - borderWidth_ / 2.0f);
678 float borderWidth = std::ceil(borderWidth_);
/foundation/arkui/ace_engine/test/unittest/core/pattern/security_component/mock/
H A Dsec_comp_base_mock.h86 double borderWidth_; member in OHOS::Security::SecurityComponent::SecCompBase
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/app_bar/
H A Dapp_bar_theme.h218 return borderWidth_; in GetBorderWidth()
295 theme->borderWidth_ = appBarPattern->GetAttr<Dimension>("border_width", 1.0_px); in ParsePattern()
363 Dimension borderWidth_; member in OHOS::Ace::NG::AppBarTheme
/foundation/arkui/ace_engine/frameworks/core/components/progress/
H A Dprogress_theme.h96 theme->borderWidth_ = pattern->GetAttr<Dimension>("progress_border_width", 1.0_vp); in ParsePattern()
256 return borderWidth_; in GetBorderWidth()
369 Dimension borderWidth_; member in OHOS::Ace::ProgressTheme
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/
H A Dsecurity_component_theme.h110 return borderWidth_; in GetBorderWidth()
259 theme->borderWidth_ = securityComponentPattern->GetAttr<Dimension>("border_width", 0.0_vp); in ParsePattern()
281 Dimension borderWidth_; member in OHOS::Ace::NG::SecurityComponentTheme
/foundation/graphic/graphic_utils_lite/frameworks/
H A Dstyle.cpp40 borderWidth_(0), in Style()
79 return borderWidth_; in GetStyle()
142 borderWidth_ = value; in SetStyle()
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/
H A Dlayout_property.cpp113 borderWidth_.reset(); in Reset()
272 if (layoutProperty->borderWidth_) { in UpdateLayoutProperty()
273 borderWidth_ = std::make_unique<BorderWidthProperty>(*layoutProperty->borderWidth_); in UpdateLayoutProperty()
577 CHECK_NULL_VOID(borderWidth_); in ConstraintContentByBorder()
579 *borderWidth_, contentConstraint_->scaleProperty, layoutConstraint_->percentReference.Width()); in ConstraintContentByBorder()
634 borderWidth_, ScaleProperty::CreateScaleProperty(), layoutConstraint_->percentReference.Width()); in CreatePaddingAndBorder()
640 borderWidth_, ScaleProperty::CreateScaleProperty(), PipelineContext::GetCurrentRootWidth()); in CreatePaddingAndBorder()
656 borderWidth_, ScaleProperty::CreateScaleProperty(), layoutConstraint_->percentReference.Width()); in CreatePaddingAndBorderWithDefault()
662 borderWidth_, ScalePropert in CreatePaddingAndBorderWithDefault()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/src/
H A Dge_magnifier_shader_filter.cpp38 magnifierPara_->borderWidth_ = params.borderWidth; in GEMagnifierShaderFilter()
104 builder->SetUniform("borderWidth", magnifierPara_->borderWidth_); in MakeMagnifierShader()
/foundation/graphic/graphic_2d/graphic_test/graphic_test/rs_display_effect/property_display/
H A Dtest_Appearance_PixelStretch.cpp158 magnifierParams1->borderWidth_ = 5; in GRAPHIC_TEST()
176 magnifierParams2->borderWidth_ = 15; in GRAPHIC_TEST()

Completed in 19 milliseconds

123