Blender  V2.93
interface_eyedropper_intern.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
23 #pragma once
24 
25 /* interface_eyedropper.c */
26 void eyedropper_draw_cursor_text_window(const struct wmWindow *window, const char *name);
28  const struct ARegion *region,
29  const char *name);
31 
32 /* interface_eyedropper_color.c (expose for color-band picker) */
33 void eyedropper_color_sample_fl(bContext *C, int mx, int my, float r_col[3]);
34 
35 /* Used for most eye-dropper operators. */
36 enum {
41 };
42 
43 /* Color-band point sample. */
44 enum {
50 };
#define C
Definition: RandGen.cpp:39
void eyedropper_draw_cursor_text_region(const struct bContext *C, const struct ARegion *region, const char *name)
uiBut * eyedropper_get_property_button_under_mouse(bContext *C, const wmEvent *event)
void eyedropper_draw_cursor_text_window(const struct wmWindow *window, const char *name)
@ EYE_MODAL_POINT_CANCEL
@ EYE_MODAL_POINT_SAMPLE
@ EYE_MODAL_POINT_CONFIRM
@ EYE_MODAL_POINT_REMOVE_LAST
void eyedropper_color_sample_fl(bContext *C, int mx, int my, float r_col[3])
get the color from the screen.
@ EYE_MODAL_SAMPLE_BEGIN
@ EYE_MODAL_SAMPLE_RESET
@ EYE_MODAL_SAMPLE_CONFIRM