Blender V4.3
interface_dropboxes.cc File Reference
#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 ()
 

Function Documentation

◆ ED_dropboxes_ui()

◆ ui_drop_material_copy()

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

◆ ui_drop_material_poll()

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

◆ ui_drop_material_tooltip()

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

◆ ui_drop_name_copy()

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

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

◆ ui_drop_name_poll()

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

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

◆ ui_view_drop_poll()

◆ ui_view_drop_tooltip()

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