1 /*************************************************************************/ 2 /* scene_string_names.h */ 3 /*************************************************************************/ 4 /* This file is part of: */ 5 /* GODOT ENGINE */ 6 /* https://godotengine.org */ 7 /*************************************************************************/ 8 /* Copyright (c) 2007-2020 Juan Linietsky, Ariel Manzur. */ 9 /* Copyright (c) 2014-2020 Godot Engine contributors (cf. AUTHORS.md). */ 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 31 #ifndef SCENE_STRING_NAMES_H 32 #define SCENE_STRING_NAMES_H 33 34 #include "core/node_path.h" 35 #include "core/string_name.h" 36 class SceneStringNames { 37 38 friend void register_scene_types(); 39 friend void unregister_scene_types(); 40 41 static SceneStringNames *singleton; 42 create()43 static void create() { singleton = memnew(SceneStringNames); } free()44 static void free() { 45 memdelete(singleton); 46 singleton = NULL; 47 } 48 49 SceneStringNames(); 50 51 public: get_singleton()52 _FORCE_INLINE_ static SceneStringNames *get_singleton() { return singleton; } 53 54 StringName _estimate_cost; 55 StringName _compute_cost; 56 57 StringName resized; 58 StringName dot; 59 StringName doubledot; 60 StringName draw; 61 StringName hide; 62 StringName visibility_changed; 63 StringName input_event; 64 StringName _input_event; 65 StringName gui_input; 66 StringName _gui_input; 67 StringName item_rect_changed; 68 StringName shader; 69 StringName shader_unshaded; 70 StringName shading_mode; 71 StringName tree_entered; 72 StringName tree_exiting; 73 StringName tree_exited; 74 StringName ready; 75 StringName size_flags_changed; 76 StringName minimum_size_changed; 77 StringName sleeping_state_changed; 78 StringName idle; 79 StringName iteration; 80 StringName update; 81 StringName updated; 82 83 StringName line_separation; 84 85 StringName mouse_entered; 86 StringName mouse_exited; 87 StringName focus_entered; 88 StringName focus_exited; 89 90 StringName sort_children; 91 92 StringName finished; 93 StringName emission_finished; 94 StringName animation_finished; 95 StringName animation_changed; 96 StringName animation_started; 97 98 StringName body_shape_entered; 99 StringName body_entered; 100 StringName body_shape_exited; 101 StringName body_exited; 102 103 StringName area_shape_entered; 104 StringName area_shape_exited; 105 106 StringName _body_inout; 107 StringName _area_inout; 108 109 StringName _get_gizmo_geometry; 110 StringName _can_gizmo_scale; 111 112 StringName _physics_process; 113 StringName _process; 114 StringName _enter_world; 115 StringName _exit_world; 116 StringName _enter_tree; 117 StringName _exit_tree; 118 StringName _draw; 119 StringName _input; 120 StringName _ready; 121 StringName _unhandled_input; 122 StringName _unhandled_key_input; 123 124 StringName _pressed; 125 StringName _toggled; 126 127 StringName _update_scroll; 128 StringName _update_xform; 129 130 StringName _clips_input; 131 132 StringName _proxgroup_add; 133 StringName _proxgroup_remove; 134 135 StringName grouped; 136 StringName ungrouped; 137 138 StringName has_point; 139 StringName get_drag_data; 140 StringName can_drop_data; 141 StringName drop_data; 142 143 StringName screen_entered; 144 StringName screen_exited; 145 StringName viewport_entered; 146 StringName viewport_exited; 147 StringName camera_entered; 148 StringName camera_exited; 149 150 StringName _body_enter_tree; 151 StringName _body_exit_tree; 152 153 StringName _area_enter_tree; 154 StringName _area_exit_tree; 155 156 StringName changed; 157 StringName _shader_changed; 158 159 StringName _spatial_editor_group; 160 StringName _request_gizmo; 161 162 StringName offset; 163 StringName unit_offset; 164 StringName rotation_mode; 165 StringName rotate; 166 StringName v_offset; 167 StringName h_offset; 168 169 StringName transform_pos; 170 StringName transform_rot; 171 StringName transform_scale; 172 173 StringName _update_remote; 174 StringName _update_pairs; 175 176 StringName area_entered; 177 StringName area_exited; 178 179 StringName _get_minimum_size; 180 181 StringName _im_update; 182 StringName _queue_update; 183 184 StringName baked_light_changed; 185 StringName _baked_light_changed; 186 187 StringName _mouse_enter; 188 StringName _mouse_exit; 189 190 StringName frame_changed; 191 192 StringName playback_speed; 193 StringName playback_active; 194 StringName autoplay; 195 StringName blend_times; 196 StringName speed; 197 198 NodePath path_pp; 199 200 StringName _default; 201 202 StringName node_configuration_warning_changed; 203 204 StringName output; 205 206 StringName parameters_base_path; 207 208 StringName tracks_changed; 209 210 enum { 211 MAX_MATERIALS = 32 212 }; 213 StringName mesh_materials[MAX_MATERIALS]; 214 StringName _mesh_changed; 215 }; 216 217 #endif // SCENE_STRING_NAMES_H 218