Blender  V3.3
eyedropper_intern.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
9 #pragma once
10 
11 /* interface_eyedropper.c */
12 
13 void eyedropper_draw_cursor_text_window(const struct wmWindow *window, const char *name);
14 void eyedropper_draw_cursor_text_region(const int xy[2], const char *name);
26  const int mval[2],
27  int r_mval[2],
28  struct wmWindow **r_win,
29  struct ScrArea **r_area);
30 
31 /* interface_eyedropper_color.c (expose for color-band picker) */
32 
40 void eyedropper_color_sample_fl(bContext *C, const int m_xy[2], float r_col[3]);
41 
42 /* Used for most eye-dropper operators. */
43 enum {
48 };
49 
50 /* Color-band point sample. */
51 enum {
57 };
#define C
Definition: RandGen.cpp:25
uiBut * eyedropper_get_property_button_under_mouse(bContext *C, const wmEvent *event)
void eyedropper_color_sample_fl(bContext *C, const int m_xy[2], float r_col[3])
get the color from the screen.
@ EYE_MODAL_SAMPLE_BEGIN
@ EYE_MODAL_SAMPLE_RESET
@ EYE_MODAL_CANCEL
@ EYE_MODAL_SAMPLE_CONFIRM
void eyedropper_draw_cursor_text_window(const struct wmWindow *window, const char *name)
void datadropper_win_area_find(const struct bContext *C, const int mval[2], int r_mval[2], struct wmWindow **r_win, struct ScrArea **r_area)
void eyedropper_draw_cursor_text_region(const int xy[2], const char *name)
@ EYE_MODAL_POINT_CANCEL
@ EYE_MODAL_POINT_RESET
@ EYE_MODAL_POINT_SAMPLE
@ EYE_MODAL_POINT_CONFIRM
@ EYE_MODAL_POINT_REMOVE_LAST
int xy[2]
Definition: wm_draw.c:135