Blender V2.61 - r43446
Classes | Typedefs | Functions | Variables

wm_dragdrop.c File Reference

#include <string.h>
#include "DNA_windowmanager_types.h"
#include "DNA_screen_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "BKE_blender.h"
#include "BKE_context.h"
#include "BKE_idprop.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_screen.h"
#include "BKE_global.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "WM_api.h"
#include "WM_types.h"
#include "wm_event_system.h"
#include "wm.h"

Go to the source code of this file.

Classes

struct  wmDropBoxMap

Typedefs

typedef struct wmDropBoxMap wmDropBoxMap

Functions

ListBaseWM_dropboxmap_find (const char *idname, int spaceid, int regionid)
wmDropBoxWM_dropbox_add (ListBase *lb, const char *idname, int(*poll)(bContext *, wmDrag *, wmEvent *), void(*copy)(wmDrag *, wmDropBox *))
void wm_dropbox_free (void)
wmDragWM_event_start_drag (struct bContext *C, int icon, int type, void *poin, double value)
void WM_event_drag_image (wmDrag *drag, ImBuf *imb, float scale, int sx, int sy)
static const char * dropbox_active (bContext *C, ListBase *handlers, wmDrag *drag, wmEvent *event)
static const char * wm_dropbox_active (bContext *C, wmDrag *drag, wmEvent *event)
static void wm_drop_operator_options (bContext *C, wmDrag *drag, wmEvent *event)
void wm_drags_check_ops (bContext *C, wmEvent *event)
static void wm_drop_operator_draw (const char *name, int x, int y)
static const char * wm_drag_name (wmDrag *drag)
static void drag_rect_minmax (rcti *rect, int x1, int y1, int x2, int y2)
void wm_drags_draw (bContext *C, wmWindow *win, rcti *rect)

Variables

static ListBase dropboxes = {NULL, NULL}

Detailed Description

Definition in file wm_dragdrop.c.


Typedef Documentation

typedef struct wmDropBoxMap wmDropBoxMap

Function Documentation

static void drag_rect_minmax ( rcti rect,
int  x1,
int  y1,
int  x2,
int  y2 
) [static]

Definition at line 280 of file wm_dragdrop.c.

References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.

Referenced by wm_drags_draw().

static const char* dropbox_active ( bContext C,
ListBase handlers,
wmDrag drag,
wmEvent event 
) [static]
static const char* wm_drag_name ( wmDrag drag) [static]

Definition at line 264 of file wm_dragdrop.c.

References ID::name, wmDrag::path, wmDrag::poin, wmDrag::type, WM_DRAG_ID, WM_DRAG_NAME, and WM_DRAG_PATH.

Referenced by wm_drags_draw().

void wm_drags_check_ops ( bContext C,
wmEvent event 
)
void wm_drags_draw ( bContext C,
wmWindow win,
rcti rect 
)
static void wm_drop_operator_draw ( const char *  name,
int  x,
int  y 
) [static]
static void wm_drop_operator_options ( bContext C,
wmDrag drag,
wmEvent event 
) [static]
static const char* wm_dropbox_active ( bContext C,
wmDrag drag,
wmEvent event 
) [static]
wmDropBox* WM_dropbox_add ( ListBase lb,
const char *  idname,
int(*)(bContext *, wmDrag *, wmEvent *)  poll,
void(*)(wmDrag *, wmDropBox *)  copy 
)
void wm_dropbox_free ( void  )
ListBase* WM_dropboxmap_find ( const char *  idname,
int  spaceid,
int  regionid 
)
void WM_event_drag_image ( wmDrag drag,
ImBuf imb,
float  scale,
int  sx,
int  sy 
)

Definition at line 166 of file wm_dragdrop.c.

References wmDrag::imb, wmDrag::scale, wmDrag::sx, and wmDrag::sy.

Referenced by ui_but_start_drag().

wmDrag* WM_event_start_drag ( struct bContext C,
int  icon,
int  type,
void *  poin,
double  value 
) [read]

Variable Documentation

ListBase dropboxes = {NULL, NULL} [static]

Definition at line 66 of file wm_dragdrop.c.

Referenced by WM_event_add_dropbox_handler().