Home
last modified time | relevance | path

Searched refs:margin (Results 1 - 25 of 201) sorted by relevance

123456789

/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/
H A Dpen_test.cpp31 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); in TestPenColor() local
37 Rect rect(margin, margin, width - margin, height - margin); in TestPenColor()
41 Rect rect1(rect.GetLeft() + margin, rect.GetTop() + margin, in TestPenColor()
42 rect.GetRight() - margin, rect.GetBottom() - margin); in TestPenColor()
47 Rect rect2(rect1.GetLeft() + margin, rect in TestPenColor()
63 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestPenAlpha() local
89 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestPenWidth() local
108 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestPenMiterLimit() local
145 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestPenCapStyle() local
178 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestPenJoinStyle() local
203 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestPenBlendMode() local
231 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestPenAntiAlias() local
255 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestPenPathEffect() local
286 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestPenFilter() local
312 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestPenReset() local
[all...]
H A Dpath_test.cpp26 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); in TestDrawStar() local
27 Rect rect(margin, margin, width - margin, height - margin); in TestDrawStar()
107 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); in TestMoveTo() local
108 Rect rect(margin, margin, width - margin, height - margin); in TestMoveTo()
131 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestLineTo() local
163 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestArcTo() local
184 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestCubicTo() local
208 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestQuadTo() local
233 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestAddRect() local
262 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestAddOval() local
290 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestAddArc() local
314 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestAddPoly() local
332 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestAddCircle() local
350 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestAddRoundRect() local
377 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestAddPath() local
402 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestFillStyle() local
425 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestFillStyle2() local
448 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestFillStyle3() local
471 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestFillStyle4() local
494 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestOffset() local
515 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestTransform() local
540 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestOp() local
568 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestOp2() local
596 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestOp3() local
624 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestOp4() local
652 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestOp5() local
680 const uint32_t margin = static_cast<uint32_t>(width / MARGINE_SCALE_SIZE); TestClose() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/
H A Dbutton_layout_property.h108 static void BothSidesMargin(bool isRtl, MarginProperty& margin, in BothSidesMargin() argument
113 margin.right = CalcLength(0.0_vp); in BothSidesMargin()
114 margin.left = CalcLength(dialogTheme->GetDividerPadding().Left()); in BothSidesMargin()
116 margin.right = CalcLength(dialogTheme->GetDividerPadding().Right()); in BothSidesMargin()
117 margin.left = CalcLength(0.0_vp); in BothSidesMargin()
121 margin.right = CalcLength(0.0_vp); in BothSidesMargin()
122 margin.left = CalcLength(dialogTheme->GetActionsPadding().Left()); in BothSidesMargin()
124 margin.right = CalcLength(dialogTheme->GetActionsPadding().Right()); in BothSidesMargin()
125 margin.left = CalcLength(0.0_vp); in BothSidesMargin()
130 static void UpdateDialogMargin(bool isRtl, MarginProperty& margin, in UpdateDialogMargin() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_water_flow_sections.cpp22 bool SetMarginProperty(const JSRef<JSObject>& paddingObj, NG::MarginProperty& margin) in SetMarginProperty() argument
32 margin.top = NG::CalcLength(top.value().CalcValue()); in SetMarginProperty()
34 margin.top = NG::CalcLength(top.value()); in SetMarginProperty()
40 margin.bottom = NG::CalcLength(bottom.value().CalcValue()); in SetMarginProperty()
42 margin.bottom = NG::CalcLength(bottom.value()); in SetMarginProperty()
48 margin.left = NG::CalcLength(left.value().CalcValue()); in SetMarginProperty()
50 margin.left = NG::CalcLength(left.value()); in SetMarginProperty()
56 margin.right = NG::CalcLength(right.value().CalcValue()); in SetMarginProperty()
58 margin.right = NG::CalcLength(right.value()); in SetMarginProperty()
65 void ParseMargin(const JSRef<JSVal>& jsValue, NG::MarginProperty& margin) in ParseMargin() argument
107 auto margin = obj->GetProperty("margin"); ParseGaps() local
[all...]
/foundation/arkui/ace_engine/interfaces/native/node/
H A Dwaterflow_section_option.cpp136 option->sections[index].margin[0] = marginTop; in OH_ArkUI_WaterFlowSectionOption_SetMargin()
137 option->sections[index].margin[1] = marginRight; in OH_ArkUI_WaterFlowSectionOption_SetMargin()
138 option->sections[index].margin[2] = marginBottom; in OH_ArkUI_WaterFlowSectionOption_SetMargin()
139 option->sections[index].margin[3] = marginLeft; in OH_ArkUI_WaterFlowSectionOption_SetMargin()
141 option->sections[index].margin[0] = marginTop; in OH_ArkUI_WaterFlowSectionOption_SetMargin()
142 option->sections[index].margin[1] = marginRight; in OH_ArkUI_WaterFlowSectionOption_SetMargin()
143 option->sections[index].margin[2] = marginBottom; in OH_ArkUI_WaterFlowSectionOption_SetMargin()
144 option->sections[index].margin[3] = marginLeft; in OH_ArkUI_WaterFlowSectionOption_SetMargin()
196 ArkUI_Margin margin = { 0.0, 0.0, 0.0, 0.0 }; in OH_ArkUI_WaterFlowSectionOption_GetMargin() local
197 CHECK_NULL_RETURN(option, margin); in OH_ArkUI_WaterFlowSectionOption_GetMargin()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Ddebug_boundary_painter.cpp66 const Size& layoutSize, const EdgePx& margin) in PaintDebugMargin()
71 auto verticalRectHeight = layoutSize.Height() - margin.TopPx() - margin.BottomPx(); in PaintDebugMargin()
76 layoutSize.Width(), margin.TopPx()); in PaintDebugMargin()
79 layoutRect = SkRect::MakeXYWH(startPointX, startPointY + layoutSize.Height() - margin.BottomPx(), in PaintDebugMargin()
80 layoutSize.Width(), margin.BottomPx()); in PaintDebugMargin()
83 layoutRect = SkRect::MakeXYWH(startPointX, startPointY + margin.TopPx(), in PaintDebugMargin()
84 margin.LeftPx(), verticalRectHeight); in PaintDebugMargin()
87 layoutRect = SkRect::MakeXYWH(startPointX + layoutSize.Width() - margin.RightPx(), startPointY + margin in PaintDebugMargin()
65 PaintDebugMargin(SkCanvas* canvas, const Offset& offset, const Size& layoutSize, const EdgePx& margin) PaintDebugMargin() argument
92 PaintDebugMargin(RSCanvas* canvas, const Offset& offset, const Size& layoutSize, const EdgePx& margin) PaintDebugMargin() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/
H A Dgrid_system_manager.h32 GridSizeType sizeType, const Dimension& gutter, const Dimension& margin, int32_t columns, int32_t maxColumns) in SystemGridInfo()
33 : sizeType(sizeType), gutter(gutter), margin(margin), columns(columns), maxColumns(maxColumns) in SystemGridInfo()
35 SystemGridInfo(GridSizeType sizeType, const Dimension& gutter, const Dimension& margin, int32_t columns) in SystemGridInfo()
36 : sizeType(sizeType), gutter(gutter), margin(margin), columns(columns), maxColumns(columns) in SystemGridInfo()
42 Dimension margin; member
H A Dgrid_container_info.cpp64 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()
97 return GridSystemManager::GetInstance().GetSystemGridInfo(templateType_, containerWidth_).margin; in GetMarginLeft()
105 return GridSystemManager::GetInstance().GetSystemGridInfo(templateType_, containerWidth_).margin; in GetMarginRight()
/foundation/arkui/ace_engine/test/unittest/core/pattern/waterflow/
H A Dwater_flow_item_maps.h149 .margin = MARGIN_1 },
186 .margin = MARGIN_2 },
194 .margin = MARGIN_2 },
198 .margin = MARGIN_2 },
213 .margin = MARGIN_2 },
220 { .itemsCount = 3, .crossCount = 3, .margin = MARGIN_2, .rowsGap = Dimension(5.0f) },
221 { .itemsCount = 2, .crossCount = 2, .margin = MARGIN_2, .rowsGap = Dimension(5.0f) },
241 .margin = MARGIN_3 },
247 .margin = MARGIN_3 },
251 .margin
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item_group/
H A Dmenu_item_group_layout_algorithm.cpp78 auto margin = item->GetLayoutProperty()->CreateMargin(); in Measure() local
79 MinusPaddingToSize(margin, childSize); in Measure()
87 itemHeight = childSize.Height() + margin.Height(); in Measure()
261 auto margin = MarginProperty(); in UpdateHeaderAndFooterMargin() local
264 margin.left = CalcLength(iconWidth + iconContentPadding); in UpdateHeaderAndFooterMargin()
266 // no need to update zero margin. in UpdateHeaderAndFooterMargin()
271 margin.left = CalcLength(iconWidth * 2.0 + iconContentPadding * 2.0); in UpdateHeaderAndFooterMargin()
273 margin.left = CalcLength(iconWidth + iconContentPadding); in UpdateHeaderAndFooterMargin()
275 // no need to update zero margin. in UpdateHeaderAndFooterMargin()
281 auto temp = margin in UpdateHeaderAndFooterMargin()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/app_bar/
H A Datomic_service_pattern.cpp63 MarginProperty margin; in UpdateLayoutMargin() local
64 margin.left = CalcLength(safeArea.left_.Length()); in UpdateLayoutMargin()
65 margin.right = CalcLength(safeArea.right_.Length()); in UpdateLayoutMargin()
66 margin.top = CalcLength(safeArea.top_.Length()); in UpdateLayoutMargin()
67 margin.bottom = CalcLength(safeArea.bottom_.Length()); in UpdateLayoutMargin()
68 // update stage margin in UpdateLayoutMargin()
73 layoutProperty->UpdateMargin(margin); in UpdateLayoutMargin()
76 // update menuBarRow margin in UpdateLayoutMargin()
314 MarginProperty margin; in UpdateMenuBarLayout() local
316 margin in UpdateMenuBarLayout()
350 MarginProperty margin; UpdateIconLayout() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/
H A Dwater_flow_sections.h36 rowsGap == other.rowsGap && margin == other.margin; in operator ==()
46 margin == other.margin; in OnlyCountDiff()
54 std::optional<MarginProperty> margin; member
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/
H A Dservice_collaboration_menu_ace_helper.cpp85 MarginProperty margin; in CreateText() local
86 margin.right = CalcLength(static_cast<float>(TEXT_RIGHT_MARGIN)); in CreateText()
87 margin.left = CalcLength(static_cast<float>(TEXT_LEFT_MARGIN)); in CreateText()
88 textProperty->UpdateMargin(margin); in CreateText()
117 MarginProperty margin; in CreateHeaderText() local
118 margin.right = CalcLength(static_cast<float>(HEADER_MARGIN_LEFT)); in CreateHeaderText()
119 margin.left = CalcLength(static_cast<float>(HEADER_MARGIN_RIGHT)); in CreateHeaderText()
120 margin.top = CalcLength(static_cast<float>(HEADER_MARGIN_TOP)); in CreateHeaderText()
121 margin.bottom = CalcLength(static_cast<float>(HEADER_MARGIN_BOTTOM)); in CreateHeaderText()
122 textProperty->UpdateMargin(margin); in CreateHeaderText()
146 MarginProperty margin; CreateEndIcon() local
172 MarginProperty margin; CreateStartIcon() local
233 MarginProperty margin; CreateMainMenuItem() local
283 MarginProperty margin; CreateDeviceMenuItem() local
353 MarginProperty margin; CreateMenuItemGroupNode() local
499 MarginProperty margin; CreateText() local
583 MarginProperty margin; CreateEndIcon() local
628 MarginProperty margin; CreateStartIcon() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtabs_model.h73 Dimension margin = 0.0_vp; member
86 margin = tabTheme->GetTabBarColumnMargin(); in BarGridColumnOptions()
91 return (sm == option.sm) && (md == option.md) && (lg == option.lg) && (margin == option.margin) && in operator ==()
97 Dimension margin = 0.0_vp; member
102 return (margin == option.margin) && (nonScrollableLayoutStyle == option.nonScrollableLayoutStyle); in operator ==()
/foundation/arkui/ace_engine/test/unittest/core/base/
H A Dgeometry_node_test_ng.cpp29 const std::array<bool, 4> margin { false, true, false, true };
47 * @tc.expected: step1. margin size in HWTEST_F()
51 if (margin[i]) { in HWTEST_F()
59 if (margin[i]) { in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
H A Dfocus_box.cpp25 if (!paintStyle_->strokeColor && !paintStyle_->strokeWidth && !paintStyle_->margin) { in SetStyle()
49 if (box.paintStyle_->margin) { in ToJsonValue()
50 json->Put("margin", box.paintStyle_->margin.value().ToString().c_str()); in ToJsonValue()
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/chart/24/
H A Dindex.js37 margin: 5
46 margin: 0
55 margin: -1
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dgeometry_node.h269 void UpdateMargin(const MarginPropertyF& margin) in UpdateMargin() argument
272 margin_ = std::make_unique<MarginPropertyF>(margin); in UpdateMargin()
276 if (margin.left) { in UpdateMargin()
277 margin_->left = margin.left; in UpdateMargin()
279 if (margin.right) { in UpdateMargin()
280 margin_->right = margin.right; in UpdateMargin()
282 if (margin.top) { in UpdateMargin()
283 margin_->top = margin.top; in UpdateMargin()
285 if (margin.bottom) { in UpdateMargin()
286 margin_->bottom = margin in UpdateMargin()
[all...]
/foundation/arkui/ace_engine/advanced_ui_component/popup/interfaces/
H A Dpopup.js27 margin: {
43 margin: { bottom: LengthMetrics.vp(2) },
62 margin: {
152 margin: {
560 start: new LengthMetrics(this.theme.button.margin.start.value / 2, this.theme.button.margin.start.unit),
561 end: new LengthMetrics(this.theme.icon.margin.start.value - (this.theme.button.margin.end.value / 2), this.theme.button.margin.start.unit)
575 start: new LengthMetrics(this.theme.button.margin
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_dialog_view.cpp429 MarginProperty margin;
430 margin.top = CalcLength(dialogTheme->GetDividerHeight());
431 margin.bottom = CalcLength(dialogTheme->GetDividerPadding().Bottom());
432 dividerLayoutProps->UpdateMargin(margin);
442 MarginProperty margin;
443 margin.top = CalcLength(dialogTheme->GetActionsPadding().Top());
444 margin.bottom = CalcLength(dialogTheme->GetActionsPadding().Bottom());
445 layoutProps->UpdateMargin(margin);
629 MarginProperty margin;
632 margin
[all...]
H A Dtextpicker_pattern.cpp88 MarginProperty margin; in UpdateConfirmButtonMargin() local
91 margin.top = CalcLength(dialogTheme->GetDividerHeight()); in UpdateConfirmButtonMargin()
92 margin.bottom = CalcLength(dialogTheme->GetDividerPadding().Bottom()); in UpdateConfirmButtonMargin()
94 margin.right = CalcLength(0.0_vp); in UpdateConfirmButtonMargin()
95 margin.left = CalcLength(dialogTheme->GetDividerPadding().Left()); in UpdateConfirmButtonMargin()
97 margin.right = CalcLength(dialogTheme->GetDividerPadding().Right()); in UpdateConfirmButtonMargin()
98 margin.left = CalcLength(0.0_vp); in UpdateConfirmButtonMargin()
102 margin.top = CalcLength(dialogTheme->GetActionsPadding().Top()); in UpdateConfirmButtonMargin()
103 margin.bottom = CalcLength(dialogTheme->GetActionsPadding().Bottom()); in UpdateConfirmButtonMargin()
105 margin in UpdateConfirmButtonMargin()
118 MarginProperty margin; UpdateCancelButtonMargin() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/tool_bar/
H A Drender_tool_bar.cpp82 double margin = NormalizeToPx(info->GetParent()->GetMarginLeft()); in GetMaxWidthBasedOnGridType() local
86 width += margin * 2; in GetMaxWidthBasedOnGridType()
88 actualWidth_ += margin; in GetMaxWidthBasedOnGridType()
93 actualWidth_ += margin; in GetMaxWidthBasedOnGridType()
/foundation/arkui/ace_engine/test/unittest/core/event/
H A Dfocus_box_test_ng.cpp71 style.margin = 1.0f; in HWTEST_F()
88 style.margin = 1.0f; in HWTEST_F()
120 style.margin = 1.0f; in HWTEST_F()
166 style.margin = 1.0f; in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/option/
H A Doption_layout_algorithm.cpp171 MarginProperty margin; in UpdateIconMargin() local
173 margin.left = calcLength; in UpdateIconMargin()
174 margin.right = CalcLength(); in UpdateIconMargin()
176 margin.left = CalcLength(); in UpdateIconMargin()
177 margin.right = calcLength; in UpdateIconMargin()
185 iconProps->UpdateMargin(margin); in UpdateIconMargin()
/foundation/arkui/ace_engine/frameworks/core/components/piece/
H A Drender_piece.cpp56 auto margin = pieceComponent_->GetMargin(); in OnPaintFinish() local
64 size = parent->GetLayoutSize() - margin.GetLayoutSizeInPx(context->GetDipScale()); in OnPaintFinish()
65 globalOffset = parent->GetGlobalOffset() + margin.GetOffsetInPx(context->GetDipScale()); in OnPaintFinish()

Completed in 13 milliseconds

123456789