/foundation/arkui/ace_engine/test/unittest/core/pattern/scrollable/ |
H A D | scrollable_utils_test.cpp | 60 if (axis == Axis::HORIZONTAL) { in FillChildren() 96 ScrollableUtils::RecycleItemsOutOfBoundary(Axis::HORIZONTAL, 0, 0, 100, Referenced::RawPtr(scrollable_)); in HWTEST_F() 108 * @tc.desc: Test when axis is Axis::HORIZONTAL 113 FillChildren(10, Axis::HORIZONTAL, { 100, 100 }); in HWTEST_F() 119 ScrollableUtils::RecycleItemsOutOfBoundary(Axis::HORIZONTAL, 100, 0, 9, Referenced::RawPtr(scrollable_)); in HWTEST_F() 127 * @tc.desc: Test when axis is Axis::HORIZONTAL 132 FillChildren(10, Axis::HORIZONTAL, { 100, 100 }); in HWTEST_F() 138 ScrollableUtils::RecycleItemsOutOfBoundary(Axis::HORIZONTAL, 101, 0, 9, Referenced::RawPtr(scrollable_)); in HWTEST_F() 146 * @tc.desc: Test when axis is Axis::HORIZONTAL 151 FillChildren(10, Axis::HORIZONTAL, { 10 in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
H A D | tabs_layout_algorithm.cpp | 31 auto axis = layoutProperty->GetAxis().value_or(Axis::HORIZONTAL); in Measure() 33 auto idealSize = CreateIdealSizeByPercentRef(constraint.value(), Axis::HORIZONTAL, in Measure() 81 } else if ((axis == Axis::HORIZONTAL) && layoutProperty->GetHeightAutoValue(false)) { in Measure() 161 if (axis == Axis::HORIZONTAL) { in LayoutOffsetList() 162 float barPosX = (frameSize.MainSize(Axis::HORIZONTAL) - tabBarFrameSize.MainSize(Axis::HORIZONTAL)) / 2; in LayoutOffsetList() 180 dividerOffset = OffsetF(tabBarFrameSize.MainSize(Axis::HORIZONTAL) + padding.Offset().GetX(), in LayoutOffsetList() 182 swiperOffset = barOverlap ? padding.Offset() : OffsetF(tabBarFrameSize.MainSize(Axis::HORIZONTAL) + in LayoutOffsetList() 185 tabBarOffset = OffsetF(frameSize.MainSize(Axis::HORIZONTAL) - tabBarFrameSize.MainSize(Axis::HORIZONTAL) in LayoutOffsetList() [all...] |
H A D | tab_content_node.cpp | 155 GetTabBarAxis() == Axis::HORIZONTAL ? tabTheme->GetSubTabBoardTextOnColor() : tabTheme->GetSubTabTextOnColor(); in ToJsonValue() 181 return Axis::HORIZONTAL; in GetTabBarAxis() 184 CHECK_NULL_RETURN(columnNode, Axis::HORIZONTAL); in GetTabBarAxis() 186 CHECK_NULL_RETURN(tabBarNode, Axis::HORIZONTAL); in GetTabBarAxis() 188 CHECK_NULL_RETURN(tabBarLayoutProperty, Axis::HORIZONTAL); in GetTabBarAxis() 189 return tabBarLayoutProperty->GetAxis().value_or(Axis::HORIZONTAL); in GetTabBarAxis() 206 } else if (layoutMode == LayoutMode::HORIZONTAL) { in ConvertLayoutModeToString() 207 return "LayoutMode.HORIZONTAL"; in ConvertLayoutModeToString()
|
/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/ |
H A D | svg_rect.cpp | 82 rx = ConvertDimensionToPx(component_->GetRx(), viewPort, SvgLengthType::HORIZONTAL); in AsPath() 93 ry = ConvertDimensionToPx(component_->GetRx(), viewPort, SvgLengthType::HORIZONTAL); in AsPath() 98 SkRect::MakeXYWH(ConvertDimensionToPx(component_->GetX(), viewPort, SvgLengthType::HORIZONTAL), in AsPath() 100 ConvertDimensionToPx(component_->GetWidth(), viewPort, SvgLengthType::HORIZONTAL), in AsPath() 106 RSRoundRect roundRect(RSRect(ConvertDimensionToPx(component_->GetX(), viewPort, SvgLengthType::HORIZONTAL), in AsPath() 108 ConvertDimensionToPx(component_->GetWidth() + component_->GetX(), viewPort, SvgLengthType::HORIZONTAL), in AsPath()
|
H A D | svg_ellipse.cpp | 83 rx = ConvertDimensionToPx(component_->GetRx(), viewPort, SvgLengthType::HORIZONTAL); in AsPath() 94 ry = ConvertDimensionToPx(component_->GetRx(), viewPort, SvgLengthType::HORIZONTAL); in AsPath() 99 SkRect rect = SkRect::MakeXYWH(ConvertDimensionToPx(component_->GetCx(), viewPort, SvgLengthType::HORIZONTAL) - rx, in AsPath() 104 RSRect rect = RSRect(ConvertDimensionToPx(component_->GetCx(), viewPort, SvgLengthType::HORIZONTAL) - rx, in AsPath() 106 rx + ConvertDimensionToPx(component_->GetCx(), viewPort, SvgLengthType::HORIZONTAL), in AsPath()
|
H A D | svg_line.cpp | 76 path.moveTo(ConvertDimensionToPx(component_->GetX1(), viewPort, SvgLengthType::HORIZONTAL), in AsPath() 78 path.lineTo(ConvertDimensionToPx(component_->GetX2(), viewPort, SvgLengthType::HORIZONTAL), in AsPath() 86 path.MoveTo(ConvertDimensionToPx(component_->GetX1(), viewPort, SvgLengthType::HORIZONTAL), in AsPath() 88 path.LineTo(ConvertDimensionToPx(component_->GetX2(), viewPort, SvgLengthType::HORIZONTAL), in AsPath()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_rect.cpp | 37 rx = ConvertDimensionToPx(rectAttr_.rx, viewPort, SvgLengthType::HORIZONTAL); in AsPath() 48 ry = ConvertDimensionToPx(rectAttr_.rx, viewPort, SvgLengthType::HORIZONTAL); in AsPath() 53 SkRect::MakeXYWH(ConvertDimensionToPx(rectAttr_.x, viewPort, SvgLengthType::HORIZONTAL), in AsPath() 55 ConvertDimensionToPx(rectAttr_.width, viewPort, SvgLengthType::HORIZONTAL), in AsPath() 61 RSScalar left = ConvertDimensionToPx(rectAttr_.x, viewPort, SvgLengthType::HORIZONTAL); in AsPath() 63 RSScalar width = ConvertDimensionToPx(rectAttr_.width, viewPort, SvgLengthType::HORIZONTAL); in AsPath()
|
H A D | svg_line.cpp | 36 path.moveTo(ConvertDimensionToPx(lineAttr_.x1, viewPort, SvgLengthType::HORIZONTAL), in AsPath() 38 path.lineTo(ConvertDimensionToPx(lineAttr_.x2, viewPort, SvgLengthType::HORIZONTAL), in AsPath() 46 path.MoveTo(ConvertDimensionToPx(lineAttr_.x1, viewPort, SvgLengthType::HORIZONTAL), in AsPath() 48 path.LineTo(ConvertDimensionToPx(lineAttr_.x2, viewPort, SvgLengthType::HORIZONTAL), in AsPath()
|
H A D | svg_ellipse.cpp | 40 rx = ConvertDimensionToPx(ellipseAttr_.rx, viewPort, SvgLengthType::HORIZONTAL); in AsPath() 51 ry = ConvertDimensionToPx(ellipseAttr_.rx, viewPort, SvgLengthType::HORIZONTAL); in AsPath() 55 SkRect rect = SkRect::MakeXYWH(ConvertDimensionToPx(ellipseAttr_.cx, viewPort, SvgLengthType::HORIZONTAL) - rx, in AsPath() 59 RSScalar left = ConvertDimensionToPx(ellipseAttr_.cx, viewPort, SvgLengthType::HORIZONTAL) - rx; in AsPath()
|
/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | ui_scroll_view.h | 180 direction_ = state ? HORIZONTAL : HORIZONTAL_NOR_VERTICAL; in SetHorizontalScrollState() 193 return (direction_ == HORIZONTAL || direction_ == HORIZONTAL_AND_VERTICAL); in GetHorizontalScrollState() 206 if (direction_ == HORIZONTAL || direction_ == HORIZONTAL_AND_VERTICAL) { in SetVerticalScrollState() 207 direction_ = state ? HORIZONTAL_AND_VERTICAL : HORIZONTAL; in SetVerticalScrollState()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/ |
H A D | slider_layout_algorithm.cpp | 26 if (direction == Axis::HORIZONTAL) { in JudgeTrackness() 81 Axis direction = sliderLayoutProperty->GetDirection().value_or(Axis::HORIZONTAL); in MeasureContent() 82 if (direction == Axis::HORIZONTAL && GreaterOrEqualToInfinity(width)) { in MeasureContent() 97 ? thickness.ConvertToPxWithSize(direction == Axis::HORIZONTAL ? height : width) in MeasureContent() 112 float sliderLength = direction == Axis::HORIZONTAL ? width : height; in MeasureContent() 113 return direction == Axis::HORIZONTAL ? SizeF(sliderLength, sliderWidth) : SizeF(sliderWidth, sliderLength); in MeasureContent() 120 auto blockWidth = direction == Axis::HORIZONTAL ? blockSize_.Height() : blockSize_.Width(); in CalculateSliderWidth() 121 auto blockHotWidth = direction == Axis::HORIZONTAL ? blockHotSize_.Height() : blockHotSize_.Width(); in CalculateSliderWidth() 128 sliderWidth = std::clamp(sliderWidth, 0.0f, direction == Axis::HORIZONTAL ? height : width); in CalculateSliderWidth() 203 auto axis = sliderLayoutProperty->GetDirection().value_or(Axis::HORIZONTAL); in Layout() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/svg/ |
H A D | rosen_render_svg_circle.cpp | 51 path.addCircle(ConvertDimensionToPx(cx_, LengthType::HORIZONTAL), ConvertDimensionToPx(cy_, LengthType::VERTICAL), in Paint() 58 path.AddCircle(ConvertDimensionToPx(cx_, LengthType::HORIZONTAL), ConvertDimensionToPx(cy_, LengthType::VERTICAL), in Paint() 85 path.addCircle(ConvertDimensionToPx(cx_, LengthType::HORIZONTAL), ConvertDimensionToPx(cy_, LengthType::VERTICAL), in PaintDirectly() 95 path.AddCircle(ConvertDimensionToPx(cx_, LengthType::HORIZONTAL), ConvertDimensionToPx(cy_, LengthType::VERTICAL), in PaintDirectly() 117 path.addCircle(ConvertDimensionToPx(cx_, LengthType::HORIZONTAL), ConvertDimensionToPx(cy_, LengthType::VERTICAL), in GetPaintBounds() 123 path.AddCircle(ConvertDimensionToPx(cx_, LengthType::HORIZONTAL), ConvertDimensionToPx(cy_, LengthType::VERTICAL), in GetPaintBounds()
|
H A D | rosen_render_svg_rect.cpp | 127 rx = ConvertDimensionToPx(rx_, LengthType::HORIZONTAL); in GetPath() 138 ry = ConvertDimensionToPx(rx_, LengthType::HORIZONTAL); in GetPath() 144 SkRect::MakeXYWH(ConvertDimensionToPx(x_, LengthType::HORIZONTAL), in GetPath() 145 ConvertDimensionToPx(y_, LengthType::VERTICAL), ConvertDimensionToPx(width_, LengthType::HORIZONTAL), in GetPath() 151 RSRect(ConvertDimensionToPx(x_, LengthType::HORIZONTAL), in GetPath() 153 ConvertDimensionToPx(width_ + x_, LengthType::HORIZONTAL), in GetPath()
|
H A D | rosen_render_svg_ellipse.cpp | 127 rx = ConvertDimensionToPx(rx_, LengthType::HORIZONTAL); in GetPath() 138 ry = ConvertDimensionToPx(rx_, LengthType::HORIZONTAL); in GetPath() 142 SkRect rect = SkRect::MakeXYWH(ConvertDimensionToPx(cx_, LengthType::HORIZONTAL) - rx, in GetPath() 146 auto rect = RSRect(ConvertDimensionToPx(cx_, LengthType::HORIZONTAL) - rx, in GetPath() 148 rx + ConvertDimensionToPx(cx_, LengthType::HORIZONTAL), in GetPath()
|
H A D | rosen_render_svg_line.cpp | 121 path.moveTo(ConvertDimensionToPx(x1_, LengthType::HORIZONTAL), ConvertDimensionToPx(y1_, LengthType::VERTICAL)); in GetPath() 122 path.lineTo(ConvertDimensionToPx(x2_, LengthType::HORIZONTAL), ConvertDimensionToPx(y2_, LengthType::VERTICAL)); in GetPath() 127 path.MoveTo(ConvertDimensionToPx(x1_, LengthType::HORIZONTAL), ConvertDimensionToPx(y1_, LengthType::VERTICAL)); in GetPath() 128 path.LineTo(ConvertDimensionToPx(x2_, LengthType::HORIZONTAL), ConvertDimensionToPx(y2_, LengthType::VERTICAL)); in GetPath()
|
H A D | rosen_render_svg_use.cpp | 32 { ConvertDimensionToPx(x_, LengthType::HORIZONTAL), ConvertDimensionToPx(y_, LengthType::VERTICAL) }); in Paint() 66 ConvertDimensionToPx(x_, LengthType::HORIZONTAL), ConvertDimensionToPx(y_, LengthType::VERTICAL)); in PaintDirectly() 69 ConvertDimensionToPx(x_, LengthType::HORIZONTAL), ConvertDimensionToPx(y_, LengthType::VERTICAL)); in PaintDirectly()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/scroll_bar/ |
H A D | scroll_bar_layout_test_ng.cpp | 29 * @tc.desc: Test scrollBar layout in HORIZONTAL 42 CreateScrollBar(true, true, Axis::HORIZONTAL, DisplayMode::ON); in HWTEST_F() 43 SetSize(Axis::HORIZONTAL, CalcLength(scrollBarMainSize), CalcLength(scrollBarCrossSize)); in HWTEST_F() 56 CreateScrollBar(true, true, Axis::HORIZONTAL, DisplayMode::ON); in HWTEST_F() 59 SetSize(Axis::HORIZONTAL, CalcLength(0), CalcLength(0)); in HWTEST_F() 71 CreateScrollBar(true, true, Axis::HORIZONTAL, DisplayMode::ON); in HWTEST_F() 73 SetSize(Axis::HORIZONTAL, CalcLength(SCROLL_BAR_CHILD_WIDTH), CalcLength(SCROLL_BAR_CHILD_HEIGHT)); in HWTEST_F() 235 layoutProperty_->UpdateAxis(Axis::HORIZONTAL); in HWTEST_F()
|
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_swipe_view.cpp | 73 if (direction_ == HORIZONTAL) { in MoveHeadOrTailChild() 164 if (direction_ == HORIZONTAL) { in OnDragEvent() 179 if (direction_ == HORIZONTAL) { in OnDragEndEvent() 203 if (direction_ == HORIZONTAL) { in OnRotateEvent() 218 if (direction_ == HORIZONTAL) { in OnRotateEndEvent() 223 if (direction_ == HORIZONTAL) { in OnRotateEndEvent() 277 if (direction_ == HORIZONTAL) { in SwitchToPage() 320 if (direction_ == HORIZONTAL) { in SortChild() 329 if (direction_ == HORIZONTAL) { in SortChild() 489 if (direction_ == HORIZONTAL) { in IsNeedLoop() [all...] |
H A D | ui_scroll_view.cpp | 74 if ((direction_ == HORIZONTAL || direction_ == HORIZONTAL_AND_VERTICAL) && xDistance != 0) { in Drag() 102 if (direction_ == HORIZONTAL) { in OnRotateEvent() 111 if (direction_ == HORIZONTAL) { in OnRotateEvent() 151 if (direction_ == HORIZONTAL) { in SetIsEdge() 166 if ((direction_ == HORIZONTAL || direction_ == HORIZONTAL_AND_VERTICAL) && xDistance != 0) { in ScrollBy() 187 !(direction_ == HORIZONTAL || direction_ == HORIZONTAL_AND_VERTICAL)) { in DragXInner()
|
/foundation/arkui/ace_engine/frameworks/core/components/wrap/ |
H A D | render_wrap.cpp | 125 if ((direction_ == WrapDirection::HORIZONTAL && !isLeftToRight_) || in PerformLayout() 148 if ((direction_ == WrapDirection::HORIZONTAL && !isLeftToRight_) || in PerformLayout() 306 (direction_ == WrapDirection::HORIZONTAL ? Size(stretchSize, item->GetLayoutSize().Height()) in HandleDialogStretch() 315 totalCrossLength_ += direction_ == WrapDirection::HORIZONTAL ? item->GetLayoutSize().Height() in HandleDialogStretch() 323 totalCrossLength_ = std::max(direction_ == WrapDirection::HORIZONTAL ? item->GetLayoutSize().Height() in HandleDialogStretch() 336 if (direction_ == WrapDirection::HORIZONTAL) { in HandleDialogStretch() 345 return direction_ == WrapDirection::HORIZONTAL || direction_ == WrapDirection::HORIZONTAL_REVERSE in GetMainItemLength() 359 if (direction_ == WrapDirection::HORIZONTAL || direction_ == WrapDirection::HORIZONTAL_REVERSE) { in PerformLayoutInitialize() 371 if (direction_ == WrapDirection::HORIZONTAL || direction_ == WrapDirection::HORIZONTAL_REVERSE) { in GetLeftSize() 387 bool isHorizontal = direction_ == WrapDirection::HORIZONTAL || direction in LayoutWholeWrap() [all...] |
/foundation/arkui/ace_engine/frameworks/core/gestures/ |
H A D | velocity_tracker.h | 86 case Axis::HORIZONTAL: in GetMainAxisPos() 100 case Axis::HORIZONTAL: in GetMainAxisDeltaPos() 115 case Axis::HORIZONTAL: in GetMainAxisVelocity()
|
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
H A D | offset_t.h | 37 if (axis == Axis::HORIZONTAL) { in OffsetT() 64 return axis == Axis::HORIZONTAL ? x_ : y_; in GetMainOffset() 69 return axis == Axis::HORIZONTAL ? y_ : x_; in GetCrossOffset()
|
/foundation/window/window_manager/wmserver/test/unittest/ |
H A D | window_manager_service_utils_test.cpp | 55 bool ret = WmsUtils::IsFixedOrientation(Orientation::HORIZONTAL, WindowMode::WINDOW_MODE_FULLSCREEN, 0); in HWTEST_F() 88 bool ret = WmsUtils::IsFixedOrientation(Orientation::HORIZONTAL, WindowMode::WINDOW_MODE_FULLSCREEN, in HWTEST_F() 100 bool ret = WmsUtils::IsFixedOrientation(Orientation::HORIZONTAL, WindowMode::WINDOW_MODE_FLOATING, 0); in HWTEST_F() 106 * @tc.desc: requestOrientation is not HORIZONTAL
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_adaptive/ |
H A D | grid_adaptive_layout_algorithm.cpp | 27 ? Axis::HORIZONTAL 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() 78 auto rowCount = axis == Axis::HORIZONTAL ? crossCount_ : mainCount_; in Measure() 79 auto columnCount = axis == Axis::HORIZONTAL ? mainCount_ : crossCount_; in Measure()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/dot_indicator/ |
H A D | dot_indicator_modifier.cpp | 99 axis_ == Axis::HORIZONTAL ? contentProperty.indicatorMargin.GetX() : contentProperty.indicatorMargin.GetY(); in PaintBackground() 101 axis_ == Axis::HORIZONTAL ? contentProperty.indicatorMargin.GetY() : contentProperty.indicatorMargin.GetX(); in PaintBackground() 103 float rectRight = rectLeft + (axis_ == Axis::HORIZONTAL ? rectWidth : rectHeight); in PaintBackground() 104 float rectBottom = rectTop + (axis_ == Axis::HORIZONTAL ? rectHeight : rectWidth); in PaintBackground() 106 if (axis_ == Axis::HORIZONTAL) { in PaintBackground() 133 auto radius = axis_ == Axis::HORIZONTAL ? rectHeight : rectWidth; in PaintBackground() 237 (axis_ == Axis::HORIZONTAL ? center.GetX() - rectItemWidth * 0.5 : center.GetY() - rectItemHeight * 0.5); in PaintUnselectedIndicator() 239 (axis_ == Axis::HORIZONTAL ? center.GetY() - rectItemHeight * 0.5 : center.GetX() - rectItemWidth * 0.5); in PaintUnselectedIndicator() 241 (axis_ == Axis::HORIZONTAL ? center.GetX() + rectItemWidth * 0.5 : center.GetY() + rectItemHeight * 0.5); in PaintUnselectedIndicator() 243 (axis_ == Axis::HORIZONTAL in PaintUnselectedIndicator() [all...] |