EGUIElementTypes.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. // Copyright (C) 2002-2012 Nikolaus Gebhardt
  2. // This file is part of the "Irrlicht Engine".
  3. // For conditions of distribution and use, see copyright notice in irrlicht.h
  4. #ifndef __E_GUI_ELEMENT_TYPES_H_INCLUDED__
  5. #define __E_GUI_ELEMENT_TYPES_H_INCLUDED__
  6. #include "irrTypes.h"
  7. namespace irr
  8. {
  9. namespace gui
  10. {
  11. //! List of all basic Irrlicht GUI elements.
  12. /** An IGUIElement returns this when calling IGUIElement::getType(); */
  13. enum EGUI_ELEMENT_TYPE
  14. {
  15. //! A button (IGUIButton)
  16. EGUIET_BUTTON = 0,
  17. //! A check box (IGUICheckBox)
  18. EGUIET_CHECK_BOX,
  19. //! A combo box (IGUIComboBox)
  20. EGUIET_COMBO_BOX,
  21. //! A context menu (IGUIContextMenu)
  22. EGUIET_CONTEXT_MENU,
  23. //! A menu (IGUIMenu)
  24. EGUIET_MENU,
  25. //! An edit box (IGUIEditBox)
  26. EGUIET_EDIT_BOX,
  27. //! A file open dialog (IGUIFileOpenDialog)
  28. EGUIET_FILE_OPEN_DIALOG,
  29. //! A color select open dialog (IGUIColorSelectDialog)
  30. EGUIET_COLOR_SELECT_DIALOG,
  31. //! A in/out fader (IGUIInOutFader)
  32. EGUIET_IN_OUT_FADER,
  33. //! An image (IGUIImage)
  34. EGUIET_IMAGE,
  35. //! A list box (IGUIListBox)
  36. EGUIET_LIST_BOX,
  37. //! A mesh viewer (IGUIMeshViewer)
  38. EGUIET_MESH_VIEWER,
  39. //! A message box (IGUIWindow)
  40. EGUIET_MESSAGE_BOX,
  41. //! A modal screen
  42. EGUIET_MODAL_SCREEN,
  43. //! A scroll bar (IGUIScrollBar)
  44. EGUIET_SCROLL_BAR,
  45. //! A spin box (IGUISpinBox)
  46. EGUIET_SPIN_BOX,
  47. //! A static text (IGUIStaticText)
  48. EGUIET_STATIC_TEXT,
  49. //! A tab (IGUITab)
  50. EGUIET_TAB,
  51. //! A tab control
  52. EGUIET_TAB_CONTROL,
  53. //! A Table
  54. EGUIET_TABLE,
  55. //! A tool bar (IGUIToolBar)
  56. EGUIET_TOOL_BAR,
  57. //! A Tree View
  58. EGUIET_TREE_VIEW,
  59. //! A window
  60. EGUIET_WINDOW,
  61. //! Unknown type.
  62. EGUIET_ELEMENT,
  63. //! The root of the GUI
  64. EGUIET_ROOT,
  65. //! IGUIProfiler
  66. EGUIET_PROFILER,
  67. //! Not an element, amount of elements in there
  68. EGUIET_COUNT,
  69. //! This enum is never used, it only forces the compiler to compile this enumeration to 32 bit.
  70. EGUIET_FORCE_32_BIT = 0x7fffffff
  71. };
  72. //! Names for built-in element types
  73. const c8* const GUIElementTypeNames[] =
  74. {
  75. "button",
  76. "checkBox",
  77. "comboBox",
  78. "contextMenu",
  79. "menu",
  80. "editBox",
  81. "fileOpenDialog",
  82. "colorSelectDialog",
  83. "inOutFader",
  84. "image",
  85. "listBox",
  86. "meshViewer",
  87. "messageBox",
  88. "modalScreen",
  89. "scrollBar",
  90. "spinBox",
  91. "staticText",
  92. "tab",
  93. "tabControl",
  94. "table",
  95. "toolBar",
  96. "treeview",
  97. "window",
  98. "element",
  99. "root",
  100. "profiler",
  101. 0
  102. };
  103. } // end namespace gui
  104. } // end namespace irr
  105. #endif