/**************************************************************************/ /* split_container.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 "split_container.h" #include "scene/gui/label.h" #include "scene/gui/margin_container.h" #include "scene/theme/theme_db.h" void SplitContainerDragger::gui_input(const Ref<InputEvent> &p_event) { … } Control::CursorShape SplitContainerDragger::get_cursor_shape(const Point2 &p_pos) const { … } void SplitContainerDragger::_notification(int p_what) { … } Control *SplitContainer::_get_sortable_child(int p_idx, SortableVisbilityMode p_visibility_mode) const { … } Ref<Texture2D> SplitContainer::_get_grabber_icon() const { … } void SplitContainer::_compute_middle_sep(bool p_clamp) { … } void SplitContainer::_resort() { … } Size2 SplitContainer::get_minimum_size() const { … } void SplitContainer::_validate_property(PropertyInfo &p_property) const { … } void SplitContainer::_notification(int p_what) { … } void SplitContainer::set_split_offset(int p_offset) { … } int SplitContainer::get_split_offset() const { … } void SplitContainer::clamp_split_offset() { … } void SplitContainer::set_collapsed(bool p_collapsed) { … } void SplitContainer::set_dragger_visibility(DraggerVisibility p_visibility) { … } SplitContainer::DraggerVisibility SplitContainer::get_dragger_visibility() const { … } bool SplitContainer::is_collapsed() const { … } void SplitContainer::set_vertical(bool p_vertical) { … } bool SplitContainer::is_vertical() const { … } Vector<int> SplitContainer::get_allowed_size_flags_horizontal() const { … } Vector<int> SplitContainer::get_allowed_size_flags_vertical() const { … } void SplitContainer::_bind_methods() { … } SplitContainer::SplitContainer(bool p_vertical) { … }