/**************************************************************************/ /* visible_on_screen_notifier_2d.cpp */ /**************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ /* https://godotengine.org */ /**************************************************************************/ /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ /* "Software"), to deal in the Software without restriction, including */ /* without limitation the rights to use, copy, modify, merge, publish, */ /* distribute, sublicense, and/or sell copies of the Software, and to */ /* permit persons to whom the Software is furnished to do so, subject to */ /* the following conditions: */ /* */ /* The above copyright notice and this permission notice shall be */ /* included in all copies or substantial portions of the Software. */ /* */ /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /**************************************************************************/ #include "visible_on_screen_notifier_2d.h" #ifdef DEBUG_ENABLED Rect2 VisibleOnScreenNotifier2D::_edit_get_rect() const { … } bool VisibleOnScreenNotifier2D::_edit_use_rect() const { … } #endif // DEBUG_ENABLED void VisibleOnScreenNotifier2D::_visibility_enter() { … } void VisibleOnScreenNotifier2D::_visibility_exit() { … } void VisibleOnScreenNotifier2D::set_rect(const Rect2 &p_rect) { … } Rect2 VisibleOnScreenNotifier2D::get_rect() const { … } void VisibleOnScreenNotifier2D::_notification(int p_what) { … } bool VisibleOnScreenNotifier2D::is_on_screen() const { … } void VisibleOnScreenNotifier2D::_bind_methods() { … } VisibleOnScreenNotifier2D::VisibleOnScreenNotifier2D() { … } ////////////////////////////////////// void VisibleOnScreenEnabler2D::_screen_enter() { … } void VisibleOnScreenEnabler2D::_screen_exit() { … } void VisibleOnScreenEnabler2D::set_enable_mode(EnableMode p_mode) { … } VisibleOnScreenEnabler2D::EnableMode VisibleOnScreenEnabler2D::get_enable_mode() { … } void VisibleOnScreenEnabler2D::set_enable_node_path(NodePath p_path) { … } NodePath VisibleOnScreenEnabler2D::get_enable_node_path() { … } void VisibleOnScreenEnabler2D::_update_enable_mode(bool p_enable) { … } void VisibleOnScreenEnabler2D::_notification(int p_what) { … } void VisibleOnScreenEnabler2D::_bind_methods() { … } VisibleOnScreenEnabler2D::VisibleOnScreenEnabler2D() { … }