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

Function Documentation

◆ ED_dropboxes_ui()

void ED_dropboxes_ui ( void  )

◆ ui_drop_material_copy()

static void ui_drop_material_copy ( bContext UNUSEDC,
wmDrag drag,
wmDropBox drop 
)
static

◆ ui_drop_material_poll()

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

◆ ui_drop_material_tooltip()

static char* ui_drop_material_tooltip ( bContext C,
wmDrag drag,
const int   UNUSEDxy[2],
struct wmDropBox UNUSEDdrop 
)
static

◆ ui_drop_name_copy()

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

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

◆ ui_drop_name_poll()

static bool ui_drop_name_poll ( struct bContext C,
wmDrag drag,
const wmEvent UNUSEDevent 
)
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().

◆ ui_view_drop_poll()

static bool ui_view_drop_poll ( bContext C,
wmDrag drag,
const wmEvent event 
)
static

◆ ui_view_drop_tooltip()

static char* ui_view_drop_tooltip ( bContext C,
wmDrag drag,
const int  xy[2],
wmDropBox UNUSEDdrop 
)
static