Blender V5.0
blender::ui::greasepencil Namespace Reference

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 }

Functions

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

Enumeration Type Documentation

◆ EyeMode

enum class blender::ui::greasepencil::EyeMode : int8_t
strong
Enumerator
Material 
Palette 
Brush 

Definition at line 49 of file eyedropper_grease_pencil_color.cc.

◆ MaterialMode

enum class blender::ui::greasepencil::MaterialMode : int8_t
strong
Enumerator
Stroke 
Fill 
Both 

Definition at line 55 of file eyedropper_grease_pencil_color.cc.

Function Documentation

◆ eyedropper_add_material()

◆ eyedropper_add_palette_color()

◆ eyedropper_grease_pencil_cancel()

void blender::ui::greasepencil::eyedropper_grease_pencil_cancel ( bContext * C,
wmOperator * op )
static

◆ eyedropper_grease_pencil_color_sample()

◆ eyedropper_grease_pencil_color_set()

◆ eyedropper_grease_pencil_exec()

wmOperatorStatus blender::ui::greasepencil::eyedropper_grease_pencil_exec ( bContext * C,
wmOperator * op )
static

◆ eyedropper_grease_pencil_exit()

void blender::ui::greasepencil::eyedropper_grease_pencil_exit ( bContext * C,
wmOperator * op )
static

◆ eyedropper_grease_pencil_init()

◆ eyedropper_grease_pencil_invoke()

◆ eyedropper_grease_pencil_modal()

◆ eyedropper_grease_pencil_poll()

bool blender::ui::greasepencil::eyedropper_grease_pencil_poll ( bContext * C)
static

◆ eyedropper_grease_pencil_status_indicators()

void blender::ui::greasepencil::eyedropper_grease_pencil_status_indicators ( bContext * C,
wmOperator * op,
const wmEvent * event )
static

◆ eyedropper_set_brush_color()

void blender::ui::greasepencil::eyedropper_set_brush_color ( bContext * C,
const float3 & color )
static