Blender  V3.3
interface_eyedropper.c File Reference
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "BLI_math_color.h"
#include "BLI_math_vector.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 "eyedropper_intern.h"

Go to the source code of this file.

Functions

Modal Keymap
wmKeyMapeyedropper_modal_keymap (wmKeyConfig *keyconf)
 
wmKeyMapeyedropper_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 struct wmWindow *window, const char *name)
 
void eyedropper_draw_cursor_text_region (const int xy[2], const char *name)
 
uiButeyedropper_get_property_button_under_mouse (bContext *C, const wmEvent *event)
 
void datadropper_win_area_find (const bContext *C, const int mval[2], int r_mval[2], wmWindow **r_win, ScrArea **r_area)
 

Function Documentation

◆ datadropper_win_area_find()

void datadropper_win_area_find ( const bContext C,
const int  mval[2],
int  r_mval[2],
wmWindow **  r_win,
ScrArea **  r_area 
)

◆ eyedropper_colorband_modal_keymap()

wmKeyMap* eyedropper_colorband_modal_keymap ( wmKeyConfig keyconf)

◆ eyedropper_draw_cursor_text_ex()

static void eyedropper_draw_cursor_text_ex ( const int  xy[2],
const char *  name 
)
static

◆ eyedropper_draw_cursor_text_region()

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().

◆ eyedropper_draw_cursor_text_window()

void eyedropper_draw_cursor_text_window ( const struct wmWindow window,
const char *  name 
)

◆ eyedropper_get_property_button_under_mouse()

uiBut* eyedropper_get_property_button_under_mouse ( bContext C,
const wmEvent event 
)

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.

Returns
A button under the mouse which relates to some RNA Property, or NULL

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().

◆ eyedropper_modal_keymap()

wmKeyMap* eyedropper_modal_keymap ( wmKeyConfig keyconf)