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 17 /** \file 18 * \ingroup edinterface 19 * 20 * Share between interface_eyedropper_*.c files. 21 */ 22 23 #pragma once 24 25 /* interface_eyedropper.c */ 26 void eyedropper_draw_cursor_text(const struct bContext *C, 27 const struct ARegion *region, 28 const char *name); 29 uiBut *eyedropper_get_property_button_under_mouse(bContext *C, const wmEvent *event); 30 31 /* interface_eyedropper_color.c (expose for color-band picker) */ 32 void eyedropper_color_sample_fl(bContext *C, int mx, int my, float r_col[3]); 33 34 /* Used for most eye-dropper operators. */ 35 enum { 36 EYE_MODAL_CANCEL = 1, 37 EYE_MODAL_SAMPLE_CONFIRM, 38 EYE_MODAL_SAMPLE_BEGIN, 39 EYE_MODAL_SAMPLE_RESET, 40 }; 41 42 /* Color-band point sample. */ 43 enum { 44 EYE_MODAL_POINT_CANCEL = 1, 45 EYE_MODAL_POINT_SAMPLE, 46 EYE_MODAL_POINT_CONFIRM, 47 EYE_MODAL_POINT_RESET, 48 EYE_MODAL_POINT_REMOVE_LAST, 49 }; 50