Home
last modified time | relevance | path

Searched refs:offsetX (Results 1 - 25 of 392) sorted by relevance

12345678910>>...16

/foundation/arkui/ace_engine/frameworks/core/components/track/
H A Drosen_render_capsule_track.cpp79 double offsetX = offset.GetX(); in DrawCapsuleProgressAnimation() local
93 path.addArc({ offsetX, offsetY, progressSize.Height() + offsetX, progressSize.Height() + offsetY }, 90, 180); in DrawCapsuleProgressAnimation()
95 path.addArc({ progressWidth + offsetX, offsetY, progressSize.Height() - progressWidth + offsetX, in DrawCapsuleProgressAnimation()
100 { radius + offsetX, offsetY, progressSize.Width() - radius + offsetX, progressSize.Height() + offsetY }); in DrawCapsuleProgressAnimation()
101 path.addArc({ (progressSize.Width() - radius) * 2.0 - progressWidth + offsetX, offsetY, progressWidth + offsetX, in DrawCapsuleProgressAnimation()
105 path.addRect({ radius + offsetX, offset in DrawCapsuleProgressAnimation()
148 double offsetX = offset.GetX(); DrawCapsuleProgressVerticalAnimation() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/
H A Drs_colorful_shadow_filter_test.cpp48 float offsetX = 0.1f; in HWTEST_F() local
50 RSColorfulShadowFilter shadowFilter(blurRadius, offsetX, offsetY); in HWTEST_F()
64 float offsetX = 0.1f; in HWTEST_F() local
66 RSColorfulShadowFilter shadowFilter(blurRadius, offsetX, offsetY); in HWTEST_F()
85 float offsetX = 0.1f; in HWTEST_F() local
87 RSColorfulShadowFilter shadowFilter(blurRadius, offsetX, offsetY); in HWTEST_F()
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_label.cpp358 const uint16_t cols, const int16_t offsetX, uint16_t& begin, in OnCalculatedClockwise()
366 if (offsetX >= cols) { in OnCalculatedClockwise()
369 copyCols = cols - offsetX; in OnCalculatedClockwise()
371 if (offsetX >= cols) { in OnCalculatedClockwise()
374 copyCols = offsetX; in OnCalculatedClockwise()
375 begin = (cols - offsetX) * sizePerPx; in OnCalculatedClockwise()
379 if (offsetX >= cols) { in OnCalculatedClockwise()
382 copyCols = cols - offsetX; in OnCalculatedClockwise()
383 begin = offsetX * sizePerPx; in OnCalculatedClockwise()
385 if (offsetX > in OnCalculatedClockwise()
357 OnCalculatedClockwise(const ArcLetterInfo& letterInfo, const uint16_t sizePerPx, const uint16_t cols, const int16_t offsetX, uint16_t& begin, uint16_t& copyCols, TextInRange& range) OnCalculatedClockwise() argument
393 OnCalculatedAnticlockwise(const ArcLetterInfo& letterInfo, const uint16_t sizePerPx, const uint16_t cols, const int16_t offsetX, uint16_t& begin, uint16_t& copyCols, TextInRange& range) OnCalculatedAnticlockwise() argument
429 CalculatedBeginAndCopySize(const ArcLetterInfo& letterInfo, const uint16_t sizePerPx, const uint16_t cols, const int16_t offsetX, uint16_t& begin, uint16_t& copyCols, TextInRange& range) CalculatedBeginAndCopySize() argument
451 int16_t offsetX = static_cast<uint16_t>(angle * letterInfo.radius * UI_PI / SEMICIRCLE_IN_DEGREE); CalculatedTransformDataInfo() local
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/
H A Djsi_list_bridge.cpp39 double offsetX = 0.0; in JsGetCurrentOffset() local
41 auto task = [nodeId, page, &offsetX, &offsetY]() { in JsGetCurrentOffset()
52 offsetX = offset.GetX(); in JsGetCurrentOffset()
63 offsetContext->SetProperty(runtime, "x", runtime->NewNumber(offsetX)); in JsGetCurrentOffset()
/foundation/graphic/graphic_3d/3d_widget_adapter/src/ohos/
H A Dtexture_layer.cpp53 TextureInfo OnWindowChange(float offsetX, float offsetY, float width, float height, float scale,
59 void ConfigWindow(float offsetX, float offsetY, float width, float height, float scale,
182 void TextureLayerImpl::ConfigWindow(float offsetX, float offsetY, float width, float height, float scale, in ConfigWindow() argument
198 rsNode_->SetBounds(offsetX, offsetY, width, height); in ConfigWindow()
202 TextureInfo TextureLayerImpl::OnWindowChange(float offsetX, float offsetY, float width, float height, float scale, in OnWindowChange() argument
207 offsetX_ = offsetX; in OnWindowChange()
215 ConfigWindow(offsetX, offsetY, width, height, scale, recreateWindow); in OnWindowChange()
216 WIDGET_LOGD("TextureLayer OnWindowChange offsetX %f, offsetY %f, width %d, height %d, float scale %f," in OnWindowChange()
217 "recreateWindow %d window empty %d", offsetX, offsetY, image_.textureInfo_.width_, image_.textureInfo_.height_, in OnWindowChange()
226 offsetX_ = (int)windowChangeInfo.offsetX; in OnWindowChange()
270 OnWindowChange(float offsetX, float offsetY, float width, float height, float scale, bool recreateWindow, SurfaceType surfaceType) OnWindowChange() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/xcomponent/
H A Dxcomponent_paint_method.cpp30 auto offsetX = surfaceOffset.GetX(); in GetContentDrawFunction() local
32 return [weak = WeakClaim(this), width, height, offsetX, offsetY](RSCanvas& canvas) { in GetContentDrawFunction()
37 surface->DrawBufferForXComponent(canvas, width, height, offsetX, offsetY); in GetContentDrawFunction()
H A Dxcomponent_controller_ng.cpp21 XComponentControllerErrorCode XComponentControllerNG::GetGlobalPosition(float& offsetX, float& offsetY) in GetGlobalPosition() argument
31 offsetX = globalPostion.GetX(); in GetGlobalPosition()
106 void XComponentControllerNG::GetSurfaceOffset(float& offsetX, float& offsetY) in GetSurfaceOffset() argument
111 offsetX = surfaceOffset.GetX(); in GetSurfaceOffset()
138 void XComponentControllerNG::SetIdealSurfaceOffsetX(float offsetX) in SetIdealSurfaceOffsetX() argument
142 pattern->SetIdealSurfaceOffsetX(offsetX); in SetIdealSurfaceOffsetX()
H A Dxcomponent_controller_ng.h30 XComponentControllerErrorCode GetGlobalPosition(float& offsetX, float& offsetY) override;
43 void SetIdealSurfaceOffsetX(float offsetX) override;
53 void GetSurfaceOffset(float& offsetX, float& offsetY) override;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/
H A Dtitle_bar_layout_algorithm.cpp472 auto offsetX = static_cast<float>(paddingLeft); in ShowBackButtonLayout() local
473 offsetX = ChangeOffsetByDirection(layoutWrapper, geometryNode, offsetX); in ShowBackButtonLayout()
474 OffsetF backButtonOffset = OffsetF(offsetX, static_cast<float>(offsetY.ConvertToPx())); in ShowBackButtonLayout()
607 auto offsetX = isCustom ? (paddingLeft_ + navBackIconWidth_ + navButtonPadding_) : in LayoutTitle() local
610 auto offsetXResult = ChangeOffsetByDirection(layoutWrapper, geometryNode, offsetX); in LayoutTitle()
616 auto offsetX = isCustom ? 0.0f : paddingLeft_; in LayoutTitle() local
618 auto offsetXResult = ChangeOffsetByDirection(layoutWrapper, geometryNode, offsetX); in LayoutTitle()
643 auto offsetX = maxPaddingStart_.ConvertToPx(); in LayoutTitle() local
644 offsetX in LayoutTitle()
649 auto offsetX = (defaultPaddingStart_ + BACK_BUTTON_ICON_SIZE + NAV_HORIZONTAL_MARGIN_L).ConvertToPx(); LayoutTitle() local
658 auto offsetX = isCustom ? 0.0f : paddingLeft_; LayoutTitle() local
666 auto offsetX = isCustom ? (paddingLeft_ + navBackIconWidth_ + navButtonPadding_) : LayoutTitle() local
675 float offsetX = paddingLeft_; LayoutTitle() local
826 float offsetX = paddingLeft_; LayoutSubtitle() local
868 auto offsetX = paddingLeft_; LayoutSubtitle() local
910 float offsetX = 0.0f; LayoutMenu() local
[all...]
H A Dbar_item_layout_algorithm.cpp101 auto offsetX = (constraint->maxSize.Width() - iconSize_.ConvertToPx()) / 2; in LayoutIcon() local
104 offsetX = 0.0f; in LayoutIcon()
107 auto offset = OffsetF(offsetX, 0.0f); in LayoutIcon()
127 auto offsetX = (constraint->maxSize.Width() - textWidth) / 2; in LayoutText() local
130 offsetX = 0.0f; in LayoutText()
132 auto offset = OffsetF(offsetX, iconOffsetY + static_cast<float>(textOffsetY.ConvertToPx())); in LayoutText()
/foundation/arkui/ace_engine/frameworks/core/components/relative_container/
H A Drender_relative_container.cpp370 double offsetX = 0.0; in PerformLayout() local
383 offsetX = CalcHorizontalOffset(alignRule.first, alignRule.second, containerSize.Width(), nodeName); in PerformLayout()
393 flexItem->SetPosition(Offset(offsetX, offsetY)); in PerformLayout()
400 double offsetX = 0.0; in CalcHorizontalOffset() local
409 offsetX = 0.0; in CalcHorizontalOffset()
412 offsetX = anchorWidth / 2; in CalcHorizontalOffset()
415 offsetX = anchorWidth; in CalcHorizontalOffset()
424 offsetX = (-1) * flexItemWidth / 2; in CalcHorizontalOffset()
427 offsetX = anchorWidth / 2 - flexItemWidth / 2; in CalcHorizontalOffset()
430 offsetX in CalcHorizontalOffset()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/
H A Dprogress_modifier.cpp1449 double offsetX = offset.GetX(); in PaintCapsule() local
1468 { { offsetX, offsetY, contentSize.Width() + offsetX, contentSize.Height() + offsetY }, radius, radius }); in PaintCapsule()
1482 { offsetX, offsetY, INT32_TWO * radius + offsetX, contentSize.Height() + offsetY }, ANGLE_90, ANGLE_180); in PaintCapsule()
1484 path.AddArc({ offsetX + contentSize.Width() - INT32_TWO * radius, offsetY, offsetX + contentSize.Width(), in PaintCapsule()
1491 path.AddArc({ offsetX + progressWidth, offsetY, INT32_TWO * radius - progressWidth + offsetX, in PaintCapsule()
1495 path.AddArc({ offsetX in PaintCapsule()
1540 double offsetX = offset.GetX(); PaintVerticalCapsule() local
1655 auto offsetX = offset.GetX(); PaintCapsuleLightSweep() local
1760 double offsetX = offset.GetX(); PaintCapsuleForApiNine() local
1796 double offsetX = offset.GetX(); PaintVerticalCapsuleForApiNine() local
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/
H A Dgrid_layout_test_ng.cpp57 float offsetX = index % colsNumber * itemWidth; in HWTEST_F() local
59 RectF expectRect = RectF(offsetX, offsetY, itemWidth, ITEM_HEIGHT); in HWTEST_F()
261 float offsetX = GRID_WIDTH - index % colsNumber * itemWidth - itemWidth; in HWTEST_F() local
263 RectF expectRect = RectF(offsetX, offsetY, itemWidth, ITEM_HEIGHT); in HWTEST_F()
293 float offsetX = GRID_WIDTH - index % colsNumber * itemWidth - itemWidth; in HWTEST_F() local
295 RectF expectRect = RectF(offsetX, offsetY, itemWidth, ITEM_HEIGHT); in HWTEST_F()
326 float offsetX = GRID_WIDTH - floor(index / rowsNumber) * itemWidth * 2 - itemWidth; in HWTEST_F() local
328 RectF expectRect = RectF(offsetX, offsetY, itemWidth, ITEM_HEIGHT); in HWTEST_F()
358 float offsetX = index % colsNumber * itemWidth + (GRID_WIDTH - colsNumber * itemWidth); in HWTEST_F() local
360 RectF expectRect = RectF(offsetX, offset in HWTEST_F()
391 float offsetX = GRID_WIDTH - floor(index / rowsNumber) * itemWidth * 2 - itemWidth; HWTEST_F() local
421 float offsetX = index % columnsNumber * (itemWidth + realColumnsGap); HWTEST_F() local
[all...]
H A Dgrid_cache_layout_test_ng.cpp124 float offsetX = index % colsNumber * itemWidth; in HWTEST_F() local
126 RectF expectRect = RectF(offsetX, offsetY, itemWidth, ITEM_HEIGHT); in HWTEST_F()
161 float offsetX = childProps->GetCrossIndex().value_or(0) * GRID_WIDTH / 4; in HWTEST_F() local
162 RectF expectRect = RectF(offsetX, offsetY, width, height); in HWTEST_F()
197 float offsetX = childProps->GetCrossIndex().value_or(0) * GRID_WIDTH / 6; in HWTEST_F() local
198 RectF expectRect = RectF(offsetX, offsetY, width, height); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_v2/pattern_lock/
H A Drosen_render_pattern_lock.cpp51 double offsetX = cellcenter.GetX(); in PaintLockCircle() local
59 canvas->drawCircle(offsetX, offsetY, NormalizeToPx(circleRadiusAnimatorToIncrease_), skPaintFill); in PaintLockCircle()
62 canvas->drawCircle(offsetX, offsetY, NormalizeToPx(circleRadiusAnimatorToDecrease_), skPaintFill); in PaintLockCircle()
67 canvas->drawCircle(offsetX, offsetY, NormalizeToPx(circleRadiusAnimatorToDecrease_), skPaintFill); in PaintLockCircle()
71 offsetX, offsetY, NormalizeToPx(circleRadius_ * SCALE_ACTIVE_CIRCLE_RADIUS), skPaintFill); in PaintLockCircle()
76 offsetX, offsetY, NormalizeToPx(circleRadius_ * SCALE_ACTIVE_CIRCLE_RADIUS), skPaintFill); in PaintLockCircle()
79 canvas->drawCircle(offsetX, offsetY, NormalizeToPx(circleRadius_), skPaintFill); in PaintLockCircle()
89 double offsetX = cellcenter.GetX(); in PaintLockCircle() local
99 RSPoint(offsetX, offsetY), NormalizeToPx(circleRadiusAnimatorToIncrease_)); in PaintLockCircle()
104 RSPoint(offsetX, offset in PaintLockCircle()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/clip/
H A Drender_clip.h40 virtual void SetOffsetX(double offsetX) in SetOffsetX() argument
42 if (offsetX < 0.0) { in SetOffsetX()
45 offsetX_ = offsetX; in SetOffsetX()
/foundation/arkui/ace_engine/frameworks/core/image/apng/
H A Dapng_image_player.cpp144 frame.offsetX = frameInfo->frameControl.xOffset; in GetApngAllFrames()
303 canvas->drawImage(rawImage, frameInfo->offsetX, frameInfo->offsetY, nullptr); in GetImage()
322 SkRect unBlendRect = SkRect::MakeXYWH(frameInfo->offsetX, in ClearCanvasRect()
333 RSRect(frameInfo->offsetX, frameInfo->offsetY, in ClearCanvasRect()
334 frameInfo->width + frameInfo->offsetX, frameInfo->height + frameInfo->offsetY); in ClearCanvasRect()
353 SkRect unBlendRect = SkRect::MakeXYWH(frameInfo->offsetX, in BlendImage()
385 RSRect(frameInfo->offsetX, frameInfo->offsetY, in BlendImage()
386 frameInfo->width + frameInfo->offsetX, frameInfo->height + frameInfo->offsetY); in BlendImage()
467 SkRect unBlendRect = SkRect::MakeXYWH(frameInfo->offsetX, in GetImage()
510 SkRect unBlendRect = SkRect::MakeXYWH(frameInfo->offsetX, in GetImage()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dshape_container_layout_algorithm.cpp82 float offsetX = 0.0f; in GetChildrenSize() local
96 offsetX = ConvertToPx(offset.GetX(), ScaleProperty::CreateScaleProperty(), in GetChildrenSize()
102 if (maxWidth < childSize.Width() + offsetX) { in GetChildrenSize()
103 maxWidth = childSize.Width() + offsetX; in GetChildrenSize()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dswiper_indicator_utils.h150 float offsetX = 0.0f; in CalcIndicatrOffSetX() local
153 offsetX = leftValue + swiperPaddingLeft + borderWidthLeft; in CalcIndicatrOffSetX()
156 offsetX = swiperWidth - indicatorWidth - rightValue - swiperPaddingRight - borderWidthRight; in CalcIndicatrOffSetX()
159 offsetX = (swiperWidth - swiperPaddingRight - borderWidthRight + in CalcIndicatrOffSetX()
162 offsetX = swiperWidth - indicatorWidth - swiperPaddingRight - borderWidthRight; in CalcIndicatrOffSetX()
165 return offsetX; in CalcIndicatrOffSetX()
/foundation/barrierfree/accessibility/services/aams/test/mock/src/
H A Dmock_accessibility_event_transmission.cpp38 void EventTransmission::OnMoveMouse(int32_t offsetX, int32_t offsetY) in OnMoveMouse() argument
40 (void)offsetX; in OnMoveMouse()
/foundation/barrierfree/accessibility/services/test/moduletest/mock/src/
H A Dmock_mt_accessibility_event_transmission.cpp38 void MockEventTransmission::OnMoveMouse(int32_t offsetX, int32_t offsetY) in OnMoveMouse() argument
40 (void)offsetX; in OnMoveMouse()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/
H A Drs_pixel_stretch_params.h27 RSPixelStretchParams(float offsetX, float offsetY, float offsetZ, float offsetW, in RSPixelStretchParams() argument
29 offsetX_(offsetX), offsetY_(offsetY), offsetZ_(offsetZ), offsetW_(offsetW), in RSPixelStretchParams()
/foundation/barrierfree/accessibility/services/aams/src/
H A Daccessibility_mouse_key.cpp23 int32_t offsetX = 0; member
208 int32_t offsetX = iter->second.offsetX; in ExecuteMouseKey() local
215 offsetX = static_cast<int32_t>(iter->second.offsetX * SPEED_UP_MULTIPLE); in ExecuteMouseKey()
218 offsetX = static_cast<int32_t>(iter->second.offsetX * SLOW_DOWN_MULTIPLE); in ExecuteMouseKey()
221 MoveMousePointer(offsetX, offsetY); in ExecuteMouseKey()
237 void AccessibilityMouseKey::MoveMousePointer(int32_t offsetX, int32_t offsetY) in MoveMousePointer() argument
239 HILOG_DEBUG("offsetX in MoveMousePointer()
[all...]
H A Daccessibility_event_transmission.cpp43 void EventTransmission::OnMoveMouse(int32_t offsetX, int32_t offsetY) in OnMoveMouse() argument
49 next->OnMoveMouse(offsetX, offsetY); in OnMoveMouse()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/data_panel/
H A Ddata_panel_paint_property.h31 double offsetX = 5.0; member
36 return radius == rhs.radius && offsetX == rhs.offsetX && offsetY == rhs.offsetY && colors == rhs.colors && in operator ==()
160 trackShadow.offsetX = propShadowOption_.value().offsetX; in ToJsonTrackShadow()
166 trackShadow.offsetX = theme->GetTrackShadowOffsetX().ConvertToVp(); in ToJsonTrackShadow()
189 shadowOptionJson->Put("offsetX", std::to_string(trackShadow.offsetX).c_str()); in ToJsonTrackShadow()

Completed in 15 milliseconds

12345678910>>...16