/foundation/arkui/ace_engine/frameworks/core/accessibility/ |
H A D | accessibility_utils.cpp | 102 double distance = 0.0; in MajorAxisDistanceToFarEdge() local 105 distance = nodeRect.Left() - itemRect.Left(); in MajorAxisDistanceToFarEdge() 108 distance = itemRect.Right() - nodeRect.Right(); in MajorAxisDistanceToFarEdge() 111 distance = nodeRect.Top() - itemRect.Top(); in MajorAxisDistanceToFarEdge() 114 distance = itemRect.Bottom() - nodeRect.Bottom(); in MajorAxisDistanceToFarEdge() 120 return distance > 1.0 ? distance : 1.0; in MajorAxisDistanceToFarEdge() 125 double distance = 0.0; in MajorAxisDistance() local 128 distance = nodeRect.Left() - itemRect.Right(); in MajorAxisDistance() 131 distance in MajorAxisDistance() 148 double distance = 0.0; MinorAxisDistance() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | spring_model.cpp | 72 RefPtr<SpringModel> SpringModel::Build(double distance, double velocity, const RefPtr<SpringProperty>& spring) in Build() argument 80 if (NearZero(distance)) { in Build() 81 LOGE("create CriticalDamped failed, distance can not be zero."); in Build() 84 return AceType::MakeRefPtr<CriticalDampedModel>(distance, velocity, spring); in Build() 86 return AceType::MakeRefPtr<OverdampedModel>(distance, velocity, spring); in Build() 88 return AceType::MakeRefPtr<UnderdampedModel>(distance, velocity, spring); in Build() 94 CriticalDampedModel::CriticalDampedModel(double distance, double velocity, const RefPtr<SpringProperty>& spring) in CriticalDampedModel() argument 96 if (spring && spring->IsValid() && !NearZero(distance)) { in CriticalDampedModel() 98 c1_ = distance; in CriticalDampedModel() 99 c2_ = velocity / (r_ * distance); in CriticalDampedModel() 120 OverdampedModel(double distance, double velocity, const RefPtr<SpringProperty>& spring) OverdampedModel() argument 149 UnderdampedModel(double distance, double velocity, const RefPtr<SpringProperty>& spring) UnderdampedModel() argument [all...] |
H A D | spring_model.h | 87 static RefPtr<SpringModel> Build(double distance, double velocity, const RefPtr<SpringProperty>& spring); 95 CriticalDampedModel(double distance, double velocity, const RefPtr<SpringProperty>& spring); 116 OverdampedModel(double distance, double velocity, const RefPtr<SpringProperty>& spring); 138 UnderdampedModel(double distance, double velocity, const RefPtr<SpringProperty>& spring);
|
/foundation/multimodalinput/input/tools/event_inject/src/ |
H A D | processing_mouse_device.cpp | 73 mouseEvent.distance = item.distance; in AnalysisMouseEvent() 118 uint32_t distance = static_cast<uint32_t>(mouseEvent.distance); in TransformMouseWheelEvent() local 120 distance = ~distance + 1; in TransformMouseWheelEvent() 122 SetRelWheel(inputEventArray, mouseEvent.blockTime, static_cast<int32_t>(distance)); in TransformMouseWheelEvent() 129 uint32_t distance = static_cast<uint32_t>(mouseEvent.distance); in TransformMouseHwheelEvent() local 131 distance in TransformMouseHwheelEvent() [all...] |
H A D | processing_pen_device.cpp | 66 SetAbsDistance(inputEventArray, 0, penEvent.distance); in SetPenApproachPadEvent() 86 if (penEvent.distance == 0) { in SetPenSlidePadEvent() 110 SetAbsDistance(inputEventArray, 0, penEvent.distance); in SetPenSlidePadEvent() 167 penEvent.distance = event.distance; in AnalysisPenApproachPadEvent() 190 penEvent.distance = event.distance; in AnalysisPenSlidePadEvent() 213 penEvent.distance = event.distance; in AnalysisPenLeavePadEvent()
|
/foundation/graphic/graphic_utils_lite/frameworks/diagram/vertexprimitive/ |
H A D | geometry_shorten_path.cpp | 21 * @param vtxSeq data source,distance distance,closed is the path closed. 25 void ShortenPath(GeometryVertexSequence& vtxSeq, float distance, uint32_t closed = 0) in ShortenPath() argument 27 if (vtxSeq.Size() > 1 && distance > 0.0f) { in ShortenPath() 32 if (distance < vtxSeqDistance) { in ShortenPath() 36 distance = distance - vtxSeqDistance; in ShortenPath() 43 vtxSeqDistance = (prev.vertexDistance - distance) / prev.vertexDistance; in ShortenPath()
|
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_swipe_view.cpp | 100 bool UISwipeView::DragXInner(int16_t distance) in DragXInner() argument 102 if (distance == 0) { in DragXInner() 106 if ((distance > 0) && (childrenHead_ != nullptr)) { in DragXInner() 108 distance = 0; in DragXInner() 109 } else if (childrenHead_ && (childrenHead_->GetX() + distance > blankSize_)) { in DragXInner() 110 distance = blankSize_ - childrenHead_->GetX(); in DragXInner() 115 distance = 0; in DragXInner() 116 } else if (width - (childrenTail_->GetX() + childrenTail_->GetWidth() + distance) > blankSize_) { in DragXInner() 117 distance = width - blankSize_ - childrenTail_->GetX() - childrenTail_->GetWidth(); in DragXInner() 122 MoveChildByOffset(distance, in DragXInner() 127 DragYInner(int16_t distance) DragYInner() argument 178 int16_t distance = 0; OnDragEndEvent() local 398 RefreshCurrentViewByThrow(int16_t distance, uint8_t dragDirection, int16_t (UIView::*pfnGetXOrY)() const, int16_t (UIView::*pfnGetWidthOrHeight)()) RefreshCurrentViewByThrow() argument [all...] |
H A D | ui_scroll_view.cpp | 178 bool UIScrollView::DragXInner(int16_t distance) in DragXInner() argument 191 if (distance > 0) { in DragXInner() 193 distance = 0; in DragXInner() 194 } else if ((childRect.GetLeft() + distance) > scrollBlankSize_ + reboundSize) { in DragXInner() 195 distance = scrollBlankSize_ - childRect.GetLeft() + reboundSize; in DragXInner() 201 distance = 0; in DragXInner() 202 } else if (childRight + distance < scrollWidth - (scrollBlankSize_ + reboundSize)) { in DragXInner() 203 distance = scrollWidth - (scrollBlankSize_ + reboundSize) - childRight - 1; in DragXInner() 207 return MoveOffset(distance, 0); in DragXInner() 210 bool UIScrollView::DragYInner(int16_t distance) in DragYInner() argument [all...] |
H A D | ui_list.cpp | 248 void UIList::ScrollBy(int16_t distance) in ScrollBy() argument 251 DragYInner(distance); in ScrollBy() 253 DragXInner(distance); in ScrollBy() 261 bool UIList::DragXInner(int16_t distance) in DragXInner() argument 267 if (distance == 0) { in DragXInner() 276 ret = MoveChildStep(distance); in DragXInner() 280 return MoveOffset(distance, 0); in DragXInner() 282 if (distance > 0) { in DragXInner() 283 if (childrenHead_ && ((childrenHead_->GetX() + distance) > (scrollBlankSize_ + reboundSize))) { in DragXInner() 284 distance in DragXInner() 301 DragYInner(int16_t distance) DragYInner() argument 438 MoveChildStepVertical(int16_t distance) MoveChildStepVertical() argument 476 MoveChildStepHorizontal(int16_t distance) MoveChildStepHorizontal() argument 514 MoveChildStep(int16_t distance) MoveChildStep() argument [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_gesture_ffi.h | 35 CJ_EXPORT void FfiOHOSAceFrameworkPinchGestureCreate(int32_t fingers, double distance); 38 CJ_EXPORT void FfiOHOSAceFrameworkPanGestureCreate(int32_t fingers, uint32_t direction, double distance); 42 CJ_EXPORT int64_t FfiOHOSAceFrameworkPanGestureOptionsCtor(int32_t fingers, uint32_t direction, double distance); 45 CJ_EXPORT void FfiOHOSAceFrameworkPanGestureOptionsSetDistance(int64_t selfID, double distance);
|
/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | ui_abstract_scroll.h | 109 * @brief Sets the maximum scroll distance after a finger lifts the screen. 111 * @param distance Indicates the maximum scroll distance to set. The default value is <b>0</b>, indicating that the 112 * scroll distance is not limited. 116 void SetMaxScrollDistance(uint16_t distance) in SetMaxScrollDistance() argument 118 maxScrollDistance_ = distance; in SetMaxScrollDistance() 122 * @brief Sets the rebound size, which is the distance a knob moves after being released when it reaches the end of 135 * @brief Get the rebound size, which is the distance a knob moves after being released when it reaches the end of 146 * @brief Obtains the maximum scroll distance after a finger lifts the screen. 148 * @return Returns the maximum scroll distance 490 RefreshDelta(int16_t distance) RefreshDelta() argument 498 RefreshRotate(int16_t distance) RefreshRotate() argument [all...] |
H A D | ui_list.h | 234 * @param offsetX Indicates the offset distance by which a child view is moved on the x-axis. 235 * @param offsetY Indicates the offset distance by which a child view is moved on the y-axis. 253 * @param distance Indicates the distance by which the content is scrolled. 257 void ScrollBy(int16_t distance); 427 bool DragXInner(int16_t distance) override; 428 bool DragYInner(int16_t distance) override; 484 bool MoveChildStep(int16_t distance); 485 bool MoveChildStepVertical(int16_t distance); 486 bool MoveChildStepHorizontal(int16_t distance); [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/ |
H A D | model_position.h | 45 void Set(const Vec3& pos, AnimatableFloat distance, bool isAngular) in Set() argument 48 distance_ = distance; in Set() 57 void SetDistance(const AnimatableFloat& distance) in SetDistance() argument 59 distance_ = distance; in SetDistance()
|
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | toss_animation_controller.cpp | 89 double distance = std::pow(DRAG, value); in Play() 90 distance = (distance - 1.0) * ref->speed_ / std::log(DRAG); in Play() 91 column->UpdateToss(ref->yEnd_ + distance); in Play()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_path.cpp | 83 bool RSPath::GetPosTan(float distance, Vector2f& pos, float& degrees) const in GetPosTan() argument 87 bool ret = drPath_->GetPositionAndTangent(distance, position, tangent, false); in GetPosTan() 99 bool RSPath::GetPosTan(float distance, Vector4f& pos, float& degrees) const in GetPosTan() argument 102 bool res = GetPosTan(distance, position, degrees); in GetPosTan()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | picking.cpp | 98 // No hit, set distance to 0. in IntersectAabb() 225 float distance = 0; in HitTestNode() local 226 if (IntersectAabb(meshMinMax.minAABB, meshMinMax.maxAABB, start, invDir, distance)) { in HitTestNode() 232 if (IntersectAabb(submeshMinMax.minAABB, submeshMinMax.maxAABB, start, invDir, distance)) { in HitTestNode() 238 raycastResult.distance = distance; in HitTestNode() 239 raycastResult.worldPosition = start + direction * distance; in HitTestNode() 245 raycastResult.distance = distance; in HitTestNode() 247 raycastResult.worldPosition = start + direction * raycastResult.distance; in HitTestNode() 366 float distance = 0; RayCast() local 423 float distance = 0; RayCast() local 476 float distance = 0.f; RayCast() local [all...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/ |
H A D | event_util.cpp | 29 constexpr char ATTR_DISTANCE[] = "distance"; 89 int32_t distance = 0; in CreateSwipeEvent() local 94 distance = event.GetLastPoint().x - event.GetStartPoint().x; in CreateSwipeEvent() 99 distance = event.GetStartPoint().x - event.GetLastPoint().x; in CreateSwipeEvent() 104 distance = event.GetLastPoint().y - event.GetStartPoint().y; in CreateSwipeEvent() 109 distance = event.GetStartPoint().y - event.GetLastPoint().y; in CreateSwipeEvent() 117 JSObject::SetNumber(arg, ATTR_DISTANCE, distance); in CreateSwipeEvent()
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/ |
H A D | gesture.cpp | 178 void PinchGesture::Create(int32_t fingers, double distance) in Create() argument 184 distanceNum = LessNotEqual(distance, 0.0) ? DEFAULT_PINCH_DISTANCE : distance; in Create() 224 void PanGesture::Create(int32_t fingers, const PanDirection& panDirection, double distance) in Create() argument 230 distanceNum = LessNotEqual(distance, 0.0) ? DEFAULT_PAN_DISTANCE : distance; in Create() 244 NativePanGestureOption::NativePanGestureOption(int32_t fingers, const PanDirection& panDirection, double distance) in NativePanGestureOption() argument 250 SetDistance(distance); in NativePanGestureOption() 269 void NativePanGestureOption::SetDistance(double distance) in SetDistance() argument 275 panGestureOption_->SetDistance(distance); in SetDistance() [all...] |
H A D | gesture.h | 55 static void Create(int32_t fingers, double distance); 76 NativePanGestureOption(int32_t fingers, const PanDirection& panDirection, double distance); 79 void SetDistance(double distance); 98 static void Create(int32_t fingers, const PanDirection& panDirection, double distance);
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/ |
H A D | rs_path.h | 39 bool GetPosTan(float distance, T& pos, float& degrees) const in GetPosTan() argument 59 RSB_EXPORT bool RSPath::GetPosTan(float distance, Vector2f& pos, float& degrees) const; 61 RSB_EXPORT bool RSPath::GetPosTan(float distance, Vector4f& pos, float& degrees) const;
|
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/PathDrawingSample/entry/src/main/cpp/samples/ |
H A D | sample_bitmap.cpp | 165 int distance = 50; // distance between earch point in DrawPathHelper() local 166 float startY = height_ / 4 + 2 * distance; // divide h by 4 and 2 times the distance to get start y in DrawPathHelper() 169 float endY = height_ / 4 + 6 * distance; // divide h by 4 and 6 times the distance to get end y in DrawPathHelper() 183 float rectY1 = height_ / 4 + 2 * distance; // divide h by 4 and 2 times the distance to get rect y1 in DrawPathHelper() 184 float rectY2 = height_ / 4 + 4 * distance; // divide h by 4 and 4 times the distance t in DrawPathHelper() 235 int distance = 50; // distance between earch point DrawPath() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/gestures/ |
H A D | pinch_gesture.h | 34 PinchGesture(int32_t fingers, double distance) : Gesture(fingers), distance_(distance) {} in PinchGesture() argument
|
H A D | pan_recognizer.h | 33 const WeakPtr<PipelineBase>& context, int32_t fingers, const PanDirection& direction, double distance) in PanRecognizer() 34 : direction_(direction), distance_(distance), context_(context) in PanRecognizer() 89 PanDistanceFuncType changeDistance = [weak = AceType::WeakClaim(this)](double distance) { in PanRecognizer() 94 panRecognizer->ChangeDistance(distance); in PanRecognizer() 136 void ChangeDistance(double distance); 32 PanRecognizer( const WeakPtr<PipelineBase>& context, int32_t fingers, const PanDirection& direction, double distance) PanRecognizer() argument
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/ |
H A D | layout_wrapper_node.h | 196 float distance = 0.0; variable 199 distance = NearZero(distance) ? childBaseline : std::min(distance, childBaseline); 201 return distance;
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rspath_fuzzer/ |
H A D | rspath_fuzzer.cpp | 104 float distance = GetData<float>();
in DoGetPosTan() local 107 rsPath->GetPosTan(distance, pos, degrees);
in DoGetPosTan() 111 rsPath->GetPosTan(distance, postion, degrees);
in DoGetPosTan() 112 rsPath->GetPosTan(distance, postions, degrees);
in DoGetPosTan()
|