Home
last modified time | relevance | path

Searched refs:axis (Results 1 - 25 of 194) sorted by relevance

12345678

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_item_layout_property.cpp54 int32_t GridItemLayoutProperty::GetCustomCrossIndex(Axis axis) const in GetCustomCrossIndex()
56 if (axis == Axis::VERTICAL) { in GetCustomCrossIndex()
62 int32_t GridItemLayoutProperty::GetMainSpan(Axis axis) const in GetMainSpan()
64 if (axis == Axis::VERTICAL) { in GetMainSpan()
70 int32_t GridItemLayoutProperty::GetCrossSpan(Axis axis) const in GetCrossSpan()
72 if (axis == Axis::VERTICAL) { in GetCrossSpan()
78 int32_t GridItemLayoutProperty::GetMainStart(Axis axis) const in GetMainStart()
80 if (axis == Axis::VERTICAL) { in GetMainStart()
86 int32_t GridItemLayoutProperty::GetCrossStart(Axis axis) const in GetCrossStart()
88 if (axis in GetCrossStart()
[all...]
H A Dgrid_item_layout_property.h83 int32_t GetCustomCrossIndex(Axis axis) const;
84 int32_t GetMainSpan(Axis axis) const;
85 int32_t GetCrossSpan(Axis axis) const;
86 int32_t GetMainStart(Axis axis) const;
87 int32_t GetCrossStart(Axis axis) const;
88 int32_t GetMainEnd(Axis axis) const;
89 int32_t GetCrossEnd(Axis axis) const;
90 bool CheckWhetherCurrentItemAtExpectedPosition(Axis axis) const;
91 int32_t GetRealMainSpan(Axis axis) const;
92 int32_t GetRealCrossSpan(Axis axis) cons
113 SetAxis(Axis axis) SetAxis() argument
[all...]
H A Dgrid_layout_options.h29 int32_t GetCrossSize(Axis axis) const in GetCrossSize()
31 return axis == Axis::VERTICAL ? columns : rows; in GetCrossSize()
45 int32_t GetCrossSize(Axis axis) const in GetCrossSize()
47 return axis == Axis::VERTICAL ? columnSpan : rowSpan; in GetCrossSize()
H A Dgrid_utils.cpp60 float GridUtils::GetMainGap(const RefPtr<GridLayoutProperty>& props, const SizeF& frameSize, Axis axis) in GetMainGap() argument
62 return axis == Axis::HORIZONTAL ? GetColumnGap(props, frameSize.Width()) : GetRowGap(props, frameSize.Height()); in GetMainGap()
65 float GridUtils::GetCrossGap(const RefPtr<GridLayoutProperty>& props, const SizeF& frameSize, Axis axis) in GetCrossGap() argument
67 return axis == Axis::HORIZONTAL ? GetRowGap(props, frameSize.Height()) : GetColumnGap(props, frameSize.Width()); in GetCrossGap()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/
H A Dscrollable_utils.cpp37 Axis axis, RefPtr<GeometryNode>& childGeoNode, float offset, RefPtr<GeometryNode>& hostGeoNode) in OutOfBottomOrRightBoundary()
41 if (axis == Axis::VERTICAL) { in OutOfBottomOrRightBoundary()
43 } else if (axis == Axis::HORIZONTAL) { in OutOfBottomOrRightBoundary()
50 bool OutOfTopOrLeftBoundary(Axis axis, RefPtr<GeometryNode>& geoNode, float offset) in OutOfTopOrLeftBoundary() argument
54 if (axis == Axis::VERTICAL) { in OutOfTopOrLeftBoundary()
56 } else if (axis == Axis::HORIZONTAL) { in OutOfTopOrLeftBoundary()
63 int32_t GetScrollDownOrRightItemIndex(Axis axis, float offset, int32_t start, int32_t end, RefPtr<FrameNode>& host) in GetScrollDownOrRightItemIndex() argument
73 if (!OutOfBottomOrRightBoundary(axis, childGeoNode, offset, hostGeoNode)) { in GetScrollDownOrRightItemIndex()
80 int32_t GetScrollUpOrLeftItemIndex(Axis axis, float offset, int32_t start, int32_t end, RefPtr<FrameNode>& host) in GetScrollUpOrLeftItemIndex() argument
89 if (!OutOfTopOrLeftBoundary(axis, geoNod in GetScrollUpOrLeftItemIndex()
36 OutOfBottomOrRightBoundary( Axis axis, RefPtr<GeometryNode>& childGeoNode, float offset, RefPtr<GeometryNode>& hostGeoNode) OutOfBottomOrRightBoundary() argument
106 CheckHeightExpansion(const RefPtr<LayoutProperty>& layoutProps, Axis axis) CheckHeightExpansion() argument
121 RecycleItemsOutOfBoundary( Axis axis, float offset, int32_t start, int32_t end, LayoutWrapper* wrapper) RecycleItemsOutOfBoundary() argument
[all...]
H A Dscrollable_utils.h19 #include "base/geometry/axis.h"
28 * @param axis The scrollable axis.
31 static float CheckHeightExpansion(const RefPtr<LayoutProperty>& layoutProps, Axis axis);
36 * @param axis scroll direction
42 static void RecycleItemsOutOfBoundary(Axis axis, float offset, int32_t start, int32_t end, LayoutWrapper* wrapper);
/foundation/arkui/ace_engine/frameworks/core/gestures/
H A Dvelocity_tracker.cpp22 void CheckExtremePoint(const LeastSquareImpl& axis, double extremX, uint32_t valSize) in CheckExtremePoint() argument
24 const auto& x = axis.GetXVals(); in CheckExtremePoint()
25 const auto& y = axis.GetYVals(); in CheckExtremePoint()
26 auto count = axis.GetTrackNum(); in CheckExtremePoint()
32 // check if extrem point exists between axis's points. in CheckExtremePoint()
62 double GetLinearSlope(const LeastSquareImpl& axis) in GetLinearSlope() argument
64 const auto& x = axis.GetXVals(); in GetLinearSlope()
65 const auto& y = axis.GetYVals(); in GetLinearSlope()
66 auto count = axis.GetTrackNum(); in GetLinearSlope()
88 void CorrectMonotonicAxisVelocity(const LeastSquareImpl& axis, doubl argument
107 UpdateAxisVelocity(LeastSquareImpl& axis) UpdateAxisVelocity() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dmeasure_utils.cpp240 float GetMainAxisOffset(const OffsetF& offset, Axis axis) in GetMainAxisOffset() argument
242 return axis == Axis::HORIZONTAL ? offset.GetX() : offset.GetY(); in GetMainAxisOffset()
245 float GetMainAxisSize(const SizeF& size, Axis axis) in GetMainAxisSize() argument
247 return axis == Axis::HORIZONTAL ? size.Width() : size.Height(); in GetMainAxisSize()
250 float GetCrossAxisSize(const SizeF& size, Axis axis) in GetCrossAxisSize() argument
252 return axis == Axis::HORIZONTAL ? size.Height() : size.Width(); in GetCrossAxisSize()
255 void SetCrossAxisSize(float value, Axis axis, SizeF& size) in SetCrossAxisSize() argument
257 if (axis == Axis::VERTICAL) { in SetCrossAxisSize()
264 std::optional<float> GetMainAxisSize(const OptionalSizeF& size, Axis axis) in GetMainAxisSize() argument
266 return axis in GetMainAxisSize()
269 GetCrossAxisSize(const OptionalSizeF& size, Axis axis) GetCrossAxisSize() argument
274 SetCrossAxisSize(float value, Axis axis, OptionalSizeF& size) SetCrossAxisSize() argument
283 SetMainAxisSize(float value, Axis axis, OptionalSizeF& size) SetMainAxisSize() argument
292 CreateIdealSize(const LayoutConstraintF& layoutConstraint, Axis axis, MeasureType measureType, bool usingMaxSize) CreateIdealSize() argument
303 CreateIdealSize(const LayoutConstraintF& layoutConstraint, Axis axis, MeasureType measureType) CreateIdealSize() argument
434 CreateIdealSizeByPercentRef( const LayoutConstraintF& layoutConstraint, Axis axis, MeasureType measureType, bool needToConstrain, const std::unique_ptr<MeasureProperty>& rawConstraint) CreateIdealSizeByPercentRef() argument
[all...]
H A Dmeasure_utils.h80 float GetCrossAxisSize(const SizeF& size, Axis axis);
82 float GetMainAxisOffset(const OffsetF& offset, Axis axis);
84 float GetMainAxisSize(const SizeF& size, Axis axis);
86 void SetCrossAxisSize(float value, Axis axis, SizeF& size);
88 std::optional<float> GetCrossAxisSize(const OptionalSizeF& size, Axis axis);
90 std::optional<float> GetMainAxisSize(const OptionalSizeF& size, Axis axis);
92 void SetCrossAxisSize(float value, Axis axis, OptionalSizeF& size);
94 void SetMainAxisSize(float value, Axis axis, OptionalSizeF& size);
107 * @param axis the axis o
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/
H A Dwater_flow_layout_property.h50 auto axis = propWaterflowDirection_.value_or(FlexDirection::COLUMN); in GetAxis() local
51 return (axis == FlexDirection::COLUMN || axis == FlexDirection::COLUMN_REVERSE) ? Axis::VERTICAL in GetAxis()
57 auto axis = propWaterflowDirection_.value_or(FlexDirection::COLUMN); in IsReverse() local
59 return (!isRtl && (axis == FlexDirection::COLUMN_REVERSE || axis == FlexDirection::ROW_REVERSE)) || in IsReverse()
60 (isRtl && (axis == FlexDirection::COLUMN_REVERSE || axis == FlexDirection::ROW)); in IsReverse()
65 auto axis = propWaterflowDirection_.value_or(FlexDirection::COLUMN); in IsVerticalReverse() local
66 return axis in IsVerticalReverse()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/
H A Dscroll_bar_layout_algorithm.cpp23 void UpdateChildConstraint(Axis axis, const OptionalSizeF& selfIdealSize, LayoutConstraintF& contentConstraint) in UpdateChildConstraint() argument
26 if (axis == Axis::VERTICAL) { in UpdateChildConstraint()
33 void UpdateIdealSize(Axis axis, const SizeF& childSize, const OptionalSizeF& parentSize, OptionalSizeF& idealSize) in UpdateIdealSize() argument
39 if (axis == Axis::HORIZONTAL) { in UpdateIdealSize()
71 auto axis = layoutProperty->GetAxis().value_or(Axis::VERTICAL); in Measure() local
73 auto idealSize = CreateIdealSize(constraint.value(), axis, MeasureType::MATCH_CONTENT); in Measure()
74 auto parentSize = CreateIdealSize(constraint.value(), axis, MeasureType::MATCH_PARENT); in Measure()
81 UpdateChildConstraint(axis, idealSize, childLayoutConstraint); in Measure()
88 UpdateIdealSize(axis, size, parentSize, idealSize); in Measure()
95 UpdateIdealSize(axis, childSiz in Measure()
109 auto axis = layoutProperty->GetAxis().value_or(Axis::VERTICAL); Layout() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/
H A Dscroll_layout_algorithm.cpp23 void UpdateChildConstraint(Axis axis, const OptionalSizeF& selfIdealSize, LayoutConstraintF& contentConstraint) in UpdateChildConstraint() argument
26 if (axis == Axis::VERTICAL) { in UpdateChildConstraint()
39 auto axis = layoutProperty->GetAxis().value_or(Axis::VERTICAL); in Measure() local
41 auto idealSize = CreateIdealSize(constraint.value(), axis, MeasureType::MATCH_CONTENT); in Measure()
46 UpdateChildConstraint(axis, idealSize, childLayoutConstraint); in Measure()
78 UseInitialOffset(axis, selfSize, layoutWrapper); in Measure()
81 void ScrollLayoutAlgorithm::UseInitialOffset(Axis axis, SizeF selfSize, LayoutWrapper* layoutWrapper) in UseInitialOffset() argument
89 if (axis == Axis::VERTICAL) { in UseInitialOffset()
106 auto axis = layoutProperty->GetAxis().value_or(Axis::VERTICAL); in Layout() local
122 scrollableDistance_ = GetMainAxisSize(childSize, axis) in Layout()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/
H A Dwater_flow_layout_utils.h32 Axis axis = Axis::VERTICAL; member
43 static std::pair<SizeF, bool> PreMeasureSelf(LayoutWrapper* wrapper, Axis axis);
50 static float MeasureFooter(LayoutWrapper* layoutWrapper, Axis axis);
61 static void UpdateItemIdealSize(const RefPtr<LayoutWrapper>& item, Axis axis, float userHeight);
H A Dwater_flow_layout_utils.cpp71 params.axis == Axis::VERTICAL ? SizeF(params.crossSize, itemMainSize) : SizeF(itemMainSize, params.crossSize); in CreateChildConstraint()
74 itemConstraint.maxSize.SetMainSize(Infinity<float>(), params.axis); in CreateChildConstraint()
126 std::pair<SizeF, bool> WaterFlowLayoutUtils::PreMeasureSelf(LayoutWrapper* wrapper, Axis axis) in PreMeasureSelf() argument
129 auto size = CreateIdealSize(props->GetLayoutConstraint().value(), axis, props->GetMeasureType(), true); in PreMeasureSelf()
130 auto matchChildren = GreaterOrEqualToInfinity(GetMainAxisSize(size, axis)); in PreMeasureSelf()
139 float WaterFlowLayoutUtils::MeasureFooter(LayoutWrapper* wrapper, Axis axis) in MeasureFooter() argument
148 return GetMainAxisSize(itemSize, axis); in MeasureFooter()
165 void WaterFlowLayoutUtils::UpdateItemIdealSize(const RefPtr<LayoutWrapper>& item, Axis axis, float userHeight) in UpdateItemIdealSize() argument
172 crossSize = axis == Axis::VERTICAL ? layoutConstraint->selfIdealSize->Width() in UpdateItemIdealSize()
175 props->UpdateUserDefinedIdealSize(axis in UpdateItemIdealSize()
[all...]
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Doffset_t.h24 #include "base/geometry/axis.h"
35 OffsetT(T crossOffset, T mainOffset, Axis axis) in OffsetT() argument
37 if (axis == Axis::HORIZONTAL) { in OffsetT()
62 T GetMainOffset(Axis axis) const in GetMainOffset()
64 return axis == Axis::HORIZONTAL ? x_ : y_; in GetMainOffset()
67 T GetCrossOffset(Axis axis) const in GetCrossOffset()
69 return axis == Axis::HORIZONTAL ? y_ : x_; in GetCrossOffset()
H A Dsize_t.h25 #include "base/geometry/axis.h"
37 SizeT(T crossSize, T mainSize, Axis axis) in SizeT() argument
39 if (axis == Axis::HORIZONTAL) { in SizeT()
64 T MainSize(Axis axis) const in MainSize()
66 return axis == Axis::HORIZONTAL ? width_ : height_; in MainSize()
69 T CrossSize(Axis axis) const in CrossSize()
71 return axis == Axis::HORIZONTAL ? height_ : width_; in CrossSize()
84 void SetMainSize(T mainSize, Axis axis) in SetMainSize() argument
86 axis == Axis::HORIZONTAL ? width_ = mainSize : height_ = mainSize; in SetMainSize()
89 void SetCrossSize(T crossSize, Axis axis) in SetCrossSize() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_adaptive/
H A Dgrid_adaptive_layout_algorithm.cpp26 auto axis = (layoutDirection == FlexDirection::ROW || layoutDirection == FlexDirection::ROW_REVERSE) in Measure() local
30 CreateIdealSize(gridLayoutProperty->GetLayoutConstraint().value(), axis, MeasureType::MATCH_CONTENT); in Measure()
45 if (axis == Axis::HORIZONTAL) { in Measure()
66 auto mainGap = (axis == Axis::HORIZONTAL) ? columnsGap : rowsGap; in Measure()
67 auto crossGap = (axis == Axis::HORIZONTAL) ? rowsGap : columnsGap; in Measure()
68 mainCount_ = std::floor((idealSize.MainSize(axis).value_or(maxSize.MainSize(axis)) + mainGap) / in Measure()
69 (gridCellSize_.MainSize(axis) + mainGap)); in Measure()
71 crossCount_ = std::floor((idealSize.CrossSize(axis).value_or(Infinity<float>()) + crossGap) / in Measure()
72 (gridCellSize_.CrossSize(axis) in Measure()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_typeface.cpp44 uint32_t axis; member
203 const char* axis, float value) in OH_Drawing_FontArgumentsAddVariation()
205 if (axis == nullptr || strlen(axis) != VARIATION_AXIS_LENGTH) { in OH_Drawing_FontArgumentsAddVariation()
213 {SkSetFourByteTag(axis[AXIS_TAG_ZERO], axis[AXIS_TAG_ONE], axis[AXIS_TAG_TWO], axis[AXIS_TAG_THREE]), value}); in OH_Drawing_FontArgumentsAddVariation()
202 OH_Drawing_FontArgumentsAddVariation(OH_Drawing_FontArguments* cFontArguments, const char* axis, float value) OH_Drawing_FontArgumentsAddVariation() argument
/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Dscroll_fade_effect.cpp77 void ScrollFadeEffect::SetPaintDirection(Axis axis, double overScroll) in SetPaintDirection() argument
82 auto const isVertical = axis == Axis::VERTICAL; in SetPaintDirection()
103 void ScrollFadeEffect::HandleOverScroll(Axis axis, double overScroll, const Size& viewPort) in HandleOverScroll() argument
109 SetPaintDirection(axis, overScroll); in HandleOverScroll()
126 axis == Axis::VERTICAL in HandleOverScroll()
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dclip_path.cpp169 std::vector<Dimension> axis; in CreateCircle() local
170 StringUtils::SplitStr(StringUtils::TrimStr(data.substr(atIndex + 2)), " ", axis); in CreateCircle() local
171 if (axis.size() == 1) { in CreateCircle()
172 circle->SetAxisX(axis.at(0)); in CreateCircle()
174 if (axis.size() >= 2) { in CreateCircle()
175 circle->SetAxisX(axis.at(0)); in CreateCircle()
176 circle->SetAxisY(axis.at(1)); in CreateCircle()
191 std::vector<Dimension> axis; in CreateEllipse() local
192 StringUtils::SplitStr(StringUtils::TrimStr(data.substr(atIndex + 2)), " ", axis); in CreateEllipse() local
193 if (axis in CreateEllipse()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/scroll_bar/
H A Dscroll_bar_test_ng.h46 void CreateScroll(float mainSize = CONTENT_MAIN_SIZE, Axis axis = Axis::VERTICAL);
47 void CreateContent(float mainSize = CONTENT_MAIN_SIZE, Axis axis = Axis::VERTICAL);
48 void CreateScrollBar(bool infoflag, bool proxyFlag, Axis axis, DisplayMode displayMode);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/effect/
H A Dscroll_fade_effect.cpp75 void ScrollFadeEffect::SetPaintDirection(Axis axis, float overScroll, bool isNotPositiveScrollableDistance) in SetPaintDirection() argument
78 auto const isVertical = axis == Axis::VERTICAL; in SetPaintDirection()
127 void ScrollFadeEffect::HandleOverScroll(Axis axis, float overScroll, const SizeF& viewPort, in HandleOverScroll() argument
134 SetPaintDirection(axis, overScroll, isNotPositiveScrollableDistance); in HandleOverScroll()
150 axis == Axis::VERTICAL in HandleOverScroll()
/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
H A Dscrollable_event.h22 #include "base/geometry/axis.h"
45 explicit ScrollableEvent(Axis axis) : axis_(axis) {}; in ScrollableEvent() argument
53 void SetAxis(Axis axis) in SetAxis() argument
55 axis_ = axis; in SetAxis()
57 scrollable_->SetAxis(axis); in SetAxis()
218 void AddScrollEdgeEffect(const Axis& axis, RefPtr<ScrollEdgeEffect>& effect);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_utils.h21 #include "base/geometry/axis.h"
65 auto axis = property->GetDirection().value_or(Axis::HORIZONTAL); in CreateChildConstraint() local
70 auto parentMainSize = idealSize.MainSize(axis); in CreateChildConstraint()
80 if (!idealSize.IsNonPositive() && ((axis == Axis::HORIZONTAL && idealSize.Width().has_value()) || in CreateChildConstraint()
81 (axis == Axis::VERTICAL && idealSize.Height().has_value()))) { in CreateChildConstraint()
82 auto length = axis == Axis::HORIZONTAL ? idealSize.Width().value() : idealSize.Height().value(); in CreateChildConstraint()
101 axis == Axis::HORIZONTAL ? childSelfIdealSize.SetWidth(childCalcIdealLength) in CreateChildConstraint()
/foundation/arkui/ace_engine/frameworks/core/components/tip/
H A Dtip_component.h52 void SetDirection(Axis axis) in SetDirection() argument
54 axis_ = axis; in SetDirection()

Completed in 233 milliseconds

12345678