EFocusFlags.h 1.2 KB

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