godot/scene/gui/tab_bar.cpp

/**************************************************************************/
/*  tab_bar.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 "tab_bar.h"

#include "core/string/translation.h"
#include "scene/gui/box_container.h"
#include "scene/gui/label.h"
#include "scene/gui/texture_rect.h"
#include "scene/main/viewport.h"
#include "scene/theme/theme_db.h"

Size2 TabBar::get_minimum_size() const {}

void TabBar::gui_input(const Ref<InputEvent> &p_event) {}

String TabBar::get_tooltip(const Point2 &p_pos) const {}

void TabBar::_shape(int p_tab) {}

void TabBar::_notification(int p_what) {}

void TabBar::_draw_tab(Ref<StyleBox> &p_tab_style, Color &p_font_color, int p_index, float p_x, bool p_focus) {}

void TabBar::set_tab_count(int p_count) {}

int TabBar::get_tab_count() const {}

void TabBar::set_current_tab(int p_current) {}

int TabBar::get_current_tab() const {}

int TabBar::get_previous_tab() const {}

int TabBar::get_hovered_tab() const {}

bool TabBar::select_previous_available() {}

bool TabBar::select_next_available() {}

void TabBar::set_tab_offset(int p_offset) {}

int TabBar::get_tab_offset() const {}

bool TabBar::get_offset_buttons_visible() const {}

void TabBar::set_tab_title(int p_tab, const String &p_title) {}

String TabBar::get_tab_title(int p_tab) const {}

void TabBar::set_tab_tooltip(int p_tab, const String &p_tooltip) {}

String TabBar::get_tab_tooltip(int p_tab) const {}

void TabBar::set_tab_text_direction(int p_tab, Control::TextDirection p_text_direction) {}

Control::TextDirection TabBar::get_tab_text_direction(int p_tab) const {}

void TabBar::set_tab_language(int p_tab, const String &p_language) {}

String TabBar::get_tab_language(int p_tab) const {}

void TabBar::set_tab_icon(int p_tab, const Ref<Texture2D> &p_icon) {}

Ref<Texture2D> TabBar::get_tab_icon(int p_tab) const {}

void TabBar::set_tab_icon_max_width(int p_tab, int p_width) {}

int TabBar::get_tab_icon_max_width(int p_tab) const {}

void TabBar::set_tab_disabled(int p_tab, bool p_disabled) {}

bool TabBar::is_tab_disabled(int p_tab) const {}

void TabBar::set_tab_hidden(int p_tab, bool p_hidden) {}

bool TabBar::is_tab_hidden(int p_tab) const {}

void TabBar::set_tab_metadata(int p_tab, const Variant &p_metadata) {}

Variant TabBar::get_tab_metadata(int p_tab) const {}

void TabBar::set_tab_button_icon(int p_tab, const Ref<Texture2D> &p_icon) {}

Ref<Texture2D> TabBar::get_tab_button_icon(int p_tab) const {}

void TabBar::_update_hover() {}

void TabBar::_update_cache(bool p_update_hover) {}

void TabBar::_on_mouse_exited() {}

void TabBar::add_tab(const String &p_str, const Ref<Texture2D> &p_icon) {}

void TabBar::clear_tabs() {}

void TabBar::remove_tab(int p_idx) {}

Variant TabBar::get_drag_data(const Point2 &p_point) {}

bool TabBar::can_drop_data(const Point2 &p_point, const Variant &p_data) const {}

void TabBar::drop_data(const Point2 &p_point, const Variant &p_data) {}

Variant TabBar::_handle_get_drag_data(const String &p_type, const Point2 &p_point) {}

bool TabBar::_handle_can_drop_data(const String &p_type, const Point2 &p_point, const Variant &p_data) const {}

void TabBar::_handle_drop_data(const String &p_type, const Point2 &p_point, const Variant &p_data, const Callable &p_move_tab_callback, const Callable &p_move_tab_from_other_callback) {}

void TabBar::_move_tab_from(TabBar *p_from_tabbar, int p_from_index, int p_to_index) {}

int TabBar::get_tab_idx_at_point(const Point2 &p_point) const {}

void TabBar::set_tab_alignment(AlignmentMode p_alignment) {}

TabBar::AlignmentMode TabBar::get_tab_alignment() const {}

void TabBar::set_clip_tabs(bool p_clip_tabs) {}

bool TabBar::get_clip_tabs() const {}

void TabBar::set_tab_style_v_flip(bool p_tab_style_v_flip) {}

void TabBar::move_tab(int p_from, int p_to) {}

int TabBar::get_tab_width(int p_idx) const {}

Size2 TabBar::_get_tab_icon_size(int p_index) const {}

void TabBar::_ensure_no_over_offset() {}

bool TabBar::_can_deselect() const {}

void TabBar::ensure_tab_visible(int p_idx) {}

Rect2 TabBar::get_tab_rect(int p_tab) const {}

void TabBar::set_tab_close_display_policy(CloseButtonDisplayPolicy p_policy) {}

TabBar::CloseButtonDisplayPolicy TabBar::get_tab_close_display_policy() const {}

void TabBar::set_max_tab_width(int p_width) {}

int TabBar::get_max_tab_width() const {}

void TabBar::set_scrolling_enabled(bool p_enabled) {}

bool TabBar::get_scrolling_enabled() const {}

void TabBar::set_drag_to_rearrange_enabled(bool p_enabled) {}

bool TabBar::get_drag_to_rearrange_enabled() const {}

void TabBar::set_tabs_rearrange_group(int p_group_id) {}

int TabBar::get_tabs_rearrange_group() const {}

void TabBar::set_scroll_to_selected(bool p_enabled) {}

bool TabBar::get_scroll_to_selected() const {}

void TabBar::set_select_with_rmb(bool p_enabled) {}

bool TabBar::get_select_with_rmb() const {}

void TabBar::set_deselect_enabled(bool p_enabled) {}

bool TabBar::get_deselect_enabled() const {}

void TabBar::_bind_methods() {}

TabBar::TabBar() {}