/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/track/ |
H A D | rosen_render_capsule_track.cpp | 79 double offsetX = offset.GetX(); in DrawCapsuleProgressAnimation() local 95 … path.addArc({ progressWidth + offsetX, offsetY, progressSize.Height() - progressWidth + offsetX, in DrawCapsuleProgressAnimation() 116 … offsetX, offsetY, progressSize.Height() + offsetX, progressSize.Height() + offsetY), 90, 180); in DrawCapsuleProgressAnimation() 119 progressWidth + offsetX, offsetY, progressSize.Height() - progressWidth + offsetX, in DrawCapsuleProgressAnimation() 122 path.AddRect(radius + offsetX, offsetY, progressSize.Width() - radius + offsetX, in DrawCapsuleProgressAnimation() 128 … path.AddRect(radius + offsetX, offsetY, progressWidth + offsetX, progressSize.Height() + offsetY); in DrawCapsuleProgressAnimation() 148 double offsetX = offset.GetX(); in DrawCapsuleProgressVerticalAnimation() local 163 path.addArc({ offsetX, offsetY + progressWidth, progressSize.Width() + offsetX, in DrawCapsuleProgressVerticalAnimation() 184 offsetX, offsetY, progressSize.Width() + offsetX, in DrawCapsuleProgressVerticalAnimation() 188 offsetX, offsetY + progressWidth, progressSize.Width() + offsetX, in DrawCapsuleProgressVerticalAnimation() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/ |
H A D | title_bar_layout_algorithm.cpp | 478 offsetX = ChangeOffsetByDirection(layoutWrapper, geometryNode, offsetX); in ShowBackButtonLayout() 650 offsetX = ChangeOffsetByDirection(layoutWrapper, geometryNode, offsetX); in LayoutTitle() 659 offsetX = ChangeOffsetByDirection(layoutWrapper, geometryNode, offsetX); in LayoutTitle() 668 offsetX = ChangeOffsetByDirection(layoutWrapper, geometryNode, offsetX); in LayoutTitle() 676 offsetX = ChangeOffsetByDirection(layoutWrapper, geometryNode, offsetX); in LayoutTitle() 683 offsetX = ChangeOffsetByDirection(layoutWrapper, geometryNode, offsetX); in LayoutTitle() 819 offsetX = ChangeOffsetByDirection(layoutWrapper, geometryNode, offsetX); in LayoutSubtitle() 853 offsetX = ChangeOffsetByDirection(layoutWrapper, geometryNode, offsetX); in LayoutSubtitle() 910 offsetX = ChangeOffsetByDirection(layoutWrapper, geometryNode, offsetX); in LayoutMenu() 1071 offsetX = parentWidth - offsetX - childGeometryNode->GetFrameSize().Width(); in ChangeOffsetByDirection() [all …]
|
/ohos5.0/docs/zh-cn/third-party-cases/ |
H A D | turn-the-page-left-and-right.md | 43 .translate({x:this.offsetX >= 0 ? 0:this.offsetX , y:0 , z:0}) 82 if (this.offsetX > 100){ 88 this.offsetX = 0 93 this.offsetX = this.screenW 95 this.offsetX = -this.screenW 159 @State offsetX:number = 0 197 if (this.offsetX > 100){ 203 this.offsetX = 0 208 this.offsetX = this.screenW 210 this.offsetX = -this.screenW [all …]
|
H A D | overall-and-part-refresh.md | 160 this.data.offsetX = this.data.positionX + event.offsetX 268 offsetX?: number, // X偏移量 279 offsetX: 0, 287 offsetX: 0, 295 offsetX: 0, 303 offsetX: 0, 311 offsetX: 0, 319 offsetX: 0, 327 offsetX: 0, 335 offsetX: 0, [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | draw_label.cpp | 366 if (offsetX >= cols) { in OnCalculatedClockwise() 371 if (offsetX >= cols) { in OnCalculatedClockwise() 374 copyCols = offsetX; in OnCalculatedClockwise() 379 if (offsetX >= cols) { in OnCalculatedClockwise() 385 if (offsetX >= cols) { in OnCalculatedClockwise() 388 copyCols = offsetX; in OnCalculatedClockwise() 402 if (offsetX >= cols) { in OnCalculatedAnticlockwise() 408 if (offsetX >= cols) { in OnCalculatedAnticlockwise() 411 copyCols = offsetX; in OnCalculatedAnticlockwise() 415 if (offsetX >= cols) { in OnCalculatedAnticlockwise() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/services/dialog_ui/ams_system_dialog/entry/src/main/ets/utils/ |
H A D | PositionUtils.ts | 64 offsetX: number; 74 offsetX: 0, 85 position.offsetX = displayClass.width * SETX_WIDTH_MULTIPLE; 89 position.offsetX = (displayClass.width - position.width) / UI_HALF; 93 position.offsetX = (UI_DEFAULT_WIDTH - position.width) / UI_HALF; 103 offsetX: 0, 137 position.offsetX = (displayClass.width - position.width) / UI_HALF; 140 position.offsetX = (UI_DEFAULT_WIDTH - position.width) / UI_HALF; 157 position.offsetX = Math.floor(width * UI_SELECTOR_PORTRAIT_WIDTH_EDGE_RATIO); 174 position.offsetX = Math.floor((width - position.width) / UI_HALF);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_colorful_shadow_filter_test.cpp | 48 float offsetX = 0.1f; variable 50 RSColorfulShadowFilter shadowFilter(blurRadius, offsetX, offsetY); 64 float offsetX = 0.1f; variable 66 RSColorfulShadowFilter shadowFilter(blurRadius, offsetX, offsetY); 85 float offsetX = 0.1f; variable 87 RSColorfulShadowFilter shadowFilter(blurRadius, offsetX, offsetY);
|
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/src/ohos/ |
H A D | texture_layer.cpp | 53 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 … in ConfigWindow() argument 198 rsNode_->SetBounds(offsetX, offsetY, width, height); in ConfigWindow() 202 TextureInfo TextureLayerImpl::OnWindowChange(float offsetX, float offsetY, float width, float heigh… in OnWindowChange() argument 207 offsetX_ = offsetX; in OnWindowChange() 215 ConfigWindow(offsetX, offsetY, width, height, scale, recreateWindow); in OnWindowChange() 226 offsetX_ = (int)windowChangeInfo.offsetX; in OnWindowChange() 236 ConfigWindow(windowChangeInfo.offsetX, windowChangeInfo.offsetY, windowChangeInfo.width, in OnWindowChange() 270 TextureInfo TextureLayer::OnWindowChange(float offsetX, float offsetY, float width, float height, f… in OnWindowChange() argument [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/pattern_lock/ |
H A D | rosen_render_pattern_lock.cpp | 51 double offsetX = cellcenter.GetX(); in PaintLockCircle() local 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, offsetY), NormalizeToPx(circleRadiusAnimatorToDecrease_)); in PaintLockCircle() 112 RSPoint(offsetX, offsetY), NormalizeToPx(circleRadiusAnimatorToDecrease_)); in PaintLockCircle() 117 … RSPoint(offsetX, offsetY), NormalizeToPx(circleRadius_ * SCALE_ACTIVE_CIRCLE_RADIUS)); in PaintLockCircle() 124 … RSPoint(offsetX, offsetY), NormalizeToPx(circleRadius_ * SCALE_ACTIVE_CIRCLE_RADIUS)); in PaintLockCircle() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/relative_container/ |
H A D | render_relative_container.cpp | 370 double offsetX = 0.0; in PerformLayout() local 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() 430 offsetX = anchorWidth - flexItemWidth / 2; in CalcHorizontalOffset() 439 offsetX = (-1) * flexItemWidth; in CalcHorizontalOffset() 445 offsetX = anchorWidth - flexItemWidth; in CalcHorizontalOffset() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/image/apng/ |
H A D | apng_image_player.cpp | 144 frame.offsetX = frameInfo->frameControl.xOffset; in GetApngAllFrames() 322 SkRect unBlendRect = SkRect::MakeXYWH(frameInfo->offsetX, in ClearCanvasRect() 333 RSRect(frameInfo->offsetX, frameInfo->offsetY, in ClearCanvasRect() 353 SkRect unBlendRect = SkRect::MakeXYWH(frameInfo->offsetX, in BlendImage() 385 RSRect(frameInfo->offsetX, frameInfo->offsetY, in BlendImage() 467 SkRect unBlendRect = SkRect::MakeXYWH(frameInfo->offsetX, in GetImage() 510 SkRect unBlendRect = SkRect::MakeXYWH(frameInfo->offsetX, in GetImage() 583 RSRect(frameInfo->offsetX, frameInfo->offsetY, in GetImage() 622 RSRect(frameInfo->offsetX, frameInfo->offsetY, in GetImage() 775 SkRect unBlendRect = SkRect::MakeXYWH(frameInfo->offsetX, in DecodeFrameImage() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/ |
H A D | progress_modifier.cpp | 1456 double offsetX = offset.GetX(); in PaintCapsule() local 1498 … path.AddArc({ offsetX + progressWidth, offsetY, INT32_TWO * radius - progressWidth + offsetX, in PaintCapsule() 1547 double offsetX = offset.GetX(); in PaintVerticalCapsule() local 1583 { offsetX, offsetY + progressWidth, contentSize.Width() + offsetX, in PaintVerticalCapsule() 1596 { offsetX, radius + offsetY, offsetX + contentSize.Width(), progressWidth + offsetY }); in PaintVerticalCapsule() 1662 auto offsetX = offset.GetX(); in PaintCapsuleLightSweep() local 1673 … canvas.DrawRect({ offsetX + endPos - SWEEP_WIDTH.ConvertToPx(), offsetY, offsetX + endPos, in PaintCapsuleLightSweep() 1767 double offsetX = offset.GetX(); in PaintCapsuleForApiNine() local 1787 path.AddRect({ offsetX + radius, offsetY, frameSize.Width() + offsetX - radius, in PaintCapsuleForApiNine() 1803 double offsetX = offset.GetX(); in PaintVerticalCapsuleForApiNine() local [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-combined-gestures.md | 50 @State offsetX: number = 0 58 … 'LongPress onAction:' + this.count + '\nPanGesture offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + … 61 .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) 84 this.offsetX = this.positionX + event.offsetX 90 this.positionX = this.offsetX
|
H A D | ts-basic-gestures-pangesture.md | 93 @State offsetX: number = 0 102 Text('PanGesture offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) 109 .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) // 以组件左上角为坐标原点进行移动 118 this.offsetX = this.positionX + event.offsetX 123 this.positionX = this.offsetX
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | jsi_list_bridge.cpp | 39 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()
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/ability_manager_service_dialog_test/ |
H A D | ability_manager_service_dialog_test.cpp | 335 position.offsetX = 0; 342 EXPECT_NE(position.offsetX, 0); 356 position.offsetX = 0; 363 EXPECT_NE(position.offsetX, 0); 377 position.offsetX = 0; 384 EXPECT_NE(position.offsetX, 0); 398 position.offsetX = 0; 405 EXPECT_NE(position.offsetX, 0); 419 position.offsetX = 0; 426 EXPECT_NE(position.offsetX, 0);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/button/ |
H A D | rosen_render_button.cpp | 415 double offsetX = offset.GetX(); in DrawLineProgressAnimation() local 419 …path.addArc({ offsetX, offsetY, buttonSize_.Height() + offsetX, buttonSize_.Height() + offsetY }, … in DrawLineProgressAnimation() 421 … path.addArc({ progressWidth_ + offsetX, offsetY, buttonSize_.Height() - progressWidth_ + offsetX, in DrawLineProgressAnimation() 426 …{ radius + offsetX, offsetY, buttonSize_.Width() - radius + offsetX, buttonSize_.Height() + offset… in DrawLineProgressAnimation() 431 …path.addRect({ radius + offsetX, offsetY, progressWidth_ + offsetX, buttonSize_.Height() + offsetY… in DrawLineProgressAnimation() 442 double offsetX = offset.GetX(); in DrawLineProgressAnimation() local 446 …path.AddArc(RSRect(offsetX, offsetY, buttonSize_.Height() + offsetX, buttonSize_.Height() + offset… in DrawLineProgressAnimation() 449 path.AddArc(RSRect(progressWidth_ + offsetX, offsetY, in DrawLineProgressAnimation() 453 path.AddRect(RSRect(radius + offsetX, offsetY, buttonSize_.Width() - radius + offsetX, in DrawLineProgressAnimation() 457 progressWidth_ + offsetX, buttonSize_.Height() + offsetY), in DrawLineProgressAnimation() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/ |
H A D | ArkClassDefine.ts | 311 this.offsetX = undefined; 343 (this.offsetX === another.offsetX) && (this.offsetY === another.offsetY) && 798 this.offsetX = []; 799 this.offsetX = []; 806 (this.offsetX === another.offsetX) && 819 this.offsetX.push(((<ShadowOptions>value).offsetX === undefined || 840 …this.offsetX.push((objValue.offsetX === undefined || objValue.offsetX === null) ? 0 : <number | st… 871 if (!((isResource(stageValue.offsetX) && isResource(value.offsetX) && 872 isResourceEqual(stageValue.offsetX, value.offsetX)) || 873 (isNumber(stageValue.offsetX) && isNumber(value.offsetX) && [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/xcomponent/ |
H A D | xcomponent_controller_ng.cpp | 24 XComponentControllerErrorCode XComponentControllerNG::GetGlobalPosition(float& offsetX, float& offs… in GetGlobalPosition() argument 34 offsetX = globalPostion.GetX(); in GetGlobalPosition() 109 void XComponentControllerNG::GetSurfaceOffset(float& offsetX, float& offsetY) in GetSurfaceOffset() argument 114 offsetX = surfaceOffset.GetX(); in GetSurfaceOffset() 141 void XComponentControllerNG::SetIdealSurfaceOffsetX(float offsetX) in SetIdealSurfaceOffsetX() argument 145 pattern->SetIdealSurfaceOffsetX(offsetX); in SetIdealSurfaceOffsetX()
|
H A D | xcomponent_paint_method.cpp | 30 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()
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | arkts-gesture-events-combined-gestures.md | 29 @State offsetX: number = 0; 38 … 'LongPress onAction:' + this.count + '\nPanGesture offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + … 43 .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) 73 this.offsetX = (this.positionX + event.offsetX); 79 this.positionX = this.offsetX;
|
/ohos5.0/foundation/barrierfree/accessibility/services/aams/src/ |
H A D | accessibility_mouse_key.cpp | 23 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:%{public}d, offsetY:%{public}d", offsetX, offsetY); in MoveMousePointer() 241 EventTransmission::OnMoveMouse(offsetX, offsetY); in MoveMousePointer()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/slider/ |
H A D | rosen_render_circle_block.cpp | 76 float offsetX = 0.0f; in SyncGeometryProperties() local 80 offsetX = hoverRadius > shadowRect.width() * HALF ? hoverRadius : shadowRect.width() * HALF; in SyncGeometryProperties() 84 offsetX = pressRadius > shadowRect.width() * HALF ? pressRadius : shadowRect.width() * HALF; in SyncGeometryProperties() 87 offsetX = shadowRect.width() * HALF; in SyncGeometryProperties() 119 float offsetX = 0.0f; in SyncGeometryProperties() local 123 … offsetX = hoverRadius > shadowRect.GetWidth() * HALF ? hoverRadius : shadowRect.GetWidth() * HALF; in SyncGeometryProperties() 127 … offsetX = pressRadius > shadowRect.GetWidth() * HALF ? pressRadius : shadowRect.GetWidth() * HALF; in SyncGeometryProperties() 130 offsetX = shadowRect.GetWidth() * HALF; in SyncGeometryProperties() 134 … rsNode->SetFrame(frame.x_ - offsetX, frame.y_ - offsetY, frame.z_ + offsetX, frame.w_ + offsetY); in SyncGeometryProperties()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/ |
H A D | swiper_indicator_utils.h | 150 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()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/ |
H A D | grid_cache_layout_test_ng.cpp | 123 float offsetX = index % colsNumber * itemWidth; variable 125 RectF expectRect = RectF(offsetX, offsetY, itemWidth, ITEM_HEIGHT); 160 float offsetX = childProps->GetCrossIndex().value_or(0) * GRID_WIDTH / 4; variable 161 RectF expectRect = RectF(offsetX, offsetY, width, height); 196 float offsetX = childProps->GetCrossIndex().value_or(0) * GRID_WIDTH / 6; variable 197 RectF expectRect = RectF(offsetX, offsetY, width, height);
|