Blender
V3.3
|
#include "BKE_context.h"
#include "BLI_string.h"
#include "BLT_translation.h"
#include "DNA_material_types.h"
#include "DNA_space_types.h"
#include "MEM_guardedalloc.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "WM_api.h"
#include "UI_interface.h"
Go to the source code of this file.
Functions | |
View Drag/Drop Callbacks | |
static bool | ui_view_drop_poll (bContext *C, wmDrag *drag, const wmEvent *event) |
static char * | ui_view_drop_tooltip (bContext *C, wmDrag *drag, const int xy[2], wmDropBox *UNUSED(drop)) |
Name Drag/Drop Callbacks | |
static bool | ui_drop_name_poll (struct bContext *C, wmDrag *drag, const wmEvent *UNUSED(event)) |
static void | ui_drop_name_copy (bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop) |
Material Drag/Drop Callbacks | |
static bool | ui_drop_material_poll (bContext *C, wmDrag *drag, const wmEvent *UNUSED(event)) |
static void | ui_drop_material_copy (bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop) |
static char * | ui_drop_material_tooltip (bContext *C, wmDrag *drag, const int UNUSED(xy[2]), struct wmDropBox *UNUSED(drop)) |
Add User Interface Drop Boxes | |
void | ED_dropboxes_ui () |
Definition at line 138 of file interface_dropboxes.cc.
References SPACE_EMPTY, ui_drop_material_copy(), ui_drop_material_poll(), ui_drop_material_tooltip(), ui_drop_name_copy(), ui_drop_name_poll(), ui_view_drop_poll(), ui_view_drop_tooltip(), WM_drag_free_imported_drag_ID(), WM_dropbox_add(), and WM_dropboxmap_find().
Referenced by ED_spacemacros_init().
Definition at line 87 of file interface_dropboxes.cc.
References id, ID_MA, wmDropBox::ptr, RNA_int_set(), ID::session_uuid, and WM_drag_get_local_ID_or_import_from_asset().
Referenced by ED_dropboxes_ui().
|
static |
Definition at line 81 of file interface_dropboxes.cc.
References C, CTX_data_pointer_get_type(), ID_MA, RNA_pointer_is_null(), and WM_drag_is_ID_type().
Referenced by ED_dropboxes_ui().
|
static |
Definition at line 93 of file interface_dropboxes.cc.
References Object::actcol, BLI_assert, BLI_sprintfN(), C, CTX_data_pointer_get_type(), PointerRNA::data, Material::id, Object::id, ID::name, result, RNA_int_get(), RNA_pointer_get(), TIP_, and WM_drag_get_item_name().
Referenced by ED_dropboxes_ui().
Definition at line 69 of file interface_dropboxes.cc.
References id, ID::name, wmDropBox::ptr, RNA_string_set(), and WM_drag_get_local_ID().
Referenced by ED_dropboxes_ui().
|
static |
Definition at line 64 of file interface_dropboxes.cc.
References C, wmDrag::type, UI_but_active_drop_name(), and WM_DRAG_ID.
Referenced by ED_dropboxes_ui().
Definition at line 28 of file interface_dropboxes.cc.
References C, CTX_wm_region(), wmDragActiveDropState::disabled_info, wmDrag::drop_state, wmDragActiveDropState::free_disabled_info, MEM_SAFE_FREE, UI_region_views_find_item_at(), UI_view_item_can_drop(), and wmEvent::xy.
Referenced by ED_dropboxes_ui().
|
static |
Definition at line 44 of file interface_dropboxes.cc.
References C, CTX_wm_region(), UI_region_views_find_item_at(), UI_view_item_drop_tooltip(), and xy.
Referenced by ED_dropboxes_ui().