/**************************************************************************/ /* graph_element.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 "graph_element.h" #include "core/string/translation.h" #include "scene/gui/graph_edit.h" #include "scene/theme/theme_db.h" #ifdef TOOLS_ENABLED void GraphElement::_edit_set_position(const Point2 &p_position) { … } #endif void GraphElement::_resort() { … } Size2 GraphElement::get_minimum_size() const { … } void GraphElement::_notification(int p_what) { … } void GraphElement::_validate_property(PropertyInfo &p_property) const { … } void GraphElement::set_position_offset(const Vector2 &p_offset) { … } Vector2 GraphElement::get_position_offset() const { … } void GraphElement::set_selected(bool p_selected) { … } bool GraphElement::is_selected() { … } void GraphElement::set_drag(bool p_drag) { … } Vector2 GraphElement::get_drag_from() { … } void GraphElement::gui_input(const Ref<InputEvent> &p_ev) { … } void GraphElement::set_resizable(bool p_enable) { … } bool GraphElement::is_resizable() const { … } void GraphElement::set_draggable(bool p_draggable) { … } bool GraphElement::is_draggable() { … } void GraphElement::set_selectable(bool p_selectable) { … } bool GraphElement::is_selectable() { … } void GraphElement::_bind_methods() { … }