scene_string_names.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. /**************************************************************************/
  2. /* scene_string_names.h */
  3. /**************************************************************************/
  4. /* This file is part of: */
  5. /* GODOT ENGINE */
  6. /* https://godotengine.org */
  7. /**************************************************************************/
  8. /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
  9. /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
  10. /* */
  11. /* Permission is hereby granted, free of charge, to any person obtaining */
  12. /* a copy of this software and associated documentation files (the */
  13. /* "Software"), to deal in the Software without restriction, including */
  14. /* without limitation the rights to use, copy, modify, merge, publish, */
  15. /* distribute, sublicense, and/or sell copies of the Software, and to */
  16. /* permit persons to whom the Software is furnished to do so, subject to */
  17. /* the following conditions: */
  18. /* */
  19. /* The above copyright notice and this permission notice shall be */
  20. /* included in all copies or substantial portions of the Software. */
  21. /* */
  22. /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
  23. /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
  24. /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
  25. /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
  26. /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
  27. /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
  28. /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
  29. /**************************************************************************/
  30. #ifndef SCENE_STRING_NAMES_H
  31. #define SCENE_STRING_NAMES_H
  32. #include "core/string/node_path.h"
  33. #include "core/string/string_name.h"
  34. class SceneStringNames {
  35. friend void register_scene_types();
  36. friend void unregister_scene_types();
  37. static SceneStringNames *singleton;
  38. static void create() { singleton = memnew(SceneStringNames); }
  39. static void free() {
  40. memdelete(singleton);
  41. singleton = nullptr;
  42. }
  43. SceneStringNames();
  44. public:
  45. _FORCE_INLINE_ static SceneStringNames *get_singleton() { return singleton; }
  46. StringName resized;
  47. StringName draw;
  48. StringName hidden;
  49. StringName visibility_changed;
  50. StringName input_event;
  51. StringName gui_input;
  52. StringName item_rect_changed;
  53. StringName shader;
  54. StringName tree_entered;
  55. StringName tree_exiting;
  56. StringName tree_exited;
  57. StringName ready;
  58. StringName size_flags_changed;
  59. StringName minimum_size_changed;
  60. StringName sleeping_state_changed;
  61. StringName update;
  62. StringName updated;
  63. StringName line_separation;
  64. StringName font;
  65. StringName font_size;
  66. StringName font_color;
  67. StringName mouse_entered;
  68. StringName mouse_exited;
  69. StringName mouse_shape_entered;
  70. StringName mouse_shape_exited;
  71. StringName focus_entered;
  72. StringName focus_exited;
  73. StringName pre_sort_children;
  74. StringName sort_children;
  75. StringName finished;
  76. StringName animation_finished;
  77. StringName animation_changed;
  78. StringName animation_started;
  79. StringName RESET;
  80. StringName pose_updated;
  81. StringName skeleton_updated;
  82. StringName bone_enabled_changed;
  83. StringName show_rest_only_changed;
  84. StringName body_shape_entered;
  85. StringName body_entered;
  86. StringName body_shape_exited;
  87. StringName body_exited;
  88. StringName area_shape_entered;
  89. StringName area_shape_exited;
  90. StringName _ready;
  91. StringName screen_entered;
  92. StringName screen_exited;
  93. StringName _spatial_editor_group;
  94. StringName _request_gizmo;
  95. StringName offset;
  96. StringName rotation_mode;
  97. StringName rotate;
  98. StringName v_offset;
  99. StringName h_offset;
  100. StringName area_entered;
  101. StringName area_exited;
  102. StringName frame_changed;
  103. StringName texture_changed;
  104. StringName autoplay;
  105. StringName blend_times;
  106. StringName speed;
  107. NodePath path_pp;
  108. StringName default_; // "default", conflict with C++ keyword.
  109. StringName node_configuration_warning_changed;
  110. StringName output;
  111. StringName Master;
  112. StringName window_input;
  113. StringName theme_changed;
  114. StringName shader_overrides_group;
  115. StringName shader_overrides_group_active;
  116. StringName _custom_type_script;
  117. StringName pressed;
  118. StringName id_pressed;
  119. StringName toggled;
  120. StringName panel;
  121. StringName item_selected;
  122. StringName confirmed;
  123. StringName text_changed;
  124. StringName text_submitted;
  125. StringName value_changed;
  126. };
  127. #define SceneStringName(m_name) SceneStringNames::get_singleton()->m_name
  128. #endif // SCENE_STRING_NAMES_H