#include <dali/public-api/common/vector-wrapper.h>
#include <dali/public-api/common/dali-common.h>
-#include <dali/integration-api/resource-declarations.h>
-
#include <dali/internal/common/message.h>
#include <dali/internal/common/type-abstraction-enums.h>
#include <dali/internal/common/shader-saver.h>
// Gestures
/**
- * Add a newly created gesture.
- * @param[in] gesture The gesture to add.
- * @post The gesture is owned by the UpdateManager.
+ * Set the pan gesture processor.
+ * Pan Gesture processor lives for the lifetime of UpdateManager
+ * @param[in] gesture The gesture processor.
+ * @post The gestureProcessor is owned by the UpdateManager.
*/
- void AddGesture( PanGesture* gesture );
-
- /**
- * Remove a gesture.
- * @pre The gesture has been added to the UpdateManager.
- * @param[in] gesture The gesture to remove.
- * @post The gesture is destroyed.
- */
- void RemoveGesture( PanGesture* gesture );
+ void SetPanGestureProcessor( PanGesture* gestureProcessor );
// Textures
new (slot) LocalType( &manager, &UpdateManager::SetLayerDepths, layers, systemLevel );
}
-inline void AddGestureMessage( UpdateManager& manager, PanGesture* gesture )
-{
- // Message has ownership of PanGesture while in transit from event -> update
- typedef MessageValue1< UpdateManager, OwnerPointer< PanGesture > > LocalType;
-
- // Reserve some memory inside the message queue
- unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
-
- // Construct message in the message queue memory; note that delete should not be called on the return value
- new (slot) LocalType( &manager, &UpdateManager::AddGesture, gesture );
-}
-
-inline void RemoveGestureMessage( UpdateManager& manager, PanGesture* gesture )
-{
- typedef MessageValue1< UpdateManager, PanGesture* > LocalType;
-
- // Reserve some memory inside the message queue
- unsigned int* slot = manager.ReserveMessageSlot( sizeof( LocalType ) );
-
- // Construct message in the message queue memory; note that delete should not be called on the return value
- new (slot) LocalType( &manager, &UpdateManager::RemoveGesture, gesture );
-}
-
inline void AddRendererMessage( UpdateManager& manager, Renderer& object )
{
typedef MessageValue1< UpdateManager, OwnerPointer< Renderer > > LocalType;