/**************************************************************************/ /* graph_frame.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_frame.h" #include "core/string/translation.h" #include "scene/gui/box_container.h" #include "scene/gui/label.h" #include "scene/resources/style_box_flat.h" #include "scene/resources/style_box_texture.h" #include "scene/theme/theme_db.h" void GraphFrame::gui_input(const Ref<InputEvent> &p_ev) { … } Control::CursorShape GraphFrame::get_cursor_shape(const Point2 &p_pos) const { … } void GraphFrame::_notification(int p_what) { … } void GraphFrame::_resort() { … } void GraphFrame::_bind_methods() { … } void GraphFrame::_validate_property(PropertyInfo &p_property) const { … } void GraphFrame::set_title(const String &p_title) { … } String GraphFrame::get_title() const { … } void GraphFrame::set_autoshrink_enabled(bool p_shrink) { … } bool GraphFrame::is_autoshrink_enabled() const { … } void GraphFrame::set_autoshrink_margin(const int &p_margin) { … } int GraphFrame::get_autoshrink_margin() const { … } HBoxContainer *GraphFrame::get_titlebar_hbox() { … } Size2 GraphFrame::get_titlebar_size() const { … } void GraphFrame::set_drag_margin(int p_margin) { … } int GraphFrame::get_drag_margin() const { … } void GraphFrame::set_tint_color_enabled(bool p_enable) { … } bool GraphFrame::is_tint_color_enabled() const { … } void GraphFrame::set_tint_color(const Color &p_color) { … } Color GraphFrame::get_tint_color() const { … } bool GraphFrame::has_point(const Point2 &p_point) const { … } Size2 GraphFrame::get_minimum_size() const { … } GraphFrame::GraphFrame() { … }