1 #ifndef __DALI_INTERNAL_HOVER_EVENT_PROCESSOR_H__
2 #define __DALI_INTERNAL_HOVER_EVENT_PROCESSOR_H__
5 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/internal/event/events/actor-observer.h>
23 #include <dali/internal/event/render-tasks/render-task-impl.h>
44 * <h3>Multi-Hover Event Processing:</h3>
46 * The HoverEventProcessor processes hover events and emits the Hovered signal on the hit actor (and
49 * - Hit Testing & Hover Event Delivery are described in Dali::Actor.
51 class HoverEventProcessor
56 * Create an event processor.
57 * @param[in] scene The scene the event processor belongs to.
59 HoverEventProcessor( Scene& scene );
62 * Non-virtual destructor; HoverEventProcessor is not a base class
64 ~HoverEventProcessor();
67 * This function is called by the event processor whenever a hover event occurs.
68 * @param[in] event The hover event that has occurred.
70 void ProcessHoverEvent( const Integration::HoverEvent& event );
75 HoverEventProcessor(const HoverEventProcessor&);
78 HoverEventProcessor& operator=(const HoverEventProcessor& rhs);
80 Scene& mScene; ///< Reference to the scene
81 ActorObserver mLastPrimaryHitActor; ///< Stores the last primary point hit actor
82 ActorObserver mLastConsumedActor; ///< Stores the last consumed actor
83 ActorObserver mHoverStartConsumedActor; ///< Stores the hover-start consumed actor
84 RenderTaskPtr mLastRenderTask; ///< The RenderTask used for the last hit actor
87 } // namespace Internal
91 #endif // __DALI_INTERNAL_HOVER_EVENT_PROCESSOR_H__