X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fevents%2Fgesture-event.h;h=d803dcf9b37847617bc10a9f54d4ad7367ff1a0d;hb=ddcfbfa79b3abc35156679717387cdc54e14d550;hp=8d3e0a361b80315005c9c6f60f82576c90e0b17a;hpb=117e63ce5de8e13f1cd932937d6ca19d0e723c88;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 8d3e0a3..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,15 +19,13 @@ */ // INTERNAL INCLUDES -#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. @@ -46,26 +44,35 @@ struct GestureEvent /** * Gesture Type. */ - Gesture::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; + + /** + * The data of the source type. + */ + GestureSourceData sourceData; +protected: // Constructors only to be used by derived structures. /** * 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