*/
// EXTERNAL INCLUDES
-#include <string>
#include <cstdint> // int32_t
+#include <string>
// INTERNAL INCLUDES
#include <dali/public-api/common/dali-common.h>
-#include <dali/public-api/object/base-handle.h>
#include <dali/public-api/events/device.h>
+#include <dali/public-api/object/base-handle.h>
namespace Dali
{
-
namespace Internal DALI_INTERNAL
{
class KeyEvent;
*/
class DALI_CORE_API KeyEvent : public BaseHandle
{
-
public:
-
// Enumerations
/**
* @brief Enumeration for specifying the state of the key event.
- * @SINCE_1_0.0
+ * @SINCE_1_9.27
*/
enum State
{
- Down, ///< Key down @SINCE_1_0.0
- Up, ///< Key up @SINCE_1_0.0
- Last
+ DOWN, ///< Key down @SINCE_1_9.27
+ UP, ///< Key up @SINCE_1_9.27
};
/**
* @SINCE_1_2.36
* @param[in] rhs A reference to the copied handle
*/
- KeyEvent( const KeyEvent& rhs );
+ KeyEvent(const KeyEvent& rhs);
/**
* @brief Move constructor.
* @SINCE_1_9.27
* @param[in] rhs A reference to the moved handle
*/
- KeyEvent( KeyEvent&& rhs );
+ KeyEvent(KeyEvent&& rhs) noexcept;
/**
* @brief Copy assignment operator.
* @param[in] rhs A reference to the copied handle
* @return A reference to this
*/
- KeyEvent& operator=( const KeyEvent& rhs );
+ KeyEvent& operator=(const KeyEvent& rhs);
/**
* @brief Move assignment operator.
* @param[in] rhs A reference to the moved handle
* @return A reference to this
*/
- KeyEvent& operator=( KeyEvent&& rhs );
+ KeyEvent& operator=(KeyEvent&& rhs) noexcept;
/**
* @brief Destructor.
State GetState() const;
public: // Not intended for application developers
-
/// @cond internal
/**
* @brief This constructor is used internally to Create an initialized KeyEvent handle.
* @SINCE_1_9.27
* @param[in] keyEvent A pointer to a newly allocated Dali resource
*/
- explicit DALI_INTERNAL KeyEvent( Internal::KeyEvent* keyEvent );
+ explicit DALI_INTERNAL KeyEvent(Internal::KeyEvent* keyEvent);
/// @endcond
};