Blender V5.0
interface_dropboxes.cc File Reference
#include <fmt/format.h>
#include "BKE_context.hh"
#include "BKE_library.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 *C, 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 ()

Function Documentation

◆ ED_dropboxes_ui()

◆ ui_drop_material_copy()

void ui_drop_material_copy ( bContext * C,
wmDrag * drag,
wmDropBox * drop )
static

◆ ui_drop_material_poll()

bool ui_drop_material_poll ( bContext * C,
wmDrag * drag,
const wmEvent *  )
static

◆ ui_drop_material_tooltip()

std::string ui_drop_material_tooltip ( bContext * C,
wmDrag * drag,
const int [2],
wmDropBox *  )
static

◆ ui_drop_name_copy()

void ui_drop_name_copy ( bContext * C,
wmDrag * drag,
wmDropBox * drop )
static

◆ ui_drop_name_poll()

bool ui_drop_name_poll ( bContext * C,
wmDrag * drag,
const wmEvent *  )
static

Definition at line 74 of file interface_dropboxes.cc.

References C, ELEM, wmDrag::type, UI_but_active_drop_name(), WM_DRAG_ASSET, and WM_DRAG_ID.

Referenced by ED_dropboxes_ui().

◆ ui_view_drop_poll()

◆ ui_view_drop_tooltip()

std::string ui_view_drop_tooltip ( bContext * C,
wmDrag * drag,
const int xy[2],
wmDropBox *  )
static