/foundation/graphic/graphic_3d/lume/LumeEngine/src/image/loaders/ |
H A D | image_loader_common.h | 174 uint32_t halfWidth = width / 2; in VerticalFlipRowPointers() local 176 for (uint32_t x = 0; x < halfWidth; x++) { in VerticalFlipRowPointers() 191 uint32_t halfWidth = width / 2; in VerticalFlipRow() local 192 for (uint32_t x = 0; x < halfWidth; x++) { in VerticalFlipRow()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/ |
H A D | select_overlay_content_modifier.cpp | 253 auto halfWidth = isPaintHandleUsePoints_ ? 0.0f : upHandle.Width() / 2.0f; in ClipViewPort() local 254 left = std::min(upHandle.Left() + halfWidth - handleRadius, left); in ClipViewPort() 255 right = std::max(upHandle.Right() - halfWidth + handleRadius, right); in ClipViewPort() 260 auto halfWidth = isPaintHandleUsePoints_ ? 0 : downHandle.Width() / 2.0f; in ClipViewPort() local 261 left = std::min(downHandle.Left() + halfWidth - handleRadius, left); in ClipViewPort() 262 right = std::max(downHandle.Right() - halfWidth + handleRadius, right); in ClipViewPort()
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/window/ |
H A D | drag_window_ohos.cpp | 135 int32_t halfWidth = static_cast<int32_t>(params.width) / 2; in CreateDragWindow() local 139 option->SetWindowRect({ params.x - halfWidth, params.y - halfHeight, params.width, params.height }); in CreateDragWindow() 140 option->SetHitOffset(halfWidth, halfHeight); in CreateDragWindow() 152 OHOS::Rosen::WMError ret = dragWindow->MoveTo(params.x - halfWidth, params.y - halfHeight, true); in CreateDragWindow() 172 int32_t halfWidth = static_cast<int32_t>(width + Window_EXTERN.ConvertToPx() * 2) / 2; in CreateTextDragWindow() local 178 option->SetHitOffset(halfWidth, halfHeight); in CreateTextDragWindow()
|
/foundation/window/window_manager/wmserver/src/ |
H A D | display_group_controller.cpp | 198 int32_t halfWidth = static_cast<int32_t>(winRect.width_ * 0.5); in UpdateWindowDisplayIdIfNeeded() local 209 if ((displayRect.posX_ + static_cast<int32_t>(displayRect.width_) - winRect.posX_) >= halfWidth) { in UpdateWindowDisplayIdIfNeeded() 214 if ((winRect.posX_ + static_cast<int32_t>(winRect.width_) - displayRect.posX_) >= halfWidth) { in UpdateWindowDisplayIdIfNeeded()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | skia_decoration_painter.cpp | 337 float halfWidth = size.width() / 2; in EndPointsFromAngle() local 340 cornerPoint.set(halfWidth, halfHeight); in EndPointsFromAngle() 342 cornerPoint.set(halfWidth, -halfHeight); in EndPointsFromAngle() 344 cornerPoint.set(-halfWidth, -halfHeight); in EndPointsFromAngle() 346 cornerPoint.set(-halfWidth, halfHeight); in EndPointsFromAngle() 354 secondPoint.set(halfWidth + endX, halfHeight - endY); in EndPointsFromAngle() 355 firstPoint.set(halfWidth - endX, halfHeight + endY); in EndPointsFromAngle()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/rosen/ |
H A D | drawing_decoration_painter.cpp | 310 float halfWidth = size.Width() / 2; in EndPointsFromAngle() local 313 cornerPoint = RSPoint(halfWidth, halfHeight); in EndPointsFromAngle() 315 cornerPoint = RSPoint(halfWidth, -halfHeight); in EndPointsFromAngle() 317 cornerPoint = RSPoint(-halfWidth, -halfHeight); in EndPointsFromAngle() 319 cornerPoint = RSPoint(-halfWidth, halfHeight); in EndPointsFromAngle() 327 secondPoint = RSPoint(halfWidth + endX, halfHeight - endY); in EndPointsFromAngle() 328 firstPoint = RSPoint(halfWidth - endX, halfHeight + endY); in EndPointsFromAngle()
|
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/ |
H A D | render_tab_bar.cpp | 220 double halfWidth = GetLayoutParam().GetMaxSize().Width() / DOUBLE_FACTOR; in LayoutChildren() local 221 if (actualWidth_ < halfWidth) { in LayoutChildren() 223 double averageWidth = halfWidth / tabsSize_; in LayoutChildren()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/utils/ |
H A D | drag_animation_helper.cpp | 54 OffsetF curPos = {child.offset.GetX() + child.halfWidth, child.offset.GetY() + child.halfHeight}; in CalcDistanceBeforeLifting() 113 auto curPos = child.offset + OffsetF(child.halfWidth, child.halfHeight);
|
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_decoration_painter.cpp | 410 float halfWidth = size.width() / 2; in EndPointsFromAngle() local 413 cornerPoint.set(halfWidth, halfHeight); in EndPointsFromAngle() 415 cornerPoint.set(halfWidth, -halfHeight); in EndPointsFromAngle() 417 cornerPoint.set(-halfWidth, -halfHeight); in EndPointsFromAngle() 419 cornerPoint.set(-halfWidth, halfHeight); in EndPointsFromAngle() 427 secondPoint.set(halfWidth + endX, halfHeight - endY); in EndPointsFromAngle() 428 firstPoint.set(halfWidth - endX, halfHeight + endY); in EndPointsFromAngle() 459 float halfWidth = size.Width() / 2; in EndPointsFromAngle() local 462 cornerPoint = { halfWidth, halfHeight }; in EndPointsFromAngle() 464 cornerPoint = { halfWidth, in EndPointsFromAngle() [all...] |
/foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/src/ |
H A D | jpeg_decoder.cpp | 269 const int halfWidth = width >> 1; in CalculateInSampleSize() local 273 while ((halfHeight / inSampleSize) >= reqHeight && (halfWidth / inSampleSize) >= reqWidth) { in CalculateInSampleSize()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/ |
H A D | slider_pattern.cpp | 1127 auto halfWidth = blockSize_.Width() * HALF + static_cast<float>(focusDistance.ConvertToPx()); in GetOutsetInnerFocusPaintRect() local 1129 paintRect.SetRect(RectF(circleCenter_.GetX() - halfWidth + contentOffset.GetX(), in GetOutsetInnerFocusPaintRect() 1130 circleCenter_.GetY() - halfHeight + contentOffset.GetY(), halfWidth / HALF, halfHeight / HALF)); in GetOutsetInnerFocusPaintRect()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/ |
H A D | drag_drop_manager.cpp | 2028 x.SetValue(gatherNodeCenter.GetX() - child.halfWidth); in UpdateGatherNodePosition() 2056 double dis = sqrt(pow(renderPosition.GetX() + child.halfWidth - x, SQUARE_NUMBER) + in CalcGatherNodeMaxDistanceWithPoint()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/ |
H A D | overlay_manager.h | 69 float halfWidth = 0.0f; member
|