BsGUITextInputEvent.h 825 B

123456789101112131415161718192021222324252627282930313233
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsPrerequisites.h"
  5. #include "Input/BsInputFwd.h"
  6. #include "Math/BsVector2I.h"
  7. namespace bs
  8. {
  9. /** @addtogroup GUI
  10. * @{
  11. */
  12. /** A text input event representing input of a single character. */
  13. class BS_EXPORT GUITextInputEvent
  14. {
  15. public:
  16. GUITextInputEvent();
  17. /** Character code that was input. */
  18. const UINT32& getInputChar() const { return mInputChar; }
  19. private:
  20. friend class GUIManager;
  21. /** Initializes the event data with the character that was input. */
  22. void setData(UINT32 inputChar);
  23. UINT32 mInputChar;
  24. };
  25. /** @} */
  26. }