EGUIElementTypes.h 2.3 KB

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