Home
last modified time | relevance | path

Searched refs:VectorF (Results 1 - 25 of 40) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Dvector.h23 struct VectorF { struct
24 VectorF(float xF, float yF) : x(xF), y(yF) {} in VectorF() function
26 bool operator==(const VectorF& other) const in operator ==()
31 VectorF operator*(float value) const in operator *()
33 return VectorF(x * value, y * value); in operator *()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_item_drag_manager.h73 std::map<WeakPtr<RenderContext>, VectorF> scaleNode_;
74 std::map<WeakPtr<RenderContext>, VectorF> prevScaleNode_;
83 VectorF prevScale_{ 1.f, 1.f };
/foundation/arkui/ace_engine/test/mock/adapter/
H A Dmock_mmi_event_convertor.cpp20 const NG::VectorF& scale, int32_t udegree) in CalculatePointerEvent()
23 const NG::VectorF& scale, const int32_t udegree) in CalculateWindowCoordinate()
/foundation/arkui/ace_engine/test/unittest/core/pattern/window_scene/mock/
H A Dmock_mmi_event_convertor.cpp25 const NG::VectorF& scale, int32_t udegree) in CalculatePointerEvent()
29 const NG::VectorF& scale, const int32_t udegree) in CalculateWindowCoordinate()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/particle/
H A Dparticle_model.h52 std::optional<NG::VectorF> position;
53 std::optional<NG::VectorF> size;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/
H A Dmagnifier_controller.h40 bool UpdateMagnifierOffsetX(OffsetF& magnifierPaintOffset, VectorF& magnifierOffset, const OffsetF& basePaintOffset,
42 bool UpdateMagnifierOffsetY(OffsetF& magnifierPaintOffset, VectorF& magnifierOffset, const OffsetF& basePaintOffset,
H A Dselect_overlay_content_modifier.h194 void SetScale(const VectorF& scale) in SetScale()
253 VectorF scale_ = VectorF(1.0f, 1.0f);
H A Dmagnifier_controller.cpp36 bool MagnifierController::UpdateMagnifierOffsetX(OffsetF& magnifierPaintOffset, VectorF& magnifierOffset, in UpdateMagnifierOffsetX()
58 bool MagnifierController::UpdateMagnifierOffsetY(OffsetF& magnifierPaintOffset, VectorF& magnifierOffset, in UpdateMagnifierOffsetY()
111 VectorF magnifierOffset(0.f, 0.f); in UpdateMagnifierOffset()
H A Dselect_overlay_property.h316 VectorF scale = VectorF(1.0f, 1.0f);
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dmmi_event_convertor.h80 const NG::VectorF& scale, int32_t udegree = 0);
83 const NG::VectorF& scale, const int32_t udegree = 0);
H A Dmmi_event_convertor.cpp611 const NG::VectorF& scale, int32_t udegree) in CalculatePointerEvent()
664 const NG::VectorF& scale, const int32_t udegree) in CalculateWindowCoordinate()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dparticle_modifier.cpp65 prop.position = VectorF(values[i * 9 + 4].f32, values[i * 9 + 5].f32); in setEmitter()
68 prop.size = VectorF(values[i * 9 + 7].f32, values[i * 9 + 8].f32); in setEmitter()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/container_modal/
H A Dcontainer_modal_view.cpp297 buttonNodeRenderContext->UpdateTransformScale(VectorF(btnScale, btnScale)); in AddButtonHover()
298 imageIconRenderContext->UpdateTransformScale(VectorF(1 / imageScale, 1 / imageScale)); in AddButtonHover()
303 buttonNodeRenderContext->UpdateTransformScale(VectorF(btnScale, btnScale)); in AddButtonHover()
304 imageIconRenderContext->UpdateTransformScale(VectorF(imageScale, imageScale)); in AddButtonHover()
346 buttonNodeRenderContext->UpdateTransformScale(VectorF(btnScale, btnScale)); in AddButtonMouse()
347 imageIconRenderContext->UpdateTransformScale(VectorF(imageScale, imageScale)); in AddButtonMouse()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/preview/
H A Dmenu_preview_pattern.cpp65 context->UpdateTransformScale(VectorF(previewBeforeAnimationScale, previewBeforeAnimationScale)); in ShowScaleAnimation()
70 context->UpdateTransformScale(VectorF(previewAfterAnimationScale, previewAfterAnimationScale)); in ShowScaleAnimation()
152 context->UpdateTransformScale(VectorF(previewAfterAnimationScale, previewAfterAnimationScale)); in UpdateShowScale()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
H A Dmenu_pattern.cpp1142 renderContext->UpdateTransformScale(VectorF(menuAnimationScale, menuAnimationScale)); in ShowPreviewMenuAnimation()
1156 renderContext->UpdateTransformScale(VectorF(1.0f, 1.0f)); in ShowPreviewMenuAnimation()
1182 renderContext->UpdateTransformScale(VectorF(MENU_ORIGINAL_SCALE, MENU_ORIGINAL_SCALE)); in ShowMenuAppearAnimation()
1194 renderContext->UpdateTransformScale(VectorF(1.0f, 1.0f)); in ShowMenuAppearAnimation()
1244 outterMenuContext->UpdateTransformScale(VectorF(MOUNT_MENU_FINAL_SCALE, MOUNT_MENU_FINAL_SCALE)); in ShowStackExpandMenu()
1364 menuContext->UpdateTransformScale(VectorF(1.0f, 1.0f)); in ShowStackExpandDisappearAnimation()
1407 menuContext->UpdateTransformScale(VectorF(MENU_ORIGINAL_SCALE, MENU_ORIGINAL_SCALE)); in ShowMenuDisappearAnimation()
H A Dmenu_view.cpp420 stackContext->UpdateTransformScale(VectorF(scaleFrom, scaleFrom)); in UpdateHoverImagePreviewScale()
456 stackContext->UpdateTransformScale(VectorF(scaleTo, scaleTo)); in UpdateHoverImagePreviewScale()
506 stackContext->UpdateTransformScale(VectorF(scaleFrom, scaleFrom)); in ShowHoverImageAnimationProc()
531 stackContext->UpdateTransformScale(VectorF(scaleTo, scaleTo)); in ShowHoverImageAnimationProc()
561 imageContext->UpdateTransformScale(VectorF(previewBeforeAnimationScale, previewBeforeAnimationScale)); in ShowPixelMapScaleAnimationProc()
572 imageContext->UpdateTransformScale(VectorF(previewAfterAnimationScale, previewAfterAnimationScale)); in ShowPixelMapScaleAnimationProc()
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dframe_node.h76 VectorF cumulativeScale = {1.0f, 1.0f};
451 VectorF GetTransformScaleRelativeToWindow() const;
471 VectorF GetTransformScale() const;
1259 const RefPtr<FrameNode>& parentUi, RectF& rectToParent, VectorF scale, uint64_t timestamp);
H A Dview_abstract.h258 static void SetScale(const NG::VectorF &value);
523 static void SetScale(FrameNode* frameNode, const NG::VectorF& value);
720 static NG::VectorF GetScale(FrameNode* frameNode);
H A Dinspector.cpp533 VectorF defScale = VectorF(1.0, 1.0); in GetRectangleById()
534 VectorF scale = renderContext->GetTransformScaleValue(defScale); in GetRectangleById()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Drender_property.h179 ACE_DEFINE_PROPERTY_GROUP_ITEM(TransformScale, VectorF);
H A Drender_context.h320 virtual void OnTransformScaleUpdate(const VectorF& value) {} in OnTransformScaleUpdate()
524 ACE_DEFINE_PROPERTY_FUNC_WITH_GROUP(Transform, TransformScale, VectorF);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dbase_text_select_overlay.h208 VectorF GetHostScale();
H A Dbase_text_select_overlay.cpp693 VectorF BaseTextSelectOverlay::GetHostScale() in GetHostScale()
696 auto unitScale = VectorF(1, 1); in GetHostScale()
717 return VectorF(1.0f / scaleX, 1.0f / scaleY); in GetHostScale()
1055 VectorF scaleIdentity(1.0f, 1.0f); in CheckHasTransformAttr()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drosen_render_context.h457 void OnTransformScaleUpdate(const VectorF& value) override;
718 VectorF currentScale_ = VectorF(1.0f, 1.0f);
/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/
H A Doverlay_test_ng.cpp761 previewContext->UpdateTransformScale(VectorF(1.0f, 1.0f)); in HWTEST_F()
762 menuContext->UpdateTransformScale(VectorF(1.0f, 1.0f)); in HWTEST_F()
776 EXPECT_EQ(menuContext->GetTransformScale(), VectorF(1.0f, 1.0f)); in HWTEST_F()
777 EXPECT_EQ(previewContext->GetTransformScale(), VectorF(1.0f, 1.0f)); in HWTEST_F()
826 previewContext->UpdateTransformScale(VectorF(0.0f, 0.0f)); in HWTEST_F()
827 menuContext->UpdateTransformScale(VectorF(0.0f, 0.0f)); in HWTEST_F()
837 EXPECT_EQ(menuContext->GetTransformScale(), VectorF(1.0f, 1.0f)); in HWTEST_F()
838 EXPECT_EQ(previewContext->GetTransformScale(), VectorF(1.0f, 1.0f)); in HWTEST_F()

Completed in 31 milliseconds

12