diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-08-26 20:12:21 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-08-26 20:12:21 +0300 |
commit | aadbdb80484c374f054c23502c76511be588fd77 (patch) | |
tree | d59b74bfacf14e9d2d31b95e978d14efd8498497 /source/blender/editors/interface/interface_eyedropper_intern.h | |
parent | d7b0567f7c9f52383eb91d5e6b96aa9fd65ee1a5 (diff) |
Cleanup: split eyedropper_color_sample_fl into more specific utilities
The window and region find utility can be used in other eyedropper
operators.
Diffstat (limited to 'source/blender/editors/interface/interface_eyedropper_intern.h')
-rw-r--r-- | source/blender/editors/interface/interface_eyedropper_intern.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_eyedropper_intern.h b/source/blender/editors/interface/interface_eyedropper_intern.h index 96a2c6ed111..2957ea337e0 100644 --- a/source/blender/editors/interface/interface_eyedropper_intern.h +++ b/source/blender/editors/interface/interface_eyedropper_intern.h @@ -28,6 +28,11 @@ 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 datadropper_win_area_find(const struct bContext *C, + const int mval[2], + int r_mval[2], + struct wmWindow **r_win, + struct ScrArea **r_area); /* interface_eyedropper_color.c (expose for color-band picker) */ void eyedropper_color_sample_fl(bContext *C, int mx, int my, float r_col[3]); |