|
Blender V5.0
|
#include "BKE_colorband.hh"#include "BKE_context.hh"#include "BKE_library.hh"#include "BLI_listbase.h"#include "BLI_rect.h"#include "BLI_string_ref.hh"#include "BLT_translation.hh"#include "DNA_texture_types.h"#include "ED_screen.hh"#include "ED_undo.hh"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "UI_interface_layout.hh"#include "interface_intern.hh"#include "interface_templates_intern.hh"Go to the source code of this file.
Functions | |
| static void | colorband_flip (bContext *C, ColorBand *coba) |
| static void | colorband_distribute (bContext *C, ColorBand *coba, bool evenly) |
| static uiBlock * | colorband_tools_fn (bContext *C, ARegion *region, void *cb_v) |
| static void | colorband_add (bContext &C, const RNAUpdateCb &cb, ColorBand &coba) |
| static void | colorband_update_cb (bContext *, void *bt_v, void *coba_v) |
| static void | colorband_buttons_layout (uiLayout *layout, uiBlock *block, ColorBand *coba, const rctf *butr, const RNAUpdateCb &cb, int expand) |
| void | uiTemplateColorRamp (uiLayout *layout, PointerRNA *ptr, const StringRefNull propname, bool expand) |
|
static |
Definition at line 183 of file interface_template_color_ramp.cc.
References BKE_colorband_element_add(), C, ColorBand::cur, ColorBand::data, ED_undo_push(), CBData::pos, pos, rna_update_cb(), and ColorBand::tot.
Referenced by colorband_buttons_layout().
|
static |
Definition at line 213 of file interface_template_color_ramp.cc.
References BKE_colorband_element_remove(), BLI_rctf_size_x(), But, but_func_argN_copy(), but_func_argN_free(), uiBlock::buttons, C, COLBAND_BLEND_HSL, COLBAND_BLEND_HSV, ColorBand::color_mode, ColorBand, colorband_add(), colorband_tools_fn(), colorband_update_cb(), ColorBand::cur, ColorBand::data, PointerRNA::data, ED_undo_push(), ELEM, blender::ui::Emboss, i, IFACE_, blender::ui::None, Num, PointerRNA::owner_id, RNAUpdateCb::prop, uiLayout::prop(), ptr, RNAUpdateCb::ptr, RNA_pointer_create_discrete(), RNA_property_identifier(), rna_update_cb(), uiBut::rnapoin, uiBut::rnaprop, uiLayout::row(), Vector< T, InlineBufferCapacity, Allocator >::size(), split(), uiLayout::split(), STREQ, TIP_, ColorBand::tot, UI_block_align_begin(), UI_block_align_end(), UI_block_emboss_set(), UI_but_func_set(), UI_but_funcN_set(), UI_but_number_step_size_set(), UI_ITEM_NONE, UI_ITEM_R_SLIDER, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButS(), uiDefIconBlockBut(), uiDefIconTextBut(), rctf::xmin, and rctf::ymin.
Referenced by uiTemplateColorRamp().
Definition at line 51 of file interface_template_color_ramp.cc.
References BLT_I18NCONTEXT_OPERATOR_DEFAULT, C, CTX_N_, ColorBand::data, ED_undo_push(), CBData::pos, pos, and ColorBand::tot.
Referenced by colorband_tools_fn().
Definition at line 33 of file interface_template_color_ramp.cc.
References C, ColorBand::cur, ColorBand::data, ED_undo_push(), MAXCOLORBAND, CBData::pos, and ColorBand::tot.
Referenced by colorband_tools_fn().
Definition at line 69 of file interface_template_color_ramp.cc.
References BKE_colorband_init(), blender::ui::block_layout(), blender::ui::block_layout_set_current(), ButMenu, C, colorband_distribute(), colorband_flip(), uiLayout::context_ptr_set(), CTX_wm_region(), PointerRNA::data, ED_region_tag_redraw(), ED_undo_push(), IFACE_, blender::ui::Menu, uiLayout::op(), RNAUpdateCb::prop, RNAUpdateCb::ptr, blender::ui::Pulldown, RNA_property_pointer_get(), rna_update_cb(), uiLayout::separator(), UI_block_begin(), UI_block_bounds_set_text(), UI_block_direction_set(), UI_but_func_set(), UI_DIR_DOWN, UI_MENU_PADDING, UI_MENU_WIDTH_MIN, UI_style_get_dpi(), UI_UNIT_X, UI_UNIT_Y, uiDefIconTextBut(), and blender::ui::Vertical.
Referenced by colorband_buttons_layout().
|
static |
Definition at line 202 of file interface_template_color_ramp.cc.
References BKE_colorband_update_sort(), ColorBand::cur, ColorBand::data, PointerRNA::data, and uiBut::rnapoin.
Referenced by colorband_buttons_layout().
| void uiTemplateColorRamp | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const StringRefNull | propname, | ||
| bool | expand ) |
Definition at line 386 of file interface_template_color_ramp.cc.
References uiLayout::absolute_block(), blender::StringRefNull::c_str(), colorband_buttons_layout(), PointerRNA::data, ERROR_LIBDATA_MESSAGE, ID_IS_EDITABLE, PointerRNA::owner_id, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_a(), PointerRNA::type, UI_block_lock_clear(), UI_block_lock_set(), UI_UNIT_X, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by blender::ed::space_node::node_buts_colorramp(), and blender::panel_draw().