#include "color_picker.h"
#include "core/input/input.h"
#include "core/io/image.h"
#include "core/math/color.h"
#include "core/os/keyboard.h"
#include "core/os/os.h"
#include "scene/gui/color_mode.h"
#include "scene/gui/margin_container.h"
#include "scene/resources/image_texture.h"
#include "scene/resources/style_box_flat.h"
#include "scene/resources/style_box_texture.h"
#include "scene/theme/theme_db.h"
#include "servers/display_server.h"
#include "thirdparty/misc/ok_color.h"
#include "thirdparty/misc/ok_color_shader.h"
List<Color> ColorPicker::preset_cache;
List<Color> ColorPicker::recent_preset_cache;
void ColorPicker::_notification(int p_what) { … }
void ColorPicker::_update_theme_item_cache() { … }
Ref<Shader> ColorPicker::wheel_shader;
Ref<Shader> ColorPicker::circle_shader;
Ref<Shader> ColorPicker::circle_ok_color_shader;
void ColorPicker::init_shaders() { … }
void ColorPicker::finish_shaders() { … }
void ColorPicker::set_focus_on_line_edit() { … }
void ColorPicker::_update_controls() { … }
void ColorPicker::_set_pick_color(const Color &p_color, bool p_update_sliders) { … }
void ColorPicker::set_pick_color(const Color &p_color) { … }
void ColorPicker::set_old_color(const Color &p_color) { … }
void ColorPicker::set_display_old_color(bool p_enabled) { … }
bool ColorPicker::is_displaying_old_color() const { … }
void ColorPicker::set_edit_alpha(bool p_show) { … }
bool ColorPicker::is_editing_alpha() const { … }
void ColorPicker::_slider_drag_started() { … }
void ColorPicker::_slider_value_changed() { … }
void ColorPicker::_slider_drag_ended() { … }
void ColorPicker::add_mode(ColorMode *p_mode) { … }
void ColorPicker::create_slider(GridContainer *gc, int idx) { … }
#ifdef TOOLS_ENABLED
void ColorPicker::set_editor_settings(Object *p_editor_settings) { … }
#endif
HSlider *ColorPicker::get_slider(int p_idx) { … }
Vector<float> ColorPicker::get_active_slider_values() { … }
void ColorPicker::_copy_color_to_hsv() { … }
void ColorPicker::_copy_hsv_to_color() { … }
void ColorPicker::_select_from_preset_container(const Color &p_color) { … }
bool ColorPicker::_select_from_recent_preset_hbc(const Color &p_color) { … }
ColorPicker::PickerShapeType ColorPicker::_get_actual_shape() const { … }
void ColorPicker::_reset_sliders_theme() { … }
void ColorPicker::_html_submitted(const String &p_html) { … }
void ColorPicker::_update_color(bool p_update_sliders) { … }
void ColorPicker::_update_presets() { … }
void ColorPicker::_update_recent_presets() { … }
void ColorPicker::_text_type_toggled() { … }
Color ColorPicker::get_pick_color() const { … }
Color ColorPicker::get_old_color() const { … }
void ColorPicker::set_picker_shape(PickerShapeType p_shape) { … }
ColorPicker::PickerShapeType ColorPicker::get_picker_shape() const { … }
inline int ColorPicker::_get_preset_size() { … }
void ColorPicker::_add_preset_button(int p_size, const Color &p_color) { … }
void ColorPicker::_add_recent_preset_button(int p_size, const Color &p_color) { … }
void ColorPicker::_show_hide_preset(const bool &p_is_btn_pressed, Button *p_btn_preset, Container *p_preset_container) { … }
void ColorPicker::_update_drop_down_arrow(const bool &p_is_btn_pressed, Button *p_btn_preset) { … }
void ColorPicker::_set_mode_popup_value(ColorModeType p_mode) { … }
Variant ColorPicker::_get_drag_data_fw(const Point2 &p_point, Control *p_from_control) { … }
bool ColorPicker::_can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from_control) const { … }
void ColorPicker::_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from_control) { … }
void ColorPicker::add_preset(const Color &p_color) { … }
void ColorPicker::add_recent_preset(const Color &p_color) { … }
void ColorPicker::erase_preset(const Color &p_color) { … }
void ColorPicker::erase_recent_preset(const Color &p_color) { … }
PackedColorArray ColorPicker::get_presets() const { … }
PackedColorArray ColorPicker::get_recent_presets() const { … }
void ColorPicker::set_color_mode(ColorModeType p_mode) { … }
ColorPicker::ColorModeType ColorPicker::get_color_mode() const { … }
void ColorPicker::set_colorize_sliders(bool p_colorize_sliders) { … }
bool ColorPicker::is_colorizing_sliders() const { … }
void ColorPicker::set_deferred_mode(bool p_enabled) { … }
bool ColorPicker::is_deferred_mode() const { … }
void ColorPicker::_update_text_value() { … }
void ColorPicker::_sample_input(const Ref<InputEvent> &p_event) { … }
void ColorPicker::_sample_draw() { … }
void ColorPicker::_hsv_draw(int p_which, Control *c) { … }
void ColorPicker::_slider_draw(int p_which) { … }
void ColorPicker::_uv_input(const Ref<InputEvent> &p_event, Control *c) { … }
void ColorPicker::_w_input(const Ref<InputEvent> &p_event) { … }
void ColorPicker::_slider_or_spin_input(const Ref<InputEvent> &p_event) { … }
void ColorPicker::_line_edit_input(const Ref<InputEvent> &p_event) { … }
void ColorPicker::_preset_input(const Ref<InputEvent> &p_event, const Color &p_color) { … }
void ColorPicker::_recent_preset_pressed(const bool p_pressed, ColorPresetButton *p_preset) { … }
void ColorPicker::_text_changed(const String &) { … }
void ColorPicker::_add_preset_pressed() { … }
void ColorPicker::_pick_button_pressed() { … }
void ColorPicker::_pick_finished() { … }
void ColorPicker::_pick_button_pressed_legacy() { … }
void ColorPicker::_picker_texture_input(const Ref<InputEvent> &p_event) { … }
void ColorPicker::_html_focus_exit() { … }
void ColorPicker::set_can_add_swatches(bool p_enabled) { … }
bool ColorPicker::are_swatches_enabled() const { … }
void ColorPicker::set_presets_visible(bool p_visible) { … }
bool ColorPicker::are_presets_visible() const { … }
void ColorPicker::set_modes_visible(bool p_visible) { … }
bool ColorPicker::are_modes_visible() const { … }
void ColorPicker::set_sampler_visible(bool p_visible) { … }
bool ColorPicker::is_sampler_visible() const { … }
void ColorPicker::set_sliders_visible(bool p_visible) { … }
bool ColorPicker::are_sliders_visible() const { … }
void ColorPicker::set_hex_visible(bool p_visible) { … }
bool ColorPicker::is_hex_visible() const { … }
void ColorPicker::_bind_methods() { … }
ColorPicker::ColorPicker() { … }
ColorPicker::~ColorPicker() { … }
void ColorPickerPopupPanel::_input_from_window(const Ref<InputEvent> &p_event) { … }
void ColorPickerButton::_about_to_popup() { … }
void ColorPickerButton::_color_changed(const Color &p_color) { … }
void ColorPickerButton::_modal_closed() { … }
void ColorPickerButton::pressed() { … }
void ColorPickerButton::_notification(int p_what) { … }
void ColorPickerButton::set_pick_color(const Color &p_color) { … }
Color ColorPickerButton::get_pick_color() const { … }
void ColorPickerButton::set_edit_alpha(bool p_show) { … }
bool ColorPickerButton::is_editing_alpha() const { … }
ColorPicker *ColorPickerButton::get_picker() { … }
PopupPanel *ColorPickerButton::get_popup() { … }
void ColorPickerButton::_update_picker() { … }
void ColorPickerButton::_bind_methods() { … }
ColorPickerButton::ColorPickerButton(const String &p_text) : … { … }
void ColorPresetButton::_notification(int p_what) { … }
void ColorPresetButton::set_preset_color(const Color &p_color) { … }
Color ColorPresetButton::get_preset_color() const { … }
void ColorPresetButton::_bind_methods() { … }
ColorPresetButton::ColorPresetButton(Color p_color, int p_size) { … }
ColorPresetButton::~ColorPresetButton() { … }