Blender V5.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
10
11#pragma once
12
13namespace blender {
14
15struct ScrArea;
16struct bContext;
17struct wmEvent;
18struct wmWindow;
19
20namespace ui {
21struct Button;
22
23/* `interface_eyedropper.cc` */
24void eyedropper_draw_cursor_text_region(const int xy[2], const char *name);
34Button *eyedropper_get_property_button_under_mouse(bContext *C, const wmEvent *event);
35void eyedropper_win_area_find(const bContext *C,
36 const int event_xy[2],
37 int r_event_xy[2],
38 wmWindow **r_win,
39 ScrArea **r_area);
40
41/* interface_eyedropper_color.c (expose for color-band picker) */
42
43struct Eyedropper;
44
54bool eyedropper_color_sample_fl(bContext *C,
55 struct Eyedropper *eye,
56 const int event_xy[2],
57 float r_col[3]);
58
59/* Used for most eye-dropper operators. */
60enum {
65};
66
67/* Color-band point sample. */
68enum {
74};
75
76} // namespace ui
77} // namespace blender
#define C
Definition RandGen.cpp:29
bool eyedropper_color_sample_fl(bContext *C, Eyedropper *eye, const int event_xy[2], float r_col[3])
get the color from the screen.
void eyedropper_win_area_find(const bContext *C, const int event_xy[2], int r_event_xy[2], wmWindow **r_win, ScrArea **r_area)
void eyedropper_draw_cursor_text_region(const int xy[2], const char *name)
Button * eyedropper_get_property_button_under_mouse(bContext *C, const wmEvent *event)
BMesh Iterators.