Blender V4.3
eyedropper_intern.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
11#pragma once
12
13/* `interface_eyedropper.cc` */
14
15void eyedropper_draw_cursor_text_window(const wmWindow *window, const char *name);
16void eyedropper_draw_cursor_text_region(const int xy[2], const char *name);
28 const int event_xy[2],
29 int r_event_xy[2],
30 wmWindow **r_win,
31 ScrArea **r_area);
32
33/* interface_eyedropper_color.c (expose for color-band picker) */
34
44struct Eyedropper;
46 struct Eyedropper *eye,
47 const int event_xy[2],
48 float r_col[3]);
49
50/* Used for most eye-dropper operators. */
51enum {
56};
57
58/* Color-band point sample. */
59enum {
65};
uiBut * eyedropper_get_property_button_under_mouse(bContext *C, const wmEvent *event)
void eyedropper_win_area_find(const bContext *C, const int event_xy[2], int r_event_xy[2], wmWindow **r_win, ScrArea **r_area)
@ EYE_MODAL_POINT_CANCEL
@ EYE_MODAL_POINT_RESET
@ EYE_MODAL_POINT_SAMPLE
@ EYE_MODAL_POINT_CONFIRM
@ EYE_MODAL_POINT_REMOVE_LAST
@ EYE_MODAL_SAMPLE_BEGIN
@ EYE_MODAL_SAMPLE_RESET
@ EYE_MODAL_CANCEL
@ EYE_MODAL_SAMPLE_CONFIRM
void eyedropper_draw_cursor_text_region(const int xy[2], const char *name)
void eyedropper_color_sample_fl(bContext *C, struct Eyedropper *eye, const int event_xy[2], float r_col[3])
void eyedropper_draw_cursor_text_window(const wmWindow *window, const char *name)
int xy[2]
Definition wm_draw.cc:170