Searched refs:marginProperty (Results 1 – 7 of 7) sorted by relevance
118 const auto& marginProperty = layoutProperty->GetMarginProperty(); in PaintImageNode() local119 if (marginProperty) { in PaintImageNode()121 … marginProperty->left.has_value() ? marginProperty->left->GetDimension().ConvertToPx() : 0.0f; in PaintImageNode()122 …marginTop = marginProperty->top.has_value() ? marginProperty->top->GetDimension().ConvertToPx() : … in PaintImageNode()159 const auto& marginProperty = layoutProperty->GetMarginProperty(); in PaintFrameNode() local160 if (marginProperty) { in PaintFrameNode()162 … marginProperty->left.has_value() ? marginProperty->left->GetDimension().ConvertToPx() : 0.0f; in PaintFrameNode()163 …marginTop = marginProperty->top.has_value() ? marginProperty->top->GetDimension().ConvertToPx() : … in PaintFrameNode()
108 NG::MarginProperty marginProperty; in ParseGaps() local109 ParseMargin(margin, marginProperty); in ParseGaps()110 section.margin = marginProperty; in ParseGaps()
1645 CHECK_NULL_VOID(marginProperty); in CheckLocalizedMargin()1646 if (!marginProperty->start.has_value() && !marginProperty->end.has_value()) { in CheckLocalizedMargin()1650 if (marginProperty->start.has_value()) { in CheckLocalizedMargin()1651 margin.start = marginProperty->start; in CheckLocalizedMargin()1658 if (marginProperty->end.has_value()) { in CheckLocalizedMargin()1659 margin.end = marginProperty->end; in CheckLocalizedMargin()1661 margin.left = marginProperty->end; in CheckLocalizedMargin()1663 margin.right = marginProperty->end; in CheckLocalizedMargin()1666 if (marginProperty->top.has_value()) { in CheckLocalizedMargin()1667 margin.top = marginProperty->top; in CheckLocalizedMargin()[all …]
312 MarginProperty marginProperty; in CreateIconItemNode() local313 marginProperty.left = CalcLength(pickerTheme->GetPaddingHorizontal()); in CreateIconItemNode()315 layoutProps->UpdateMargin(marginProperty); in CreateIconItemNode()330 MarginProperty marginProperty; in CreateTextItemNode() local331 marginProperty.left = CalcLength(pickerTheme->GetPaddingHorizontal()); in CreateTextItemNode()333 textLayout->UpdateMargin(marginProperty); in CreateTextItemNode()343 MarginProperty marginProperty; in CreateMixtureItemNode() local344 marginProperty.left = CalcLength(pickerTheme->GetPaddingHorizontal()); in CreateMixtureItemNode()346 rowProperty->UpdateMargin(marginProperty); in CreateMixtureItemNode()397 MarginProperty marginProperty; in CreateStackNode() local[all …]
317 const auto& marginProperty = layoutProperty->GetMarginProperty(); in DrawImage() local320 if (marginProperty) { in DrawImage()321 …marginLeft = marginProperty->left.has_value() ? marginProperty->left->GetDimension().ConvertToPx()… in DrawImage()322 …marginTop = marginProperty->top.has_value() ? marginProperty->top->GetDimension().ConvertToPx() : … in DrawImage()
1131 MarginProperty marginProperty; in UpdateLoadingMarginTop() local1132 marginProperty.left = CalcLength(0.0f); in UpdateLoadingMarginTop()1133 marginProperty.right = CalcLength(0.0f); in UpdateLoadingMarginTop()1134 marginProperty.bottom = CalcLength(0.0f); in UpdateLoadingMarginTop()1135 marginProperty.top = CalcLength(top); in UpdateLoadingMarginTop()1136 progressLayoutProperty->UpdateMargin(marginProperty); in UpdateLoadingMarginTop()
4366 Dimension marginProperty(marginHeight, DimensionUnit::PX); in UpdateCounterMargin() local4368 margin.bottom = CalcLength(marginProperty); in UpdateCounterMargin()4373 if (LessNotEqual(systemMargin.ConvertToPx(), marginProperty.ConvertToPx())) { in UpdateCounterMargin()4374 margin.bottom = CalcLength(marginProperty); in UpdateCounterMargin()