EFocusFlags.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. // This file is part of the "Irrlicht Engine".
  2. // For conditions of distribution and use, see copyright notice in irrlicht.h
  3. #pragma once
  4. namespace irr
  5. {
  6. namespace gui
  7. {
  8. //! Bitflags for defining the the focus behavior of the gui
  9. // (all names start with SET as we might add REMOVE flags later to control that behavior as well)
  10. enum EFOCUS_FLAG
  11. {
  12. //! When set the focus changes when the left mouse-button got clicked while over an element
  13. EFF_SET_ON_LMOUSE_DOWN = 0x1,
  14. //! When set the focus changes when the right mouse-button got clicked while over an element
  15. //! Note that elements usually don't care about right-click and that won't change with this flag
  16. //! This is mostly to allow taking away focus from elements with right-mouse additionally.
  17. EFF_SET_ON_RMOUSE_DOWN = 0x2,
  18. //! When set the focus changes when the mouse-cursor is over an element
  19. EFF_SET_ON_MOUSE_OVER = 0x4,
  20. //! When set the focus can be changed with TAB-key combinations.
  21. EFF_SET_ON_TAB = 0x8,
  22. //! When set it's possible to set the focus to disabled elements.
  23. EFF_CAN_FOCUS_DISABLED = 0x16
  24. };
  25. } // namespace gui
  26. } // namespace irr