aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/wnd/di.cpp
blob: d7ff363121e91d91c5ae2bf07b44c24a0c337361 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "precomp.h"
#include "drag.h"
#include <api/wnd/api_window.h>

DI::DI(ifc_window *rw)
	{
		if (rw == NULL) di = NULL;
		else di = rw->getDragInterface();
	}
	int DI::dragEnter(ifc_window *sourceWnd)
	{
		return di ? di->dragEnter(sourceWnd) : 0;
	}
	int DI::dragOver(int x, int y, ifc_window *sourceWnd)
	{
		return di ? di->dragOver(x, y, sourceWnd) : 0;
	}
	int DI::dragSetSticky(ifc_window *wnd, int left, int right, int up, int down)
	{
		return di ? di->dragSetSticky(wnd, left, right, up, down) : 0;
	}
	int DI::dragLeave(ifc_window *sourceWnd)
	{
		return di ? di->dragLeave(sourceWnd) : 0;
	}
	int DI::dragDrop(ifc_window *sourceWnd, int x, int y)
	{
		return di ? di->dragDrop(sourceWnd, x, y) : 0;
	}

	const wchar_t *DI::dragGetSuggestedDropTitle(void)
	{
		return di ? di->dragGetSuggestedDropTitle() : NULL;
	}
	int DI::dragCheckData(const wchar_t *type, int *nitems )
	{
		return di ? di->dragCheckData(type, nitems) : 0;
	}
	void *DI::dragGetData(int slot, int itemnum)
	{
		return di ? di->dragGetData(slot, itemnum) : NULL;
	}
	int DI::dragCheckOption(int option)
	{
		return di ? di->dragCheckOption(option) : NULL;
	}