MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _notification

Method _notification

editor/scene/3d/node_3d_editor_plugin.cpp:140–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138constexpr real_t MAX_FOV = 179;
139
140void ViewportNavigationControl::_notification(int p_what) {
141 switch (p_what) {
142 case NOTIFICATION_DRAW: {
143 if (viewport != nullptr) {
144 _draw();
145 _update_navigation();
146 }
147 } break;
148
149 case NOTIFICATION_MOUSE_ENTER: {
150 hovered = true;
151 queue_redraw();
152 } break;
153
154 case NOTIFICATION_MOUSE_EXIT: {
155 hovered = false;
156 queue_redraw();
157 } break;
158 }
159}
160
161void ViewportNavigationControl::_draw() {
162 if (nav_mode == Node3DEditorViewport::NAVIGATION_NONE) {

Callers

nothing calls this directly

Calls 15

MINFunction · 0.85
vformatFunction · 0.85
TTRFunction · 0.85
find_keycode_nameFunction · 0.85
rtosFunction · 0.85
powFunction · 0.85
MAXFunction · 0.85
remapFunction · 0.85
override_button_styleboxFunction · 0.85
roundFunction · 0.85
get_sizeFunction · 0.85
keycode_get_stringFunction · 0.85

Tested by

no test coverage detected