|
Blender V4.3
|
#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "BLI_math_color.h"#include "BLI_math_vector.h"#include "BKE_context.hh"#include "BKE_screen.hh"#include "UI_interface.hh"#include "WM_api.hh"#include "WM_types.hh"#include "interface_intern.hh"#include "eyedropper_intern.hh"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 xy[2], const char *name) |
| void | eyedropper_draw_cursor_text_window (const 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 | eyedropper_win_area_find (const bContext *C, const int event_xy[2], int r_event_xy[2], wmWindow **r_win, ScrArea **r_area) |
| wmKeyMap * eyedropper_colorband_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 64 of file interface_eyedropper.cc.
References EYE_MODAL_POINT_CANCEL, EYE_MODAL_POINT_CONFIRM, EYE_MODAL_POINT_RESET, EYE_MODAL_POINT_SAMPLE, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_ui().
|
static |
Definition at line 97 of file interface_eyedropper.cc.
References uiWidgetColors::inner, rgba_uchar_to_float(), uiWidgetColors::text, bTheme::tui, UI_fontstyle_draw_simple_backdrop(), UI_FSTYLE_WIDGET, UI_GetTheme(), ThemeUI::wcol_tooltip, and xy.
Referenced by eyedropper_draw_cursor_text_region(), and eyedropper_draw_cursor_text_window().
| void eyedropper_draw_cursor_text_region | ( | const int | xy[2], |
| const char * | name ) |
Definition at line 121 of file interface_eyedropper.cc.
References eyedropper_draw_cursor_text_ex(), and xy.
Referenced by blender::ui::datadropper_draw_cb(), datadropper_draw_cb(), depthdropper_draw_cb(), and eyedropper_draw_cb().
| void eyedropper_draw_cursor_text_window | ( | const wmWindow * | window, |
| const char * | name ) |
Definition at line 112 of file interface_eyedropper.cc.
References wmWindow::eventstate, eyedropper_draw_cursor_text_ex(), and wmEvent::xy.
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 130 of file interface_eyedropper.cc.
References BKE_area_find_region_xy(), BKE_screen_find_area_xy(), 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().
| wmKeyMap * eyedropper_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 33 of file interface_eyedropper.cc.
References EYE_MODAL_CANCEL, EYE_MODAL_SAMPLE_BEGIN, EYE_MODAL_SAMPLE_CONFIRM, EYE_MODAL_SAMPLE_RESET, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_ui().
| 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 144 of file interface_eyedropper.cc.
References BKE_screen_find_area_xy(), 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().