Home
last modified time | relevance | path

Searched refs:xOffset (Results 1 - 25 of 62) sorted by relevance

123

/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/
H A Darcofzorro.cpp60 OH_Drawing_CanvasTranslate(canvas, xOffset, yOffset); in OnTestFunction()
68 xOffset += 10; // 10 count in OnTestFunction()
69 if (xOffset >= 700) { // 700 max in OnTestFunction()
75 xOffset -= 10; // 10 count in OnTestFunction()
77 if (xOffset < 50) { // 50 max in OnTestFunction()
83 xOffset += 10; // 10 count in OnTestFunction()
H A Darcofzorro.h33 int xOffset = 0; member in ArcOfZorro
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_scroll_ffi.cpp45 const Dimension& xOffset, const Dimension& yOffset, double duration, const RefPtr<Curve>& curve) in ScrollTo()
52 auto position = direction == Axis::VERTICAL ? yOffset : xOffset; in ScrollTo()
57 void NativeNGScroller::ScrollBy(const Dimension& xOffset, const Dimension& yOffset) in ScrollBy() argument
64 auto deltaX = xOffset.Value(); in ScrollBy()
70 if (xOffset.Unit() == DimensionUnit::PERCENT) { in ScrollBy()
73 deltaX = context->NormalizeToPx(xOffset); in ScrollBy()
213 [ffiOnScroll = CJLambda::Create(callback)](const Dimension& xOffset, const Dimension& yOffset) { in FfiOHOSAceFrameworkScrollOnScroll()
215 ffiScrollInfo.xOffset = xOffset.Value(); in FfiOHOSAceFrameworkScrollOnScroll()
242 void FfiOHOSAceFrameworkScrollerScrollTo(int64_t selfID, double xOffset, int32_ argument
44 ScrollTo( const Dimension& xOffset, const Dimension& yOffset, double duration, const RefPtr<Curve>& curve) ScrollTo() argument
254 FfiOHOSAceFrameworkScrollerScrollToByCurve( int64_t selfID, double xOffset, int32_t xUnit, double yOffset, int32_t yUnit, double duration, const char* curve) FfiOHOSAceFrameworkScrollerScrollToByCurve() argument
267 FfiOHOSAceFrameworkScrollerScrollBy( int64_t selfID, double xOffset, int32_t xUnit, double yOffset, int32_t yUnit) FfiOHOSAceFrameworkScrollerScrollBy() argument
[all...]
H A Dcj_scroll_ffi.h33 const Dimension& xOffset, const Dimension& yOffset, double duration, const RefPtr<Curve>& curve);
36 void ScrollBy(const Dimension& xOffset, const Dimension& yOffset);
79 int64_t selfID, double xOffset, int32_t xUnit, double yOffset, int32_t yUnit);
81 int64_t selfID, double xOffset, int32_t xUnit, double yOffset, int32_t yUnit, double duration, const char* curve);
83 int64_t selfID, double xOffset, int32_t xUnit, double yOffset, int32_t yUnit);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_split/
H A Dlinear_split_pattern.cpp76 auto xOffset = static_cast<float>(info.GetOffsetX()); in HandlePanStart() local
100 preOffset_ = xOffset; in HandlePanStart()
101 childrenDragPos_[dragedSplitIndex_ + 1] += xOffset; in HandlePanStart()
110 auto xOffset = static_cast<float>(info.GetOffsetX()); in HandlePanStartBeforeAPI10() local
133 preOffset_ = xOffset; in HandlePanStartBeforeAPI10()
135 if (xOffset > 0.0 || (xOffset < 0.0 && dragSplitOffset_[dragedSplitIndex_] <= 0.0)) { in HandlePanStartBeforeAPI10()
141 dragSplitOffset_[dragedSplitIndex_] += xOffset; in HandlePanStartBeforeAPI10()
242 auto xOffset = static_cast<float>(info.GetOffsetX()); in HandlePanUpdate() local
252 preOffset_ = xOffset; in HandlePanUpdate()
291 auto xOffset = info.GetOffsetX(); HandlePanUpdateBeforeAPI10() local
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_scroller.cpp113 Dimension xOffset; in ScrollTo() local
115 auto xOffsetStr = obj->GetProperty("xOffset"); in ScrollTo()
118 !std::regex_match(yOffsetStr->ToString(), DIMENSION_REGEX) || !ConvertFromJSValue(xOffsetStr, xOffset) || in ScrollTo()
149 auto position = direction == Axis::VERTICAL ? yOffset : xOffset; in ScrollTo()
292 retObj->SetProperty("xOffset", offset.GetX()); in CurrentOffset()
303 Dimension xOffset; in ScrollBy() local
305 if (!ConvertFromJSValue(args[0], xOffset) || in ScrollBy()
315 auto deltaX = xOffset.Value(); in ScrollBy()
321 if (xOffset.Unit() == DimensionUnit::PERCENT) { in ScrollBy()
324 deltaX = context->NormalizeToPx(xOffset); in ScrollBy()
373 Dimension xOffset; GetItemIndex() local
[all...]
H A Djs_scroll.cpp204 const Dimension& xOffset, const Dimension& yOffset) { in OnScrollCallback()
206 auto params = ConvertToJSValues(xOffset, yOffset); in OnScrollCallback()
221 const Dimension& xOffset, const Dimension& yOffset, const ScrollState& scrollState, in OnWillScrollCallback()
223 auto params = ConvertToJSValues(xOffset, yOffset, scrollState, scrollSource); in OnWillScrollCallback()
224 NG::TwoDimensionScrollResult scrollRes { .xOffset = xOffset, .yOffset = yOffset }; in OnWillScrollCallback()
236 auto dxRemainValue = resObj->GetProperty("xOffset"); in OnWillScrollCallback()
238 scrollRes.xOffset = Dimension(dxRemainValue->ToNumber<float>(), DimensionUnit::VP); in OnWillScrollCallback()
256 const Dimension& xOffset, const Dimension& yOffset, const ScrollState& scrollState) { in OnDidScrollCallback()
258 auto params = ConvertToJSValues(xOffset, yOffse in OnDidScrollCallback()
543 CalcDimension xOffset; SetInitialOffset() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toggle/
H A Dswitch_paint_method.cpp103 auto xOffset = contentOffset.GetX(); in PaintSwitch() local
121 hoverBoardOffset.SetX(xOffset - (actualWidth_ - width) / 2.0); in PaintSwitch()
125 rect.SetLeft(xOffset); in PaintSwitch()
127 rect.SetRight(xOffset + width); in PaintSwitch()
148 point.SetX(xOffset + actualGap + pointRadius_ + pointOffset_->Get()); in PaintSwitch()
150 point.SetX(xOffset + pointOffset_->Get()); in PaintSwitch()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/
H A Dscroll_event_hub.h32 Dimension xOffset; member
37 return xOffset == scrollRes.xOffset && yOffset == scrollRes.yOffset; in operator ==()
/foundation/arkui/ace_engine/frameworks/core/components/triangle/
H A Drender_triangle.cpp22 bool TriangleRotationCalculator::Calculate(double xOffset, double yOffset) in Calculate() argument
76 outArc1_.Move(xOffset, yOffset); in Calculate()
77 outArc2_.Move(xOffset, yOffset); in Calculate()
78 outArc3_.Move(xOffset, yOffset); in Calculate()
H A Drender_triangle.h55 bool Calculate(double xOffset, double yOffset);
/foundation/arkui/ace_engine/frameworks/core/gestures/
H A Dswipe_recognizer.cpp24 auto xOffset = lastPoint.x - firstPoint.x; in GetSwipeDirection() local
26 if (std::abs(xOffset) > std::abs(yOffset)) { in GetSwipeDirection()
27 if (std::abs(xOffset) < duration) { in GetSwipeDirection()
30 return xOffset > 0.0 ? SwipeEventInfo::SwipeDirection::RIGHT : SwipeEventInfo::SwipeDirection::LEFT; in GetSwipeDirection()
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_swipe_view.cpp274 int16_t xOffset = 0; in SwitchToPage() local
279 xOffset = -dstView->GetX(); in SwitchToPage()
281 xOffset = GetWidth() - (dstView->GetX() + dstView->GetWidthWithMargin()); in SwitchToPage()
283 xOffset = (GetWidth() >> 1) - (dstView->GetX() + (dstView->GetWidthWithMargin() >> 1)); in SwitchToPage()
289 if ((xOffset != 0) || (yOffset != 0)) { in SwitchToPage()
296 animatorCallback_.SetDragEndValue(xOffset, yOffset); in SwitchToPage()
299 MoveChildByOffset(xOffset, yOffset); in SwitchToPage()
477 void UISwipeView::MoveChildByOffset(int16_t xOffset, int16_t yOffset) in MoveChildByOffset() argument
479 UIViewGroup::MoveChildByOffset(xOffset, yOffset); in MoveChildByOffset()
/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Darc.h83 void Move(double xOffset, double yOffset) in Move() argument
85 centerPoint_.SetX(centerPoint_.GetX() + xOffset); in Move()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_layout/
H A Dlinear_layout_utils.cpp186 float xOffset = (direction == TextDirection::RTL) ? parentWidth - frameSize.Width() - offset.GetX() : offset.GetX(); in AdjustChildOnDirection() local
187 return { xOffset, yOffset }; in AdjustChildOnDirection()
214 float xOffset = CalculateCrossOffset(size.Width(), frameSize.Width(), crossAlign); in Layout() local
215 auto offset = AdjustChildOnDirection(child, OffsetF(xOffset, yPos), dir, width); in Layout()
282 float xOffset = in LayoutCondition() local
285 AdjustChildOnDirection(child, OffsetF(xOffset, yPos), direction, layoutConditions.size.Width()); in LayoutCondition()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_scroll_modifier.cpp359 Dimension xOffset((*values)[0], static_cast<OHOS::Ace::DimensionUnit>((*values)[1])); in SetScrollTo()
370 auto position = direction == Axis::VERTICAL ? yOffset : xOffset; in SetScrollTo()
449 CalcDimension xOffset = CalcDimension(xOffsetValue, static_cast<OHOS::Ace::DimensionUnit>(xOffsetUnit)); in SetScrollInitialOffset() local
451 ScrollModelNG::SetInitialOffset(frameNode, NG::OffsetT(xOffset, yOffset)); in SetScrollInitialOffset()
697 auto onWillScroll = [nodeId, node, extraParam](const Dimension& xOffset, const Dimension& yOffset, in SetScrollOnWillScroll()
699 TwoDimensionScrollResult scrollRes { .xOffset = xOffset, .yOffset = yOffset }; in SetScrollOnWillScroll()
706 event.componentAsyncEvent.data[0].f32 = static_cast<float>(xOffset.ConvertToPx()); in SetScrollOnWillScroll()
709 event.componentAsyncEvent.data[0].f32 = static_cast<float>(xOffset.Value()); in SetScrollOnWillScroll()
716 scrollRes.xOffset in SetScrollOnWillScroll()
[all...]
H A Dscroller_modifier.cpp68 Dimension xOffset(xOffsetArray[0], static_cast<OHOS::Ace::DimensionUnit>(xOffsetArray[1])); in ScrollTo()
73 auto position = direction == Axis::VERTICAL ? yOffset : xOffset; in ScrollTo()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_item_pattern.cpp1155 bool ListItemPattern::ClickJudgeVertical(const SizeF& size, double xOffset, double yOffset) in ClickJudgeVertical() argument
1161 if (startNodeSize_ && xOffset > 0 && xOffset < startNodeSize_) { in ClickJudgeVertical()
1163 } else if (endNodeSize_ && xOffset > size.Width() - endNodeSize_ && xOffset < size.Width()) { in ClickJudgeVertical()
1167 if (endNodeSize_ && xOffset > 0 && xOffset < endNodeSize_) { in ClickJudgeVertical()
1169 } else if (startNodeSize_ && xOffset > size.Width() - startNodeSize_ && xOffset < size.Width()) { in ClickJudgeVertical()
1192 auto xOffset in ClickJudge() local
[all...]
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/webgl/
H A Dwebgl_arg.h293 GLint xOffset; member
295 TexSubImage2DArg() : TexImageArg(), xOffset(0), yOffset{0} {} in TexSubImage2DArg()
298 xOffset = arg.xOffset; in TexSubImage2DArg()
321 GLint xOffset; member
325 CopyTexSubImageArg() : TexImageArg(), xOffset(0), yOffset{0}, x(0), y(0) {} in CopyTexSubImageArg()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/
H A Dwebgl_rendering_context_draw.cpp163 glTexSubImage2D(imgArg.target, imgArg.level, imgArg.xOffset, imgArg.yOffset, imgArg.width, imgArg.height, in TexSubImage2D_()
183 glTexSubImage2D(imgArg.target, imgArg.level, imgArg.xOffset, imgArg.yOffset, imgArg.width, imgArg.height, in TexSubImage2D()
658 glCompressedTexSubImage2D(imgArg.target, imgArg.level, imgArg.xOffset, imgArg.yOffset, imgArg.width, imgArg.height, in CompressedTexSubImage2D()
672 glCompressedTexSubImage2D(imgArg.target, imgArg.level, imgArg.xOffset, imgArg.yOffset, imgArg.width, imgArg.height, in CompressedTexSubImage2D()
743 imgArg.target, imgArg.level, imgArg.xOffset, imgArg.yOffset, imgArg.x, imgArg.y, imgArg.width, imgArg.height); in CopyTexSubImage2D()
791 if (imgArg.xOffset < 0 || imgArg.yOffset < 0) { in CheckTexSubImage2D()
792 LOGE("WebGL CheckTexSubImage2D invalid xOffset %{public}d", imgArg.xOffset); in CheckTexSubImage2D()
797 if (imgArg.xOffset + imgArg.width < 0 || imgArg.yOffset + imgArg.height < 0) { in CheckTexSubImage2D()
800 if ((imgArg.xOffset in CheckTexSubImage2D()
[all...]
/foundation/arkui/ace_engine/frameworks/core/image/apng/
H A Dapng_image_decoder.h166 uint32_t xOffset = 0; ///< x position at which to render the following frame member
/foundation/arkui/ace_engine/frameworks/core/components/side_bar/
H A Drender_side_bar_container.cpp491 void RenderSideBarContainer::HandleDragUpdate(double xOffset) in HandleDragUpdate() argument
501 auto sideBarLine = ConvertWidthToVp(preSidebarWidth_).ConvertToPx() + (isSideBarStart ? xOffset : -xOffset); in HandleDragUpdate()
H A Drender_side_bar_container.h130 void HandleDragUpdate(double xOffset);
/foundation/arkui/ui_lite/frameworks/common/
H A Dtext.cpp399 int16_t xOffset = 0; in LineStartPos() local
402 xOffset = (direct_ == TEXT_DIRECT_RTL) ? ((rectWidth + lineWidth + 1) >> 1) : ((rectWidth - lineWidth) >> 1); in LineStartPos()
404 xOffset = (direct_ == TEXT_DIRECT_RTL) ? rectWidth : (rectWidth - lineWidth); in LineStartPos()
406 xOffset = (direct_ == TEXT_DIRECT_RTL) ? rectWidth : 0; in LineStartPos()
408 return textRect.GetX() + xOffset; in LineStartPos()
/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_swipe_view.h329 void MoveChildByOffset(int16_t xOffset, int16_t yOffset) override;

Completed in 17 milliseconds

123