Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/scene/scene_string_names.h
20959 views
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
31
#pragma once
32
33
#include "core/string/node_path.h"
34
#include "core/string/string_name.h"
35
36
class SceneStringNames {
37
inline static SceneStringNames *singleton = nullptr;
38
39
public:
40
static void create() { singleton = memnew(SceneStringNames); }
41
static void free() {
42
memdelete(singleton);
43
singleton = nullptr;
44
}
45
46
_FORCE_INLINE_ static SceneStringNames *get_singleton() { return singleton; }
47
48
const StringName resized = "resized";
49
const StringName draw = "draw";
50
const StringName hidden = "hidden";
51
const StringName visibility_changed = "visibility_changed";
52
53
const StringName input_event = "input_event";
54
const StringName gui_input = "gui_input";
55
const StringName window_input = "window_input";
56
const StringName nonclient_window_input = "nonclient_window_input";
57
58
const StringName tree_entered = "tree_entered";
59
const StringName tree_exiting = "tree_exiting";
60
const StringName tree_exited = "tree_exited";
61
const StringName ready = "ready";
62
const StringName _ready = "_ready";
63
64
const StringName item_rect_changed = "item_rect_changed";
65
const StringName size_flags_changed = "size_flags_changed";
66
const StringName minimum_size_changed = "minimum_size_changed";
67
const StringName sleeping_state_changed = "sleeping_state_changed";
68
const StringName node_configuration_warning_changed = "node_configuration_warning_changed";
69
const StringName update = "update";
70
const StringName updated = "updated";
71
72
const StringName line_separation = "line_separation";
73
const StringName paragraph_separation = "paragraph_separation";
74
const StringName font = "font";
75
const StringName font_size = "font_size";
76
const StringName font_color = "font_color";
77
78
const StringName mouse_entered = "mouse_entered";
79
const StringName mouse_exited = "mouse_exited";
80
const StringName mouse_shape_entered = "mouse_shape_entered";
81
const StringName mouse_shape_exited = "mouse_shape_exited";
82
const StringName focus_entered = "focus_entered";
83
const StringName focus_exited = "focus_exited";
84
85
const StringName pre_sort_children = "pre_sort_children";
86
const StringName sort_children = "sort_children";
87
88
const StringName finished = "finished";
89
const StringName animation_finished = "animation_finished";
90
const StringName animation_changed = "animation_changed";
91
const StringName animation_started = "animation_started";
92
const StringName RESET = "RESET";
93
94
const StringName pose_updated = "pose_updated";
95
const StringName skeleton_updated = "skeleton_updated";
96
const StringName bone_enabled_changed = "bone_enabled_changed";
97
const StringName show_rest_only_changed = "show_rest_only_changed";
98
99
const StringName body_shape_entered = "body_shape_entered";
100
const StringName body_entered = "body_entered";
101
const StringName body_shape_exited = "body_shape_exited";
102
const StringName body_exited = "body_exited";
103
104
const StringName area_shape_entered = "area_shape_entered";
105
const StringName area_shape_exited = "area_shape_exited";
106
107
const StringName screen_entered = "screen_entered";
108
const StringName screen_exited = "screen_exited";
109
110
const StringName _spatial_editor_group = "_spatial_editor_group";
111
const StringName _request_gizmo = "_request_gizmo";
112
113
const StringName offset = "offset";
114
const StringName rotation_mode = "rotation_mode";
115
const StringName rotate = "rotate";
116
const StringName h_offset = "h_offset";
117
const StringName v_offset = "v_offset";
118
119
const StringName area_entered = "area_entered";
120
const StringName area_exited = "area_exited";
121
122
const StringName frame_changed = "frame_changed";
123
const StringName texture_changed = "texture_changed";
124
125
const StringName autoplay = "autoplay";
126
const StringName blend_times = "blend_times";
127
const StringName speed = "speed";
128
129
const NodePath path_pp = NodePath("..");
130
131
const StringName default_ = "default"; // default would conflict with C++ keyword.
132
const StringName output = "output";
133
134
const StringName Master = "Master"; // Audio bus name.
135
136
const StringName theme_changed = "theme_changed";
137
const StringName shader = "shader";
138
const StringName shader_overrides_group = "_shader_overrides_group_";
139
const StringName shader_overrides_group_active = "_shader_overrides_group_active_";
140
141
const StringName _custom_type_script = "_custom_type_script";
142
143
const StringName pressed = "pressed";
144
const StringName id_pressed = "id_pressed";
145
const StringName toggled = "toggled";
146
const StringName hover = "hover";
147
148
const StringName panel = "panel";
149
const StringName item_selected = "item_selected";
150
const StringName confirmed = "confirmed";
151
152
const StringName text_changed = "text_changed";
153
const StringName text_submitted = "text_submitted";
154
const StringName value_changed = "value_changed";
155
156
const StringName Start = "Start";
157
const StringName End = "End";
158
const StringName state_started = "state_started";
159
const StringName state_finished = "state_finished";
160
161
const StringName FlatButton = "FlatButton";
162
};
163
164
#define SceneStringName(m_name) SceneStringNames::get_singleton()->m_name
165
166