Blender V5.0
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
10
11#pragma once
12
13struct ScrArea;
14struct bContext;
15struct uiBut;
16struct wmEvent;
17struct wmWindow;
18
19/* `interface_eyedropper.cc` */
20void eyedropper_draw_cursor_text_region(const int xy[2], const char *name);
32 const int event_xy[2],
33 int r_event_xy[2],
34 wmWindow **r_win,
35 ScrArea **r_area);
36
37/* interface_eyedropper_color.c (expose for color-band picker) */
38
48struct Eyedropper;
50 struct Eyedropper *eye,
51 const int event_xy[2],
52 float r_col[3]);
53
54/* Used for most eye-dropper operators. */
55enum {
60};
61
62/* Color-band point sample. */
63enum {
69};
#define C
Definition RandGen.cpp:29
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_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)
bool eyedropper_color_sample_fl(bContext *C, struct Eyedropper *eye, const int event_xy[2], float r_col[3])
@ EYE_MODAL_POINT_CANCEL
@ EYE_MODAL_POINT_RESET
@ EYE_MODAL_POINT_SAMPLE
@ EYE_MODAL_POINT_CONFIRM
@ EYE_MODAL_POINT_REMOVE_LAST
const char * name
int xy[2]
Definition wm_draw.cc:178