/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/test/unittest/alignment/ |
H A D | alignment_test.cpp | 59 Size parentSize = Size(LARGE_LENGTH, EXTRA_LARGE_LENGTH); variable 66 Offset resultOffset = Alignment::GetAlignPosition(parentSize, childSize, alignment); 87 Size parentSize = Size(LARGE_LENGTH, EXTRA_LARGE_LENGTH); variable 94 Offset resultOffset = Alignment::GetAlignPosition(parentSize, childSize, alignment); 115 Size parentSize = Size(LARGE_LENGTH, EXTRA_LARGE_LENGTH); variable 143 Size parentSize = Size(LARGE_LENGTH, EXTRA_LARGE_LENGTH); variable 171 Size parentSize = Size(LARGE_LENGTH, EXTRA_LARGE_LENGTH); variable 199 Size parentSize = Size(LARGE_LENGTH, EXTRA_LARGE_LENGTH); variable 227 Size parentSize = Size(LARGE_LENGTH, EXTRA_LARGE_LENGTH); variable 255 Size parentSize = Size(LARGE_LENGTH, EXTRA_LARGE_LENGTH); variable [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | alignment.cpp | 51 Offset Alignment::GetAlignPosition(const Size& parentSize, const Size& childSize, const Alignment& … in GetAlignPosition() argument 54 if (GreatOrEqual(parentSize.Width(), childSize.Width())) { in GetAlignPosition() 55 … offset.SetX((1.0 + alignment.GetHorizontal()) * (parentSize.Width() - childSize.Width()) / 2.0); in GetAlignPosition() 57 if (GreatOrEqual(parentSize.Height(), childSize.Height())) { in GetAlignPosition() 58 … offset.SetY((1.0 + alignment.GetVertical()) * (parentSize.Height() - childSize.Height()) / 2.0); in GetAlignPosition() 64 const NG::SizeF& parentSize, const NG::SizeF& childSize, const Alignment& alignment) in GetAlignPosition() argument 67 if (GreatOrEqual(parentSize.Width(), childSize.Width())) { in GetAlignPosition() 68 … offset.SetX((1.0 + alignment.GetHorizontal()) * (parentSize.Width() - childSize.Width()) / 2.0); in GetAlignPosition() 70 if (GreatOrEqual(parentSize.Height(), childSize.Height())) { in GetAlignPosition() 71 … offset.SetY((1.0 + alignment.GetVertical()) * (parentSize.Height() - childSize.Height()) / 2.0); in GetAlignPosition()
|
H A D | alignment.h | 55 …static Offset GetAlignPosition(const Size& parentSize, const Size& childSize, const Alignment& ali… 57 const NG::SizeF& parentSize, const NG::SizeF& childSize, const Alignment& alignment);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/ |
H A D | scroll_bar_layout_algorithm.cpp | 45 void UpdateIdealSize(Axis axis, const SizeF& childSize, const OptionalSizeF& parentSize, OptionalSi… in UpdateIdealSize() argument 59 if (!idealSize.Width() && parentSize.Width().has_value()) { in UpdateIdealSize() 60 idealSize.SetWidth(parentSize.Width().value()); in UpdateIdealSize() 71 if (!idealSize.Height() && parentSize.Height().has_value()) { in UpdateIdealSize() 72 idealSize.SetHeight(parentSize.Height().value()); in UpdateIdealSize() 86 auto parentSize = CreateIdealSize(constraint.value(), axis, MeasureType::MATCH_PARENT); in Measure() local 89 MinusPaddingToSize(padding, parentSize); in Measure() 100 UpdateIdealSize(axis, size, parentSize, idealSize); in Measure() 107 UpdateIdealSize(axis, childSize, parentSize, idealSize); in Measure()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/ |
H A D | gauge_layout_algorithm.h | 42 void MeasureLimitValueText(LayoutWrapper* layoutWrapper, const SizeF& parentSize, bool isMin); 43 void MeasureDescription(LayoutWrapper* layoutWrapper, const SizeF& parentSize); 44 void MeasureTitleChild(LayoutWrapper* layoutWrapper, const SizeF& parentSize);
|
H A D | gauge_layout_algorithm.cpp | 167 …Algorithm::MeasureLimitValueText(LayoutWrapper* layoutWrapper, const SizeF& parentSize, bool isMin) in MeasureLimitValueText() argument 178 childLayoutConstraint.parentIdealSize = OptionalSizeF(parentSize); in MeasureLimitValueText() 198 void GaugeLayoutAlgorithm::MeasureDescription(LayoutWrapper* layoutWrapper, const SizeF& parentSize) in MeasureDescription() argument 210 childLayoutConstraint.parentIdealSize = OptionalSizeF(parentSize); in MeasureDescription() 232 void GaugeLayoutAlgorithm::MeasureTitleChild(LayoutWrapper* layoutWrapper, const SizeF& parentSize) in MeasureTitleChild() argument 244 childLayoutConstraint.parentIdealSize = OptionalSizeF(parentSize); in MeasureTitleChild()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/ |
H A D | navigation_layout_algorithm.cpp | 317 auto frameSize = parentSize.ConvertToSizeT(); in RangeCalculation() 350 … auto minNavBarWidth = minNavBarWidthValue_.ConvertToPxWithSize(parentSize.Width().value_or(0.0f)); in RangeCalculation() 351 … auto maxNavBarWidth = maxNavBarWidthValue_.ConvertToPxWithSize(parentSize.Width().value_or(0.0f)); in RangeCalculation() 387 … auto minNavBarWidth = minNavBarWidthValue_.ConvertToPxWithSize(parentSize.Width().value_or(0.0f)); in CalculateNavigationWidth() 458 … auto minNavBarWidth = minNavBarWidthValue_.ConvertToPxWithSize(parentSize.Width().value_or(0.0f)); in SizeCalculation() 459 … auto maxNavBarWidth = maxNavBarWidthValue_.ConvertToPxWithSize(parentSize.Width().value_or(0.0f)); in SizeCalculation() 464 auto navBarWidth = navBarWidthValue.ConvertToPxWithSize(parentSize.Width().value_or(0.0f)); in SizeCalculation() 481 auto parentSize = CreateIdealSizeByPercentRef( in SizeCalculationSplit() local 484 … auto userSetNavBarWidth = navBarWidthValue.ConvertToPxWithSize(parentSize.Width().value_or(0.0f)); in SizeCalculationSplit() 486 … auto minNavBarWidth = minNavBarWidthValue_.ConvertToPxWithSize(parentSize.Width().value_or(0.0f)); in SizeCalculationSplit() [all …]
|
H A D | navigation_pattern.cpp | 1652 …auto parentSize = CreateIdealSize(constraint.value(), Axis::HORIZONTAL, MeasureType::MATCH_PARENT); in HandleDragUpdate() local 1654 …float minNavBarWidthPx = minNavBarWidthValue_.ConvertToPxWithSize(parentSize.Width().value_or(0.0f… in HandleDragUpdate() 1655 …float maxNavBarWidthPx = maxNavBarWidthValue_.ConvertToPxWithSize(parentSize.Width().value_or(0.0f… in HandleDragUpdate() 1656 …float minContentWidthPx = minContentWidthValue_.ConvertToPxWithSize(parentSize.Width().value_or(0.… in HandleDragUpdate()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stack/ |
H A D | stack_layout_algorithm.cpp | 71 const NG::SizeF& parentSize, const NG::SizeF& childSize, const Alignment& alignment) in CalculateStackAlignment() argument 74 offset.SetX((1.0 + alignment.GetHorizontal()) * (parentSize.Width() - childSize.Width()) / 2.0); in CalculateStackAlignment() 75 offset.SetY((1.0 + alignment.GetVertical()) * (parentSize.Height() - childSize.Height()) / 2.0); in CalculateStackAlignment()
|
H A D | stack_layout_algorithm.h | 36 const NG::SizeF& parentSize, const NG::SizeF& childSize, const Alignment& alignment);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/badge/ |
H A D | badge_layout_algorithm.cpp | 169 auto parentSize = geometryNode->GetFrameSize(); in GetTextDataOffset() local 170 auto width = parentSize.Width(); in GetTextDataOffset() 171 auto height = parentSize.Height(); in GetTextDataOffset() 334 auto parentSize = geometryNode->GetFrameSize(); in Layout() local 335 auto width = parentSize.Width(); in Layout()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | overlay_modifier.h | 170 …static OffsetF GetTextPosition(const SizeF& parentSize, const SizeF& childSize, OverlayOptions& ov… in GetTextPosition() argument 175 OffsetF const offset = Alignment::GetAlignPosition(parentSize, childSize, align); in GetTextPosition()
|
H A D | rosen_render_context.cpp | 3107 SizeF parentSize = parentNode->GetGeometryNode()->GetFrameSize(); in GetRectOffsetWithPositionEdges() local 3108 float parentWidth = parentSize.Width(); in GetRectOffsetWithPositionEdges() 3109 float parentHeight = parentSize.Height(); in GetRectOffsetWithPositionEdges()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/folder_stack/ |
H A D | folder_stack_layout_algorithm.cpp | 270 const NG::SizeF& parentSize, const NG::SizeF& childSize, const Alignment& alignment) in CalculateStackAlignment() argument 273 …offset.SetX((OFFSET_VALUE + alignment.GetHorizontal()) * (parentSize.Width() - childSize.Width()) … in CalculateStackAlignment() 274 …offset.SetY((OFFSET_VALUE + alignment.GetVertical()) * (parentSize.Height() - childSize.Height()) … in CalculateStackAlignment()
|
H A D | folder_stack_layout_algorithm.h | 61 const NG::SizeF& parentSize, const NG::SizeF& childSize, const Alignment& alignment);
|
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/modules/demuxer/ |
H A D | pts_and_index_conversion.cpp | 176 uint64_t parentSize = offset_ + static_cast<uint64_t>(boxSize); in ParseMoov() local 177 while (offset_ < parentSize) { in ParseMoov() 219 uint64_t parentSize = offset_ + static_cast<uint64_t>(boxSize); in ParseBox() local 220 while (offset_ < parentSize) { in ParseBox()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_input_response_area.cpp | 66 OffsetF TextInputResponseArea::GetChildOffset(SizeF parentSize, RectF contentRect, SizeF childSize,… in GetChildOffset() argument 68 auto offset = Alignment::GetAlignPosition(parentSize, childSize, Alignment::CENTER); in GetChildOffset() 75 return OffsetF(parentSize.Width() - childSize.Width() - nodeWidth, offset.GetY()); in GetChildOffset()
|
H A D | text_input_response_area.h | 45 …virtual OffsetF GetChildOffset(SizeF parentSize, RectF contentRect, SizeF childSize, float nodeWid…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/box/ |
H A D | render_box_base.cpp | 669 Size parentSize = selfLayoutSize_ - margin_.GetLayoutSize() - padding_.GetLayoutSize(); in CalculateChildPosition() local 670 parentSize -= GetBorderSize(); in CalculateChildPosition() 675 Alignment::GetAlignPosition(parentSize, child->GetLayoutSize(), align_); in CalculateChildPosition()
|