Blender
V3.3
|
Go to the source code of this file.
Enumerations | |
enum | { EYE_MODAL_CANCEL = 1 , EYE_MODAL_SAMPLE_CONFIRM , EYE_MODAL_SAMPLE_BEGIN , EYE_MODAL_SAMPLE_RESET } |
enum | { EYE_MODAL_POINT_CANCEL = 1 , EYE_MODAL_POINT_SAMPLE , EYE_MODAL_POINT_CONFIRM , EYE_MODAL_POINT_RESET , EYE_MODAL_POINT_REMOVE_LAST } |
Functions | |
void | eyedropper_draw_cursor_text_window (const struct wmWindow *window, const char *name) |
void | eyedropper_draw_cursor_text_region (const int xy[2], 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) |
void | eyedropper_color_sample_fl (bContext *C, const int m_xy[2], float r_col[3]) |
get the color from the screen. More... | |
Share between interface/eyedropper/
files.
Definition in file eyedropper_intern.h.
anonymous enum |
Enumerator | |
---|---|
EYE_MODAL_CANCEL | |
EYE_MODAL_SAMPLE_CONFIRM | |
EYE_MODAL_SAMPLE_BEGIN | |
EYE_MODAL_SAMPLE_RESET |
Definition at line 43 of file eyedropper_intern.h.
anonymous enum |
Enumerator | |
---|---|
EYE_MODAL_POINT_CANCEL | |
EYE_MODAL_POINT_SAMPLE | |
EYE_MODAL_POINT_CONFIRM | |
EYE_MODAL_POINT_RESET | |
EYE_MODAL_POINT_REMOVE_LAST |
Definition at line 51 of file eyedropper_intern.h.
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 | ||
) |
Referenced by datadropper_id_sample(), datadropper_modal(), and eyedropper_color_sample_fl().
get the color from the screen.
Special check for image or nodes where we MAY have HDR pixels which don't display.
Definition at line 312 of file eyedropper_color.c.
References blender::compositor::area(), BKE_area_find_region_xy(), C, CTX_data_main(), CTX_data_scene(), CTX_wm_manager(), datadropper_win_area_find(), ColorManagedDisplaySettings::display_device, Scene::display_settings, ED_space_clip_color_sample(), ED_space_image_color_sample(), ED_space_node_color_sample(), IMB_colormanagement_display_get_named(), IMB_colormanagement_display_to_scene_linear_v3(), NULL, RGN_TYPE_WINDOW, SPACE_CLIP, SPACE_IMAGE, SPACE_NODE, ARegion::winrct, WM_window_pixel_sample_read(), rcti::xmin, rcti::ymin, and zero_v3().
Referenced by eyedropper_color_sample(), eyedropper_colorband_sample_point(), and eyedropper_gpencil_color_sample().
void eyedropper_draw_cursor_text_region | ( | const int | xy[2], |
const char * | name | ||
) |
Definition at line 119 of file interface_eyedropper.c.
References eyedropper_draw_cursor_text_ex(), and xy.
Referenced by datadropper_draw_cb(), and depthdropper_draw_cb().
Definition at line 110 of file interface_eyedropper.c.
References wmWindow::eventstate, eyedropper_draw_cursor_text_ex(), and wmEvent::xy.
Referenced by eyedropper_draw_cb().
Utility to retrieve a button representing a RNA property that is currently under the cursor.
This is to be used by any eyedroppers which fetch properties (e.g. UI_OT_eyedropper_driver). Especially during modal operations (e.g. as with the eyedroppers), context cannot be relied upon to provide this information, as it is not updated until the operator finishes.
Definition at line 128 of file interface_eyedropper.c.
References blender::compositor::area(), BKE_area_find_region_xy(), BKE_screen_find_area_xy(), C, CTX_wm_screen(), PointerRNA::data, ELEM, NULL, RGN_TYPE_ANY, uiBut::rnapoin, uiBut::rnaprop, SPACE_TYPE_ANY, ui_but_find_mouse_over(), and wmEvent::xy.
Referenced by driverdropper_sample().