|
Blender
V2.93
|
#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "BKE_context.h"#include "BKE_screen.h"#include "UI_interface.h"#include "WM_api.h"#include "WM_types.h"#include "interface_intern.h"#include "interface_eyedropper_intern.h"Go to the source code of this file.
Functions | |
Modal Keymap | |
| wmKeyMap * | eyedropper_modal_keymap (wmKeyConfig *keyconf) |
| wmKeyMap * | eyedropper_colorband_modal_keymap (wmKeyConfig *keyconf) |
Generic Shared Functions | |
| static void | eyedropper_draw_cursor_text_ex (const int x, const int y, const char *name) |
| void | eyedropper_draw_cursor_text_window (const struct wmWindow *window, const char *name) |
| void | eyedropper_draw_cursor_text_region (const struct bContext *C, const ARegion *region, const char *name) |
| uiBut * | eyedropper_get_property_button_under_mouse (bContext *C, const wmEvent *event) |
| wmKeyMap* eyedropper_colorband_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 75 of file interface_eyedropper.c.
References EYE_MODAL_POINT_CANCEL, EYE_MODAL_POINT_CONFIRM, EYE_MODAL_POINT_RESET, EYE_MODAL_POINT_SAMPLE, wmKeyMap::modal_items, NULL, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_ui().
|
static |
Definition at line 106 of file interface_eyedropper.c.
References UI_fontstyle_draw_simple_backdrop(), UI_FSTYLE_WIDGET, x, and y.
Referenced by eyedropper_draw_cursor_text_region(), and eyedropper_draw_cursor_text_window().
| void eyedropper_draw_cursor_text_region | ( | const struct bContext * | C, |
| const ARegion * | region, | ||
| const char * | name | ||
| ) |
Definition at line 128 of file interface_eyedropper.c.
References BLI_rcti_isect_pt(), C, CTX_wm_window(), wmWindow::eventstate, eyedropper_draw_cursor_text_ex(), ARegion::winrct, x, wmEvent::x, rcti::xmin, y, wmEvent::y, and rcti::ymin.
Referenced by datadropper_draw_cb(), and depthdropper_draw_cb().
| void eyedropper_draw_cursor_text_window | ( | const struct wmWindow * | window, |
| const char * | name | ||
| ) |
Definition at line 116 of file interface_eyedropper.c.
References wmWindow::eventstate, eyedropper_draw_cursor_text_ex(), x, wmEvent::x, y, and wmEvent::y.
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 157 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(), wmEvent::x, and wmEvent::y.
Referenced by driverdropper_sample().
| wmKeyMap* eyedropper_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 45 of file interface_eyedropper.c.
References EYE_MODAL_CANCEL, EYE_MODAL_SAMPLE_BEGIN, EYE_MODAL_SAMPLE_CONFIRM, EYE_MODAL_SAMPLE_RESET, wmKeyMap::modal_items, NULL, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_ui().