godot/scene/gui/option_button.cpp

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

#include "core/os/keyboard.h"
#include "core/string/print_string.h"
#include "scene/theme/theme_db.h"

static const int NONE_SELECTED =;

void OptionButton::shortcut_input(const Ref<InputEvent> &p_event) {}

Size2 OptionButton::get_minimum_size() const {}

void OptionButton::_notification(int p_what) {}

bool OptionButton::_set(const StringName &p_name, const Variant &p_value) {}

void OptionButton::_focused(int p_which) {}

void OptionButton::_selected(int p_which) {}

void OptionButton::pressed() {}

void OptionButton::add_icon_item(const Ref<Texture2D> &p_icon, const String &p_label, int p_id) {}

void OptionButton::add_item(const String &p_label, int p_id) {}

void OptionButton::set_item_text(int p_idx, const String &p_text) {}

void OptionButton::set_item_icon(int p_idx, const Ref<Texture2D> &p_icon) {}

void OptionButton::set_item_id(int p_idx, int p_id) {}

void OptionButton::set_item_metadata(int p_idx, const Variant &p_metadata) {}

void OptionButton::set_item_tooltip(int p_idx, const String &p_tooltip) {}

void OptionButton::set_item_disabled(int p_idx, bool p_disabled) {}

String OptionButton::get_item_text(int p_idx) const {}

Ref<Texture2D> OptionButton::get_item_icon(int p_idx) const {}

int OptionButton::get_item_id(int p_idx) const {}

int OptionButton::get_item_index(int p_id) const {}

Variant OptionButton::get_item_metadata(int p_idx) const {}

String OptionButton::get_item_tooltip(int p_idx) const {}

bool OptionButton::is_item_disabled(int p_idx) const {}

bool OptionButton::is_item_separator(int p_idx) const {}
void OptionButton::set_item_count(int p_count) {}

bool OptionButton::has_selectable_items() const {}
int OptionButton::get_selectable_item(bool p_from_last) const {}

int OptionButton::get_item_count() const {}

void OptionButton::set_fit_to_longest_item(bool p_fit) {}

bool OptionButton::is_fit_to_longest_item() const {}

void OptionButton::set_allow_reselect(bool p_allow) {}

bool OptionButton::get_allow_reselect() const {}

void OptionButton::add_separator(const String &p_text) {}

void OptionButton::clear() {}

void OptionButton::_select(int p_which, bool p_emit) {}

void OptionButton::_select_int(int p_which) {}

void OptionButton::_refresh_size_cache() {}

void OptionButton::_queue_update_size_cache() {}

void OptionButton::select(int p_idx) {}

int OptionButton::get_selected() const {}

int OptionButton::get_selected_id() const {}

Variant OptionButton::get_selected_metadata() const {}

void OptionButton::remove_item(int p_idx) {}

PopupMenu *OptionButton::get_popup() const {}

void OptionButton::show_popup() {}

void OptionButton::_validate_property(PropertyInfo &p_property) const {}

void OptionButton::_bind_methods() {}

void OptionButton::set_disable_shortcuts(bool p_disabled) {}

OptionButton::OptionButton(const String &p_text) :{}

OptionButton::~OptionButton() {}