Home
last modified time | relevance | path

Searched refs:DragEvent (Results 1 – 25 of 115) sorted by relevance

12345

/foundation/arkui/ace_engine/frameworks/core/gestures/
Dgesture_info.cpp20 void DragEvent::SetData(const RefPtr<UnifiedData>& unifiedData) in SetData()
25 RefPtr<UnifiedData>& DragEvent::GetData() in GetData()
30 void DragEvent::SetSummary(std::map<std::string, int64_t>& summary) in SetSummary()
35 std::map<std::string, int64_t>& DragEvent::GetSummary() in GetSummary()
40 void DragEvent::SetResult(DragRet dragRet) in SetResult()
45 DragRet DragEvent::GetResult() in GetResult()
50 Rect DragEvent::GetPreviewRect() in GetPreviewRect()
55 void DragEvent::SetPreviewRect(Rect previewRect) in SetPreviewRect()
60 void DragEvent::UseCustomAnimation(bool useCustomAnimation) in UseCustomAnimation()
65 bool DragEvent::IsUseCustomAnimation() in IsUseCustomAnimation()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
Ddrag_event.h34 class DragEvent : public AceType {
35 DECLARE_ACE_TYPE(DragEvent, AceType) in DECLARE_ACE_TYPE() argument
37DragEvent(GestureEventFunc&& actionStart, GestureEventFunc&& actionUpdate, GestureEventFunc&& acti… in DECLARE_ACE_TYPE()
42 ~DragEvent() override = default;
78 void ReplaceDragEvent(const RefPtr<DragEvent>& dragEvent) in ReplaceDragEvent()
86 void SetCustomDragEvent(const RefPtr<DragEvent>& dragEvent) in SetCustomDragEvent()
154 RefPtr<DragEvent> userCallback_;
155 RefPtr<DragEvent> customCallback_;
Devent_hub.h185 using OnDragFunc = std::function<void(const RefPtr<OHOS::Ace::DragEvent>&, const std::string&)>;
186 using OnNewDragFunc = std::function<void(const RefPtr<OHOS::Ace::DragEvent>&)>;
187 …using OnDragStartFunc = std::function<DragDropInfo(const RefPtr<OHOS::Ace::DragEvent>&, const std:…
208 void FireOnDragEnter(const RefPtr<OHOS::Ace::DragEvent>& info, const std::string& extraParams) in FireOnDragEnter()
223 void FireOnDragLeave(const RefPtr<OHOS::Ace::DragEvent>& info, const std::string& extraParams) in FireOnDragLeave()
238 void FireOnDragMove(const RefPtr<OHOS::Ace::DragEvent>& info, const std::string& extraParams) in FireOnDragMove()
283 void FireOnDrop(const RefPtr<OHOS::Ace::DragEvent>& info, const std::string& extraParams) in FireOnDrop()
Dgesture_event_hub.h96 using OnDragStartFunc = std::function<DragDropBaseInfo(const RefPtr<OHOS::Ace::DragEvent>&, const s…
97 using OnDragDropFunc = std::function<void(const RefPtr<OHOS::Ace::DragEvent>&, const std::string&)>;
275 …void SetDragEvent(const RefPtr<DragEvent>& dragEvent, PanDirection direction, int32_t fingers, Dim… in SetDragEvent()
285 … const RefPtr<DragEvent>& dragEvent, PanDirection direction, int32_t fingers, Dimension distance) in SetCustomDragEvent()
478 const DragDropInfo dragDropInfo, const RefPtr<OHOS::Ace::DragEvent>& dragEvent);
/foundation/window/window_manager/test/systemtest/wms/
Dwindow_drag_test.cpp32 DragEvent event_ = DragEvent::DRAG_EVENT_END;
33 void OnDrag(int32_t x, int32_t y, DragEvent event) override;
36 void TestDragListener::OnDrag(int32_t x, int32_t y, DragEvent event) in OnDrag()
134 ASSERT_EQ(DragEvent::DRAG_EVENT_IN, firstWindowDragListener_->event_);
161 ASSERT_EQ(DragEvent::DRAG_EVENT_IN, firstWindowDragListener_->event_);
167 ASSERT_EQ(DragEvent::DRAG_EVENT_MOVE, firstWindowDragListener_->event_);
201 ASSERT_EQ(DragEvent::DRAG_EVENT_IN, firstWindowDragListener_->event_);
207 ASSERT_EQ(DragEvent::DRAG_EVENT_MOVE, firstWindowDragListener_->event_);
213 ASSERT_EQ(DragEvent::DRAG_EVENT_IN, secondWindowDragListener_->event_);
214 ASSERT_EQ(DragEvent::DRAG_EVENT_OUT, firstWindowDragListener_->event_);
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
Djs_drag_function.h36 JSRef<JSVal> Execute(const RefPtr<DragEvent>& info);
42 JSRef<JSVal> Execute(const RefPtr<DragEvent>& info, const std::string& extraParams);
45 JSRef<JSObject> CreateDragEvent(const RefPtr<DragEvent>& info);
78 void SetDragEvent(const RefPtr<DragEvent>& dragEvent) in SetDragEvent()
83 RefPtr<DragEvent> GetDragEvent() const in GetDragEvent()
94 RefPtr<DragEvent> dragEvent_;
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
Devent_util.cpp84 JSValue EventUtil::CreateSwipeEvent(UIView &view, const DragEvent &event) in CreateSwipeEvent()
92 case DragEvent::DIRECTION_LEFT_TO_RIGHT: { in CreateSwipeEvent()
97 case DragEvent::DIRECTION_RIGHT_TO_LEFT: { in CreateSwipeEvent()
102 case DragEvent::DIRECTION_TOP_TO_BOTTOM: { in CreateSwipeEvent()
107 case DragEvent::DIRECTION_BOTTOM_TO_TOP: { in CreateSwipeEvent()
120 JSValue EventUtil::CreateTouchEvent(UIView &view, const DragEvent &event) in CreateTouchEvent()
Devent_util.h44 static JSValue CreateSwipeEvent(UIView &view, const DragEvent &event);
50 static JSValue CreateTouchEvent(UIView &view, const DragEvent &event);
/foundation/arkui/ui_lite/interfaces/kits/events/
Ddrag_event.h47 class DragEvent : public Event {
58 DragEvent(const Point& newPos, const Point& lastPos, const Point& totalLen) : Event(newPos) in DragEvent() function
73 virtual ~DragEvent() {} in ~DragEvent()
/foundation/arkui/ui_lite/interfaces/kits/components/
Dui_scroll_view.h151 bool OnDragEvent(const DragEvent& event) override;
153 bool OnDragEndEvent(const DragEvent& event) override;
244 void Drag(const DragEvent& event);
Dui_view.h200 virtual bool OnDragStart(UIView& view, const DragEvent& event) in OnDragStart()
215 virtual bool OnDrag(UIView& view, const DragEvent& event) in OnDrag()
230 virtual bool OnDragEnd(UIView& view, const DragEvent& event) in OnDragEnd()
504 virtual bool OnDragStartEvent(const DragEvent& event);
515 virtual bool OnDragEvent(const DragEvent& event);
526 virtual bool OnDragEndEvent(const DragEvent& event);
Dui_slider.h271 bool OnDragEvent(const DragEvent& event) override;
273 bool OnDragEndEvent(const DragEvent& event) override;
Dui_swipe_view.h208 bool OnDragEvent(const DragEvent& event) override;
210 bool OnDragEndEvent(const DragEvent& event) override;
/foundation/arkui/ui_lite/frameworks/dock/
Dpointer_input_device.cpp198 DragEvent evt(curPos_, lastPos_, dragLen_); in DispatchDragStartEvent()
202 DragEvent evtParent(curPos_, lastPos_, dragLen_); in DispatchDragStartEvent()
221 DragEvent evt(curPos_, lastPos_, dragLen_); in DispatchDragEvent()
225 DragEvent evtParent(curPos_, lastPos_, dragLen_); in DispatchDragEvent()
242 DragEvent evt(curPos_, lastPos_, dragLen_); in DispatchDragEndEvent()
247 DragEvent evtParent(curPos_, lastPos_, dragLen_); in DispatchDragEndEvent()
/foundation/arkui/ui_lite/frameworks/components/
Dui_swipe_view.cpp154 bool UISwipeView::OnDragEvent(const DragEvent& event) in OnDragEvent()
176 bool UISwipeView::OnDragEndEvent(const DragEvent& event) in OnDragEndEvent()
219 …dir = (lastRotateLen >= 0) ? DragEvent::DIRECTION_LEFT_TO_RIGHT : DragEvent::DIRECTION_RIGHT_TO_LE… in OnRotateEndEvent()
221 …dir = (lastRotateLen >= 0) ? DragEvent::DIRECTION_TOP_TO_BOTTOM : DragEvent::DIRECTION_BOTTOM_TO_T… in OnRotateEndEvent()
460 if (offset > threshold && (dragDirection == DragEvent::DIRECTION_TOP_TO_BOTTOM || in RefreshCurrentViewByThrow()
461 dragDirection == DragEvent::DIRECTION_LEFT_TO_RIGHT)) { in RefreshCurrentViewByThrow()
463 … } else if ((offset < -threshold) && (dragDirection == DragEvent::DIRECTION_BOTTOM_TO_TOP || in RefreshCurrentViewByThrow()
464 … dragDirection == DragEvent::DIRECTION_RIGHT_TO_LEFT)) { in RefreshCurrentViewByThrow()
Dui_abstract_scroll.cpp274 …if (dragDistanceY > 0 || (dragDistanceY == 0 && dragDirection == DragEvent::DIRECTION_TOP_TO_BOTTO… in CalculateDragDistance()
277 … (dragDistanceY == 0 && dragDirection == DragEvent::DIRECTION_BOTTOM_TO_TOP)) { in CalculateDragDistance()
289 …if (dragDistanceX > 0 || (dragDistanceX == 0 && dragDirection == DragEvent::DIRECTION_LEFT_TO_RIGH… in CalculateDragDistance()
292 … (dragDistanceX == 0 && dragDirection == DragEvent::DIRECTION_RIGHT_TO_LEFT)) { in CalculateDragDistance()
377 …dir = (lastRotateLen >= 0) ? DragEvent::DIRECTION_LEFT_TO_RIGHT : DragEvent::DIRECTION_RIGHT_TO_LE… in OnRotateEndEvent()
379 …dir = (lastRotateLen >= 0) ? DragEvent::DIRECTION_TOP_TO_BOTTOM : DragEvent::DIRECTION_BOTTOM_TO_T… in OnRotateEndEvent()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
Dweb_model_impl.h87 …std::function<NG::DragDropBaseInfo(const RefPtr<OHOS::Ace::DragEvent>& info, const std::string& ex…
90 …std::function<void(const RefPtr<OHOS::Ace::DragEvent>&, const std::string&)>&& onDragEnter) overri…
91 …void SetOnDragMove(std::function<void(const RefPtr<DragEvent>&, const std::string&)>&& onDragMoveI…
92 …void SetOnDragLeave(std::function<void(const RefPtr<DragEvent>&, const std::string&)>&& onDragLeav…
93 …void SetOnDrop(std::function<void(const RefPtr<DragEvent>&, const std::string&)>&& onDropId) overr…
/foundation/ability/dmsfwk/services/dtbschedmgr/test/missionCenterDemo/dmsDemo/entry/src/main/ets/pages/
DIndex.ets70 .onDragEnter((event: DragEvent) => {
74 .onDragLeave((event: DragEvent) => {
78 .onDrop((event: DragEvent, extraParams: string) => {
109 .onDragEnter((event: DragEvent) => {
113 .onDragLeave((event: DragEvent) => {
117 .onDrop((event: DragEvent, extraParams: string) => {
/foundation/arkui/ui_lite/test/unittest/events/
Ddrag_event_unit_test.cpp37 static DragEvent* dragEvent_;
40 DragEvent* DragEventTest::dragEvent_ = nullptr;
45 dragEvent_ = new DragEvent(NEW_POS, LAST_POS, TOTAL_LEN); in SetUpTestCase()
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
Dview_abstract.h210 …std::function<DragDropInfo(const RefPtr<OHOS::Ace::DragEvent>&, const std::string&)>&& onDragStart…
212 std::function<void(const RefPtr<OHOS::Ace::DragEvent>&, const std::string&)>&& onDragEnter);
214 std::function<void(const RefPtr<OHOS::Ace::DragEvent>&, const std::string&)>&& onDragLeave);
216 std::function<void(const RefPtr<OHOS::Ace::DragEvent>&, const std::string&)>&& onDragMove);
217 …static void SetOnDrop(std::function<void(const RefPtr<OHOS::Ace::DragEvent>&, const std::string&)>…
219 static void SetOnDragEnd(std::function<void(const RefPtr<OHOS::Ace::DragEvent>&)>&& onDragEnd);
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
Devent_listener.cpp96 bool ViewOnTouchListener::OnDragStart(UIView& view, const DragEvent &event) in OnDragStart()
113 bool ViewOnTouchListener::OnDrag(UIView& view, const DragEvent& event) in OnDrag()
130 bool ViewOnTouchListener::OnDragEnd(UIView& view, const DragEvent &event) in OnDragEnd()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/web/
Dweb_model.h90 …std::function<NG::DragDropBaseInfo(const RefPtr<OHOS::Ace::DragEvent>& info, const std::string& ex…
93 … std::function<void(const RefPtr<OHOS::Ace::DragEvent>& info, const std::string& extraParams)>&&
96 …std::function<void(const RefPtr<DragEvent>& info, const std::string& extraParams)>&& onDragMoveId)…
97 …virtual void SetOnDragLeave(std::function<void(const RefPtr<DragEvent>&, const std::string&)>&& on…
98 …virtual void SetOnDrop(std::function<void(const RefPtr<DragEvent>&, const std::string&)>&& onDropI…
Dweb_model_ng.h92 …std::function<NG::DragDropBaseInfo(const RefPtr<OHOS::Ace::DragEvent>& info, const std::string& ex…
95 …std::function<void(const RefPtr<OHOS::Ace::DragEvent>&, const std::string&)>&& onDragEnter) overri…
97 …std::function<void(const RefPtr<OHOS::Ace::DragEvent>& info, const std::string& extraParams)>&& on…
100 …std::function<void(const RefPtr<OHOS::Ace::DragEvent>&, const std::string&)>&& onDragLeave) overri…
101 …void SetOnDrop(std::function<void(const RefPtr<OHOS::Ace::DragEvent>&, const std::string&)>&& onDr…
/foundation/arkui/ace_engine/frameworks/core/components_ng/test/event/drag_event/
Ddrag_event_test_ng.cpp98 const DragEvent dragEvent =
99DragEvent(std::move(actionStart), std::move(actionUpdate), std::move(actionEnd), std::move(actionC…
181 auto dragEvent = AceType::MakeRefPtr<DragEvent>(
233 auto dragEvent = AceType::MakeRefPtr<DragEvent>(
281 auto dragEventNullptr = AceType::MakeRefPtr<DragEvent>(nullptr, nullptr, nullptr, nullptr);
/foundation/arkui/ui_lite/test/uitest/test_input_event/
Dui_test_input_event.h148 virtual bool OnDragStart(UIView& view, const DragEvent& event) in OnDragStart()
157 virtual bool OnDrag(UIView& view, const DragEvent& event) in OnDrag()
166 virtual bool OnDragEnd(UIView& view, const DragEvent& event) in OnDragEnd()

12345