|
Blender V5.0
|
#include "BLI_listbase.h"#include "BLI_math_vector.h"#include "BLI_string_ref.hh"#include "BLT_translation.hh"#include "DNA_brush_types.h"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "UI_interface_layout.hh"#include "interface_intern.hh"Go to the source code of this file.
Macros | |
| #define | WHEEL_SIZE (5 * U.widget_unit) |
Functions | |
| void | uiTemplateColorPicker (uiLayout *layout, PointerRNA *ptr, const StringRefNull propname, bool value_slider, bool lock, bool lock_luminosity, bool cubic) |
| static void | ui_template_palette_menu (bContext *, uiLayout *layout, void *) |
| void | uiTemplatePalette (uiLayout *layout, PointerRNA *ptr, const StringRefNull propname, bool) |
| void | uiTemplateCryptoPicker (uiLayout *layout, PointerRNA *ptr, const StringRefNull propname, int icon) |
| #define WHEEL_SIZE (5 * U.widget_unit) |
Definition at line 25 of file interface_template_color_picker.cc.
Referenced by uiTemplateColorPicker().
Definition at line 218 of file interface_template_color_picker.cc.
References BLT_I18NCONTEXT_COLOR, CTX_IFACE_, IFACE_, uiLayout::label(), uiLayout::op(), RNA_enum_set(), and uiLayout::row().
Referenced by uiTemplatePalette().
| void uiTemplateColorPicker | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| bool | value_slider, | ||
| bool | lock, | ||
| bool | lock_luminosity, | ||
| bool | cubic ) |
This template now follows User Preference for type - name is not correct anymore.
Definition at line 27 of file interface_template_color_picker.cc.
References uiLayout::block(), blender::StringRefNull::c_str(), col, uiLayout::column(), uiBut::custom_data, uiButHSVCube::gradient_type, HsvCircle, HsvCube, len_v3(), lock, ColorPicker::luminosity_lock_value, ptr, RNA_property_float_get_array(), RNA_property_float_ui_range(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::separator(), step, U, ui_block_colorpicker_create(), UI_GRAD_HS, UI_GRAD_HV, UI_GRAD_L_ALT, UI_GRAD_SV, UI_GRAD_V_ALT, UI_SCALE_FAC, uiDefButR_prop(), ColorPicker::use_color_cubic, ColorPicker::use_color_lock, ColorPicker::use_luminosity_lock, USER_CP_CIRCLE_HSL, USER_CP_CIRCLE_HSV, USER_CP_SQUARE_HS, USER_CP_SQUARE_HV, USER_CP_SQUARE_SV, and WHEEL_SIZE.
Referenced by blender::nodes::node_composite_rgb_cc::cmp_node_rgb_declare(), blender::seq::colorBalance_panel_draw(), blender::nodes::node_fn_input_color_cc::node_declare(), and blender::nodes::node_shader_rgb_cc::node_declare().
| void uiTemplateCryptoPicker | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const StringRefNull | propname, | ||
| int | icon ) |
Definition at line 347 of file interface_template_color_picker.cc.
References uiLayout::block(), But, blender::StringRefNull::c_str(), blender::wm::InvokeDefault, ptr, RNA_property_ui_description(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, UI_UNIT_X, UI_UNIT_Y, and uiDefIconButO().
Referenced by blender::nodes::node_composite_colorbalance_cc::cmp_node_colorbalance_declare(), blender::ed::space_node::node_composit_buts_cryptomatte(), and blender::ed::space_node::node_composit_buts_cryptomatte_legacy().
| void uiTemplatePalette | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const StringRefNull | propname, | ||
| bool | colors ) |
Definition at line 237 of file interface_template_color_picker.cc.
References uiLayout::block(), But, blender::StringRefNull::c_str(), col, Color, Palette::colors, uiLayout::column(), PointerRNA::data, ListBase::first, Palette::id, blender::wm::InvokeDefault, uiButColor::is_pallete_color, LISTBASE_FOREACH, uiBut::opptr, uiButColor::palette_color_index, ptr, RNA_enum_set(), RNA_pointer_create_discrete(), RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_struct_is_a(), RNA_warning, PointerRNA::type, UI_but_operator_ptr_ensure(), ui_template_palette_menu(), UI_UNIT_X, UI_UNIT_Y, uiDefButR(), uiDefIconButO(), uiDefIconMenuBut(), and uiLayout::width().