|
Blender V5.0
|
Classes | |
| struct | EyedropperGreasePencil |
| class | LayerTreeView |
| class | LayerNodeDropTarget |
| class | LayerViewItemDragController |
| class | LayerViewItem |
| class | LayerGroupViewItem |
Enumerations | |
| enum class | EyeMode : int8_t { Material = 0 , Palette = 1 , Brush = 2 } |
| enum class | MaterialMode : int8_t { Stroke = 0 , Fill = 1 , Both = 2 } |
|
strong |
| Enumerator | |
|---|---|
| Material | |
| Palette | |
| Brush | |
Definition at line 49 of file eyedropper_grease_pencil_color.cc.
|
strong |
| Enumerator | |
|---|---|
| Stroke | |
| Fill | |
| Both | |
Definition at line 55 of file eyedropper_grease_pencil_color.cc.
|
static |
Definition at line 148 of file eyedropper_grease_pencil_color.cc.
References Object::actcol, BKE_grease_pencil_object_material_new(), BKE_object_material_get(), BKE_object_material_len_p(), BLI_assert, Both, C, compare_v3v3(), copy_v3_v3(), CTX_data_active_object(), CTX_data_main(), DEG_relations_tag_update(), ED_undo_push(), Fill, MaterialGPencilStyle::fill_rgba, MaterialGPencilStyle::flag, GP_MATERIAL_FILL_SHOW, GP_MATERIAL_STROKE_SHOW, Material::gp_style, i, Object::id, NC_MATERIAL, NC_OBJECT, NC_SPACE, ND_OB_SHADING, ND_SHADING_LINKS, ND_SPACE_VIEW3D, Stroke, MaterialGPencilStyle::stroke_rgba, WM_main_add_notifier(), and zero_v4().
Referenced by eyedropper_grease_pencil_color_set().
|
static |
Definition at line 238 of file eyedropper_grease_pencil_color.cc.
References Palette::active_color, BKE_paint_palette_set(), BKE_palette_add(), BKE_palette_color_add(), BKE_palette_color_set(), BLI_listbase_count(), C, Palette::colors, compare_v3v3(), CTX_data_main(), CTX_data_scene(), ToolSettings::gp_paint, ToolSettings::gp_vertexpaint, i, Palette::id, id_us_min(), LISTBASE_FOREACH_INDEX, GpPaint::paint, GpVertexPaint::paint, Paint::palette, and Scene::toolsettings.
Referenced by eyedropper_grease_pencil_color_set().
|
static |
Definition at line 344 of file eyedropper_grease_pencil_color.cc.
References C, and eyedropper_grease_pencil_exit().
Referenced by eyedropper_grease_pencil_modal(), and UI_OT_eyedropper_grease_pencil_color().
|
static |
Definition at line 327 of file eyedropper_grease_pencil_color.cc.
References blender::ui::greasepencil::EyedropperGreasePencil::accum_col, blender::ui::greasepencil::EyedropperGreasePencil::accum_tot, C, col, blender::ui::greasepencil::EyedropperGreasePencil::color, eyedropper_color_sample_fl(), and float.
Referenced by eyedropper_grease_pencil_modal().
|
static |
Definition at line 295 of file eyedropper_grease_pencil_color.cc.
References Both, Brush, C, blender::ui::greasepencil::EyedropperGreasePencil::color, eyedropper_add_material(), eyedropper_add_palette_color(), eyedropper_set_brush_color(), Fill, KM_CTRL, KM_SHIFT, blender::ui::greasepencil::EyedropperGreasePencil::mat_mode, Material, blender::ui::greasepencil::EyedropperGreasePencil::mode, Palette, and Stroke.
Referenced by eyedropper_grease_pencil_modal().
|
static |
Definition at line 423 of file eyedropper_grease_pencil_color.cc.
References C, eyedropper_grease_pencil_exit(), eyedropper_grease_pencil_init(), OPERATOR_FINISHED, and OPERATOR_PASS_THROUGH.
Referenced by UI_OT_eyedropper_grease_pencil_color().
|
static |
Definition at line 136 of file eyedropper_grease_pencil_color.cc.
References C, wmOperator::customdata, and ED_workspace_status_text().
Referenced by eyedropper_grease_pencil_cancel(), eyedropper_grease_pencil_exec(), and eyedropper_grease_pencil_modal().
|
static |
Definition at line 119 of file eyedropper_grease_pencil_color.cc.
References blender::ui::greasepencil::EyedropperGreasePencil::accum_start, C, CTX_data_scene(), wmOperator::customdata, blender::ui::greasepencil::EyedropperGreasePencil::display, ColorManagedDisplaySettings::display_device, Scene::display_settings, IMB_colormanagement_display_get_named(), blender::ui::greasepencil::EyedropperGreasePencil::mat_mode, blender::ui::greasepencil::EyedropperGreasePencil::mode, wmOperator::ptr, and RNA_enum_get().
Referenced by eyedropper_grease_pencil_exec(), and eyedropper_grease_pencil_invoke().
|
static |
Definition at line 407 of file eyedropper_grease_pencil_color.cc.
References C, eyedropper_grease_pencil_init(), eyedropper_grease_pencil_status_indicators(), OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, and WM_event_add_modal_handler().
Referenced by UI_OT_eyedropper_grease_pencil_color().
|
static |
Definition at line 350 of file eyedropper_grease_pencil_color.cc.
References blender::ui::greasepencil::EyedropperGreasePencil::accum_col, blender::ui::greasepencil::EyedropperGreasePencil::accum_start, blender::ui::greasepencil::EyedropperGreasePencil::accum_tot, C, wmOperator::customdata, EVT_MODAL_MAP, EYE_MODAL_CANCEL, EYE_MODAL_SAMPLE_BEGIN, EYE_MODAL_SAMPLE_CONFIRM, EYE_MODAL_SAMPLE_RESET, eyedropper_grease_pencil_cancel(), eyedropper_grease_pencil_color_sample(), eyedropper_grease_pencil_color_set(), eyedropper_grease_pencil_exit(), eyedropper_grease_pencil_status_indicators(), INBETWEEN_MOUSEMOVE, MOUSEMOVE, NA_EDITED, NC_GPENCIL, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmEvent::type, wmEvent::val, WM_main_add_notifier(), and wmEvent::xy.
Referenced by UI_OT_eyedropper_grease_pencil_color().
|
static |
Definition at line 435 of file eyedropper_grease_pencil_color.cc.
References C, CTX_data_active_object(), CTX_wm_window(), OB_GREASE_PENCIL, and Object::type.
Referenced by UI_OT_eyedropper_grease_pencil_color().
|
static |
Definition at line 76 of file eyedropper_grease_pencil_color.cc.
References Both, C, wmOperator::customdata, ED_workspace_status_text(), Fill, IFACE_, KM_CTRL, KM_SHIFT, blender::ui::greasepencil::EyedropperGreasePencil::mat_mode, and Stroke.
Referenced by eyedropper_grease_pencil_invoke(), and eyedropper_grease_pencil_modal().
|
static |
Definition at line 279 of file eyedropper_grease_pencil_color.cc.
References BKE_brush_color_sync_legacy(), BKE_brush_tag_unsaved_changes(), BKE_paint_brush(), C, Brush::color, copy_v3_v3(), CTX_data_scene(), ToolSettings::gp_paint, GpPaint::paint, and Scene::toolsettings.
Referenced by eyedropper_grease_pencil_color_set().