X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fevents%2Fgesture-event.h;h=d803dcf9b37847617bc10a9f54d4ad7367ff1a0d;hb=ddcfbfa79b3abc35156679717387cdc54e14d550;hp=cb4dd77fa8ed0c1bcc36181e52f3e81d1c1558e0;hpb=f3f8bc545f5051ea842dddfefb49a2a492d2bdf5;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/events/gesture-event.h b/dali/internal/event/events/gesture-event.h index cb4dd77..d803dcf 100644 --- a/dali/internal/event/events/gesture-event.h +++ b/dali/internal/event/events/gesture-event.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_EVENT_GESTURE_EVENT_H /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 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,16 +19,13 @@ */ // INTERNAL INCLUDES -#include -#include #include +#include namespace Dali { - namespace Internal { - /** * This is the abstract base structure for any gestures that the adaptor detects and wishes to send * to the Core. @@ -47,31 +44,35 @@ struct GestureEvent /** * Gesture Type. */ - DevelGesture::Type gestureType; + GestureType::Value gestureType; /** * The state of the gesture. */ - Gesture::State state; + GestureState state; /** * The time the gesture took place. */ uint32_t time; -protected: // Constructors only to be used by derived structures. + /** + * This is the value of which source the gesture was started with. (ex : mouse) + */ + GestureSourceType sourceType; /** - * This constructor is only used by derived classes. - * @param[in] gesture The type of gesture event. - * @param[in] gestureState The state of the gesture event. + * The data of the source type. */ - GestureEvent( DevelGesture::Type gesture, Gesture::State gestureState); + GestureSourceData sourceData; +protected: // Constructors only to be used by derived structures. /** - * @copydoc GestureEvent( DevelGesture::Type, Gesture::State ) + * This constructor is only used by derived classes. + * @param[in] gesture The type of gesture event. + * @param[in] gestureState The state of the gesture event. */ - GestureEvent( Gesture::Type gesture, Gesture::State gestureState ); + GestureEvent(GestureType::Value gesture, GestureState gestureState); }; } // namespace Internal