Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "DNA_screen_types.h"
#include "BLI_bitmap_draw_2d.h"
#include "BLI_math_vector.h"
#include "BKE_colorband.h"
#include "BKE_context.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "UI_interface.h"
#include "WM_api.h"
#include "WM_types.h"
#include "interface_intern.h"
#include "eyedropper_intern.h"
Go to the source code of this file.
Classes | |
struct | Colorband_RNAUpdateCb |
struct | EyedropperColorband |
struct | EyedropperColorband_Context |
Typedefs | |
typedef struct Colorband_RNAUpdateCb | Colorband_RNAUpdateCb |
typedef struct EyedropperColorband | EyedropperColorband |
Eyedropper (Color Band).
Operates by either:
Defines:
Definition in file eyedropper_colorband.c.
typedef struct Colorband_RNAUpdateCb Colorband_RNAUpdateCb |
typedef struct EyedropperColorband EyedropperColorband |
|
static |
Definition at line 180 of file eyedropper_colorband.c.
References BKE_colorband_init_from_table_rgba(), C, EyedropperColorband::color_band, EyedropperColorband::color_buffer, EyedropperColorband::color_buffer_len, wmOperator::customdata, EyedropperColorband_Context::eye, EyedropperColorband::is_set, EyedropperColorband::prop, EyedropperColorband::ptr, and RNA_property_update().
Referenced by eyedropper_colorband_modal(), and eyedropper_colorband_point_modal().
|
static |
Definition at line 193 of file eyedropper_colorband.c.
References C, EyedropperColorband::color_band, wmOperator::customdata, EyedropperColorband_Context::eye, eyedropper_colorband_exit(), EyedropperColorband::init_color_band, EyedropperColorband::is_set, EyedropperColorband::prop, EyedropperColorband::ptr, and RNA_property_update().
Referenced by eyedropper_colorband_modal(), eyedropper_colorband_point_modal(), UI_OT_eyedropper_colorramp(), and UI_OT_eyedropper_colorramp_point().
|
static |
Definition at line 301 of file eyedropper_colorband.c.
References C, eyedropper_colorband_exit(), eyedropper_colorband_init(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by UI_OT_eyedropper_colorramp(), and UI_OT_eyedropper_colorramp_point().
|
static |
Definition at line 168 of file eyedropper_colorband.c.
References C, EyedropperColorband::color_buffer, CTX_wm_window(), wmOperator::customdata, EyedropperColorband_Context::eye, MEM_freeN, NULL, and WM_cursor_modal_restore().
Referenced by eyedropper_colorband_cancel(), eyedropper_colorband_exec(), eyedropper_colorband_modal(), and eyedropper_colorband_point_modal().
|
static |
Definition at line 66 of file eyedropper_colorband.c.
References C, EyedropperColorband::color_band, EyedropperColorband::color_buffer, EyedropperColorband::color_buffer_alloc, EyedropperColorband::color_buffer_len, CTX_data_pointer_get_type(), uiBut::custom_data, wmOperator::customdata, PointerRNA::data, uiBut::func_argN, EyedropperColorband::init_color_band, EyedropperColorband::is_undo, MEM_callocN, MEM_mallocN, NULL, uiBut::poin, PointerRNA_NULL, EyedropperColorband::prop, EyedropperColorband::ptr, ptr, RNA_struct_undo_check(), uiBut::type, PointerRNA::type, UI_BTYPE_COLORBAND, UI_but_flag_is_set(), UI_BUT_UNDO, and UI_context_active_but_get().
Referenced by eyedropper_colorband_exec(), and eyedropper_colorband_invoke().
|
static |
Definition at line 283 of file eyedropper_colorband.c.
References C, CTX_wm_region(), CTX_wm_window(), eyedropper_colorband_init(), OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, UI_context_active_but_clear(), WM_CURSOR_EYEDROPPER, WM_cursor_modal_set(), and WM_event_add_modal_handler().
Referenced by UI_OT_eyedropper_colorramp(), and UI_OT_eyedropper_colorramp_point().
|
static |
Definition at line 206 of file eyedropper_colorband.c.
References C, copy_v2_v2_int(), wmOperator::customdata, EyedropperColorband::event_xy_last, EVT_MODAL_MAP, EyedropperColorband_Context::eye, EYE_MODAL_CANCEL, EYE_MODAL_SAMPLE_BEGIN, EYE_MODAL_SAMPLE_CONFIRM, EYE_MODAL_SAMPLE_RESET, eyedropper_colorband_apply(), eyedropper_colorband_cancel(), eyedropper_colorband_exit(), eyedropper_colorband_sample_point(), eyedropper_colorband_sample_segment(), EyedropperColorband::is_undo, MOUSEMOVE, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, EyedropperColorband::sample_start, wmEvent::type, wmEvent::val, and wmEvent::xy.
Referenced by UI_OT_eyedropper_colorramp().
|
static |
Definition at line 243 of file eyedropper_colorband.c.
References C, EyedropperColorband::color_band, EyedropperColorband::color_buffer_len, wmOperator::customdata, EVT_MODAL_MAP, EyedropperColorband_Context::eye, EYE_MODAL_POINT_CANCEL, EYE_MODAL_POINT_CONFIRM, EYE_MODAL_POINT_REMOVE_LAST, EYE_MODAL_POINT_SAMPLE, EYE_MODAL_SAMPLE_RESET, eyedropper_colorband_apply(), eyedropper_colorband_cancel(), eyedropper_colorband_exit(), eyedropper_colorband_sample_point(), EyedropperColorband::init_color_band, MAXCOLORBAND, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, EyedropperColorband::prop, EyedropperColorband::ptr, RNA_property_update(), wmEvent::type, wmEvent::val, and wmEvent::xy.
Referenced by UI_OT_eyedropper_colorramp_point().
Definition at line 316 of file eyedropper_colorband.c.
References C, CTX_data_pointer_get_type(), PointerRNA::data, NULL, ptr, uiBut::type, UI_BTYPE_COLORBAND, and UI_context_active_but_get().
Referenced by UI_OT_eyedropper_colorramp(), and UI_OT_eyedropper_colorramp_point().
Definition at line 147 of file eyedropper_colorband.c.
References C, data, EyedropperColorband_Context::eye, and eyedropper_colorband_sample_point().
Referenced by eyedropper_colorband_sample_segment().
|
static |
Definition at line 127 of file eyedropper_colorband.c.
References C, col, EyedropperColorband::color_buffer, EyedropperColorband::color_buffer_alloc, EyedropperColorband::color_buffer_len, copy_v2_v2_int(), copy_v4_v4(), EyedropperColorband::event_xy_last, eyedropper_color_sample_fl(), EyedropperColorband::is_set, and MEM_reallocN.
Referenced by eyedropper_colorband_modal(), eyedropper_colorband_point_modal(), and eyedropper_colorband_sample_callback().
|
static |
Definition at line 157 of file eyedropper_colorband.c.
References BLI_bitmap_draw_2d_line_v2v2i(), C, EyedropperColorband::event_xy_last, EyedropperColorband_Context::eye, and eyedropper_colorband_sample_callback().
Referenced by eyedropper_colorband_modal().
void UI_OT_eyedropper_colorramp | ( | wmOperatorType * | ot | ) |
Definition at line 329 of file eyedropper_colorband.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, eyedropper_colorband_cancel(), eyedropper_colorband_exec(), eyedropper_colorband_invoke(), eyedropper_colorband_modal(), eyedropper_colorband_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().
void UI_OT_eyedropper_colorramp_point | ( | wmOperatorType * | ot | ) |
Definition at line 349 of file eyedropper_colorband.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, eyedropper_colorband_cancel(), eyedropper_colorband_exec(), eyedropper_colorband_invoke(), eyedropper_colorband_point_modal(), eyedropper_colorband_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().