|
Blender V4.3
|
#include <fmt/format.h>#include "BKE_context.hh"#include "BLT_translation.hh"#include "DNA_material_types.h"#include "DNA_space_types.h"#include "MEM_guardedalloc.h"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "WM_api.hh"#include "UI_interface.hh"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 std::string | ui_view_drop_tooltip (bContext *C, wmDrag *drag, const int xy[2], wmDropBox *) |
Name Drag/Drop Callbacks | |
| static bool | ui_drop_name_poll (bContext *C, wmDrag *drag, const wmEvent *) |
| static void | ui_drop_name_copy (bContext *, wmDrag *drag, wmDropBox *drop) |
Material Drag/Drop Callbacks | |
| static bool | ui_drop_material_poll (bContext *C, wmDrag *drag, const wmEvent *) |
| static void | ui_drop_material_copy (bContext *C, wmDrag *drag, wmDropBox *drop) |
| static std::string | ui_drop_material_tooltip (bContext *C, wmDrag *drag, const int[2], wmDropBox *) |
Add User Interface Drop Boxes | |
| void | ED_dropboxes_ui () |
| void ED_dropboxes_ui | ( | ) |
Definition at line 154 of file interface_dropboxes.cc.
References RGN_TYPE_WINDOW, 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 107 of file interface_dropboxes.cc.
References ID_MA, wmDropBox::ptr, RNA_int_set(), and WM_drag_get_local_ID_or_import_from_asset().
Referenced by ED_dropboxes_ui().
Definition at line 90 of file interface_dropboxes.cc.
References CTX_data_pointer_get_type(), PointerRNA::data, Object::id, ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, ID_MA, RNA_pointer_is_null(), and WM_drag_is_ID_type().
Referenced by ED_dropboxes_ui().
|
static |
Definition at line 113 of file interface_dropboxes.cc.
References Object::actcol, BLI_assert, CTX_data_pointer_get_type(), PointerRNA::data, Material::id, Object::id, ID::name, RNA_int_get(), RNA_pointer_get(), TIP_, and WM_drag_get_item_name().
Referenced by ED_dropboxes_ui().
Definition at line 78 of file interface_dropboxes.cc.
References wmDropBox::ptr, RNA_string_set(), and WM_drag_get_local_ID().
Referenced by ED_dropboxes_ui().
Definition at line 73 of file interface_dropboxes.cc.
References wmDrag::type, UI_but_active_drop_name(), and WM_DRAG_ID.
Referenced by ED_dropboxes_ui().
Definition at line 33 of file interface_dropboxes.cc.
References CTX_wm_region(), wmDragActiveDropState::disabled_info, wmDrag::drop_state, wmDragActiveDropState::free_disabled_info, MEM_SAFE_FREE, blender::ui::region_views_find_drop_target_at(), and wmEvent::xy.
Referenced by ED_dropboxes_ui().
|
static |
Definition at line 51 of file interface_dropboxes.cc.
References CTX_wm_region(), CTX_wm_window(), blender::ui::drop_target_tooltip(), wmWindow::eventstate, blender::ui::region_views_find_drop_target_at(), and xy.
Referenced by ED_dropboxes_ui().