Blender V5.0
eyedropper_grease_pencil_color.cc File Reference
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_math_vector_types.hh"
#include "BLT_translation.hh"
#include "DNA_brush_types.h"
#include "DNA_material_types.h"
#include "BKE_brush.hh"
#include "BKE_context.hh"
#include "BKE_grease_pencil.hh"
#include "BKE_lib_id.hh"
#include "BKE_material.hh"
#include "BKE_paint.hh"
#include "IMB_colormanagement.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "ED_screen.hh"
#include "ED_undo.hh"
#include "DEG_depsgraph_build.hh"
#include "eyedropper_intern.hh"
#include "interface_intern.hh"

Go to the source code of this file.

Classes

struct  blender::ui::greasepencil::EyedropperGreasePencil

Namespaces

namespace  blender
namespace  blender::ui
namespace  blender::ui::greasepencil

Enumerations

enum class  blender::ui::greasepencil::EyeMode : int8_t { blender::ui::greasepencil::Material = 0 , blender::ui::greasepencil::Palette = 1 , blender::ui::greasepencil::Brush = 2 }
enum class  blender::ui::greasepencil::MaterialMode : int8_t { blender::ui::greasepencil::Stroke = 0 , blender::ui::greasepencil::Fill = 1 , blender::ui::greasepencil::Both = 2 }

Functions

static void blender::ui::greasepencil::eyedropper_grease_pencil_status_indicators (bContext *C, wmOperator *op, const wmEvent *event)
static bool blender::ui::greasepencil::eyedropper_grease_pencil_init (bContext *C, wmOperator *op)
static void blender::ui::greasepencil::eyedropper_grease_pencil_exit (bContext *C, wmOperator *op)
static void blender::ui::greasepencil::eyedropper_add_material (bContext *C, const float3 color, const MaterialMode mat_mode)
static void blender::ui::greasepencil::eyedropper_add_palette_color (bContext *C, const float3 color)
static void blender::ui::greasepencil::eyedropper_set_brush_color (bContext *C, const float3 &color)
static void blender::ui::greasepencil::eyedropper_grease_pencil_color_set (bContext *C, const wmEvent *event, EyedropperGreasePencil *eye)
static void blender::ui::greasepencil::eyedropper_grease_pencil_color_sample (bContext *C, EyedropperGreasePencil *eye, const int m_xy[2])
static void blender::ui::greasepencil::eyedropper_grease_pencil_cancel (bContext *C, wmOperator *op)
static wmOperatorStatus blender::ui::greasepencil::eyedropper_grease_pencil_modal (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::ui::greasepencil::eyedropper_grease_pencil_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::ui::greasepencil::eyedropper_grease_pencil_exec (bContext *C, wmOperator *op)
static bool blender::ui::greasepencil::eyedropper_grease_pencil_poll (bContext *C)
void UI_OT_eyedropper_grease_pencil_color (wmOperatorType *ot)

Detailed Description

Function Documentation

◆ UI_OT_eyedropper_grease_pencil_color()