Blender  V2.93
Classes | Typedefs | Functions
interface_eyedropper_gpencil_color.c File Reference
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BLT_translation.h"
#include "DNA_gpencil_types.h"
#include "DNA_material_types.h"
#include "DNA_space_types.h"
#include "BKE_context.h"
#include "BKE_gpencil.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_paint.h"
#include "BKE_report.h"
#include "UI_interface.h"
#include "IMB_colormanagement.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "ED_gpencil.h"
#include "ED_screen.h"
#include "ED_undo.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "interface_eyedropper_intern.h"
#include "interface_intern.h"

Go to the source code of this file.

Classes

struct  EyedropperGPencil
 

Typedefs

typedef struct EyedropperGPencil EyedropperGPencil
 

Functions

static void eyedropper_gpencil_status_indicators (bContext *C)
 
static bool eyedropper_gpencil_init (bContext *C, wmOperator *op)
 
static void eyedropper_gpencil_exit (bContext *C, wmOperator *op)
 
static void eyedropper_add_material (bContext *C, const float col_conv[4], const bool only_stroke, const bool only_fill, const bool both)
 
static void eyedropper_add_palette_color (bContext *C, const float col_conv[4])
 
static void eyedropper_gpencil_color_set (bContext *C, const wmEvent *event, EyedropperGPencil *eye)
 
static void eyedropper_gpencil_color_sample (bContext *C, EyedropperGPencil *eye, int mx, int my)
 
static void eyedropper_gpencil_cancel (bContext *C, wmOperator *op)
 
static int eyedropper_gpencil_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
static int eyedropper_gpencil_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
 
static int eyedropper_gpencil_exec (bContext *C, wmOperator *op)
 
static bool eyedropper_gpencil_poll (bContext *C)
 
void UI_OT_eyedropper_gpencil_color (wmOperatorType *ot)
 

Detailed Description

Eyedropper (RGB Color)

Defines:

Definition in file interface_eyedropper_gpencil_color.c.

Typedef Documentation

◆ EyedropperGPencil

Function Documentation

◆ eyedropper_add_material()

static void eyedropper_add_material ( bContext C,
const float  col_conv[4],
const bool  only_stroke,
const bool  only_fill,
const bool  both 
)
static

◆ eyedropper_add_palette_color()

static void eyedropper_add_palette_color ( bContext C,
const float  col_conv[4] 
)
static

◆ eyedropper_gpencil_cancel()

static void eyedropper_gpencil_cancel ( bContext C,
wmOperator op 
)
static

◆ eyedropper_gpencil_color_sample()

static void eyedropper_gpencil_color_sample ( bContext C,
EyedropperGPencil eye,
int  mx,
int  my 
)
static

◆ eyedropper_gpencil_color_set()

static void eyedropper_gpencil_color_set ( bContext C,
const wmEvent event,
EyedropperGPencil eye 
)
static

◆ eyedropper_gpencil_exec()

static int eyedropper_gpencil_exec ( bContext C,
wmOperator op 
)
static

◆ eyedropper_gpencil_exit()

static void eyedropper_gpencil_exit ( bContext C,
wmOperator op 
)
static

◆ eyedropper_gpencil_init()

static bool eyedropper_gpencil_init ( bContext C,
wmOperator op 
)
static

◆ eyedropper_gpencil_invoke()

static int eyedropper_gpencil_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ eyedropper_gpencil_modal()

static int eyedropper_gpencil_modal ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ eyedropper_gpencil_poll()

static bool eyedropper_gpencil_poll ( bContext C)
static

◆ eyedropper_gpencil_status_indicators()

static void eyedropper_gpencil_status_indicators ( bContext C)
static

◆ UI_OT_eyedropper_gpencil_color()

void UI_OT_eyedropper_gpencil_color ( wmOperatorType ot)