X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fevents%2Ftouch-event-processor.h;h=9306e6fa8b071edf330c45e4d8ab0c827aa412e1;hb=180a454b481807369761b740f6fe6d473aebfbd3;hp=a7d64b90bc8837eaea6fe4b70c57cbf080dc875a;hpb=431fdb6a62babf5e0d757b59a85de4ec460e18c0;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/events/touch-event-processor.h b/dali/internal/event/events/touch-event-processor.h index a7d64b9..9306e6f 100644 --- a/dali/internal/event/events/touch-event-processor.h +++ b/dali/internal/event/events/touch-event-processor.h @@ -1,8 +1,8 @@ -#ifndef __DALI_INTERNAL_TOUCH_EVENT_PROCESSOR_H__ -#define __DALI_INTERNAL_TOUCH_EVENT_PROCESSOR_H__ +#ifndef DALI_INTERNAL_TOUCH_EVENT_PROCESSOR_H +#define DALI_INTERNAL_TOUCH_EVENT_PROCESSOR_H /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,8 +19,8 @@ */ // INTERNAL INCLUDES -#include #include +#include namespace Dali { @@ -38,7 +38,7 @@ namespace Internal { class Actor; -class Stage; +class Scene; struct ActorObserver; /** @@ -55,9 +55,9 @@ public: /** * Create an event processor. - * @param[in] stage The stage. + * @param[in] scene The scene the event processor belongs to. */ - TouchEventProcessor( Stage& stage ); + TouchEventProcessor( Scene& scene ); /** * Non-virtual destructor; TouchEventProcessor is not a base class @@ -80,15 +80,24 @@ private: private: - Stage& mStage; ///< Used to deliver touch events + Scene& mScene; ///< Used to deliver touch events + + /** + * Called by some actor-observers when the observed actor is disconnected. + * + * @param[in] actor The actor that has been disconnected. + */ + void OnObservedActorDisconnected( Actor* actor ); + ActorObserver mLastPrimaryHitActor; ///< Stores the last primary point hit actor ActorObserver mLastConsumedActor; ///< Stores the last consumed actor + ActorObserver mCapturingTouchActor; ///< Stored the actor that captures touch ActorObserver mTouchDownConsumedActor; ///< Stores the touch-down consumed actor - Dali::RenderTask mLastRenderTask; ///< The RenderTask used for the last hit actor + RenderTaskPtr mLastRenderTask; ///< The RenderTask used for the last hit actor }; } // namespace Internal } // namespace Dali -#endif // __DALI_INTERNAL_TOUCH_EVENT_PROCESSOR_H__ +#endif // DALI_INTERNAL_TOUCH_EVENT_PROCESSOR_H