godot/editor/plugins/gradient_editor_plugin.cpp

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

#include "core/os/keyboard.h"
#include "editor/editor_node.h"
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/editor_undo_redo_manager.h"
#include "editor/gui/editor_spin_slider.h"
#include "editor/plugins/canvas_item_editor_plugin.h"
#include "editor/plugins/node_3d_editor_plugin.h"
#include "editor/themes/editor_scale.h"
#include "scene/gui/color_picker.h"
#include "scene/gui/flow_container.h"
#include "scene/gui/popup.h"
#include "scene/gui/separator.h"
#include "scene/resources/gradient_texture.h"

int GradientEdit::_get_point_at(int p_xpos) const {}

int GradientEdit::_predict_insertion_index(float p_offset) {}

int GradientEdit::_get_gradient_rect_width() const {}

void GradientEdit::_show_color_picker() {}

void GradientEdit::_color_changed(const Color &p_color) {}

void GradientEdit::set_gradient(const Ref<Gradient> &p_gradient) {}

const Ref<Gradient> &GradientEdit::get_gradient() const {}

void GradientEdit::add_point(float p_offset, const Color &p_color) {}

void GradientEdit::remove_point(int p_index) {}

void GradientEdit::set_offset(int p_index, float p_offset) {}

void GradientEdit::set_color(int p_index, const Color &p_color) {}

void GradientEdit::reverse_gradient() {}

void GradientEdit::set_selected_index(int p_index) {}

void GradientEdit::set_snap_enabled(bool p_enabled) {}

void GradientEdit::set_snap_count(int p_count) {}

ColorPicker *GradientEdit::get_picker() const {}

PopupPanel *GradientEdit::get_popup() const {}

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

void GradientEdit::_redraw() {}

void GradientEdit::_notification(int p_what) {}

void GradientEdit::_bind_methods() {}

GradientEdit::GradientEdit() {}

///////////////////////

const int GradientEditor::DEFAULT_SNAP =;

void GradientEditor::_set_snap_enabled(bool p_enabled) {}

void GradientEditor::_set_snap_count(int p_count) {}

void GradientEditor::set_gradient(const Ref<Gradient> &p_gradient) {}

void GradientEditor::_notification(int p_what) {}

GradientEditor::GradientEditor() {}

///////////////////////

bool EditorInspectorPluginGradient::can_handle(Object *p_object) {}

void EditorInspectorPluginGradient::parse_begin(Object *p_object) {}

///////////////////////

GradientEditorPlugin::GradientEditorPlugin() {}