|
Blender V5.0
|
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_region (const int xy[2], const char *name) |
| uiBut * | eyedropper_get_property_button_under_mouse (bContext *C, const wmEvent *event) |
| void | eyedropper_win_area_find (const bContext *C, const int event_xy[2], int r_event_xy[2], wmWindow **r_win, ScrArea **r_area) |
| bool | eyedropper_color_sample_fl (bContext *C, struct Eyedropper *eye, const int event_xy[2], float r_col[3]) |
Share between interface/eyedropper/ files.
Definition in file eyedropper_intern.hh.
| 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 63 of file eyedropper_intern.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| EYE_MODAL_CANCEL | |
| EYE_MODAL_SAMPLE_CONFIRM | |
| EYE_MODAL_SAMPLE_BEGIN | |
| EYE_MODAL_SAMPLE_RESET | |
Definition at line 55 of file eyedropper_intern.hh.
| bool eyedropper_color_sample_fl | ( | bContext * | C, |
| struct Eyedropper * | eye, | ||
| const int | event_xy[2], | ||
| float | r_col[3] ) |
Definition at line 437 of file eyedropper_color.cc.
References BKE_area_find_region_xy(), BKE_screen_find_area_xy(), C, CTX_data_main(), CTX_data_scene(), CTX_wm_window(), ColorManagedDisplaySettings::display_device, Scene::display_settings, ED_space_clip_color_sample(), ED_space_image_color_sample(), ED_space_node_color_sample(), ListBase::first, IMB_colormanagement_display_get_named(), IMB_colormanagement_display_to_scene_linear_v3(), IMB_colormanagement_srgb_to_scene_linear_v3(), ViewportColorSampleSession::init(), RGN_TYPE_WINDOW, ViewportColorSampleSession::sample(), SPACE_CLIP, SPACE_IMAGE, SPACE_NODE, SPACE_TYPE_ANY, SPACE_VIEW3D, ScrArea::spacedata, ScrArea::spacetype, Eyedropper::viewport_session, ARegion::winrct, WM_capabilities_flag(), WM_CAPABILITY_DESKTOP_SAMPLE, WM_desktop_cursor_sample_read(), WM_window_find_under_cursor(), WM_window_get_active_screen(), WM_window_pixels_read_sample(), WM_window_pixels_read_sample_from_offscreen(), rcti::xmin, rcti::ymin, and zero_v3().
Referenced by eyedropper_color_sample(), blender::ui::eyedropper_colorband_sample_point(), and blender::ui::greasepencil::eyedropper_grease_pencil_color_sample().
| void eyedropper_draw_cursor_text_region | ( | const int | xy[2], |
| const char * | name ) |
Definition at line 95 of file interface_eyedropper.cc.
References uiWidgetColors::inner, name, rgba_uchar_to_float(), uiWidgetColors::text, bTheme::tui, U, UI_fontstyle_draw_simple_backdrop(), UI_FSTYLE_WIDGET, UI_GetTheme(), ThemeUI::wcol_tooltip, and xy.
Referenced by blender::ui::datadropper_draw_cb(), datadropper_draw_cb(), depthdropper_draw_cb(), and 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 114 of file interface_eyedropper.cc.
References BKE_area_find_region_xy(), BKE_screen_find_area_xy(), C, CTX_wm_screen(), PointerRNA::data, ELEM, RGN_TYPE_ANY, uiBut::rnapoin, uiBut::rnaprop, SPACE_TYPE_ANY, UI_but_find_mouse_over(), and wmEvent::xy.
Referenced by driverdropper_sample().
| void eyedropper_win_area_find | ( | const bContext * | C, |
| const int | event_xy[2], | ||
| int | r_event_xy[2], | ||
| wmWindow ** | r_win, | ||
| ScrArea ** | r_area ) |
Definition at line 128 of file interface_eyedropper.cc.
References BKE_screen_find_area_xy(), C, copy_v2_v2_int(), CTX_wm_screen(), CTX_wm_window(), SPACE_TYPE_ANY, WM_window_find_under_cursor(), and WM_window_get_active_screen().
Referenced by blender::ui::bonedropper_modal(), blender::ui::bonedropper_sample(), datadropper_id_sample(), and datadropper_modal().