Blender V4.3
eyedropper_colorband.cc File Reference
#include "MEM_guardedalloc.h"
#include "DNA_screen_types.h"
#include "BLI_bitmap_draw_2d.h"
#include "BLI_math_vector.h"
#include "BKE_colorband.hh"
#include "BKE_context.hh"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "UI_interface.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "interface_intern.hh"
#include "eyedropper_intern.hh"

Go to the source code of this file.

Classes

struct  blender::ui::EyedropperColorband
 
struct  blender::ui::EyedropperColorband_Context
 

Namespaces

namespace  blender
 
namespace  blender::ui
 

Functions

static bool blender::ui::eyedropper_colorband_init (bContext *C, wmOperator *op)
 
static void blender::ui::eyedropper_colorband_sample_point (bContext *C, EyedropperColorband *eye, const int m_xy[2])
 
static bool blender::ui::eyedropper_colorband_sample_callback (int mx, int my, void *userdata)
 
static void blender::ui::eyedropper_colorband_sample_segment (bContext *C, EyedropperColorband *eye, const int m_xy[2])
 
static void blender::ui::eyedropper_colorband_exit (bContext *C, wmOperator *op)
 
static void blender::ui::eyedropper_colorband_apply (bContext *C, wmOperator *op)
 
static void blender::ui::eyedropper_colorband_cancel (bContext *C, wmOperator *op)
 
static int blender::ui::eyedropper_colorband_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
static int blender::ui::eyedropper_colorband_point_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
static int blender::ui::eyedropper_colorband_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
static int blender::ui::eyedropper_colorband_exec (bContext *C, wmOperator *op)
 
static bool blender::ui::eyedropper_colorband_poll (bContext *C)
 
void blender::ui::UI_OT_eyedropper_colorramp (wmOperatorType *ot)
 
void blender::ui::UI_OT_eyedropper_colorramp_point (wmOperatorType *ot)
 

Detailed Description

Eyedropper (Color Band).

Operates by either:

  • Dragging a straight line, sampling pixels formed by the line to extract a gradient.
  • Clicking on points, adding each color to the end of the color-band.

Defines:

  • #UI_OT_eyedropper_colorramp
  • #UI_OT_eyedropper_colorramp_point

Definition in file eyedropper_colorband.cc.