#include <Dnd.h>
#include <X11/Xmd.h>
Go to the source code of this file.
#define DND_PROTOCOL_VERSION 0 |
#define DND_EVENT_TYPE_MASK ((BYTE)0x80) |
#define DND_EVENT_TYPE_SHIFT 7 |
#define DND_CLEAR_EVENT_TYPE ((BYTE)0x7F) |
#define DND_OPERATION_MASK ((CARD16) 0x000F) |
#define DND_OPERATION_SHIFT 0 |
#define DND_STATUS_MASK ((CARD16) 0x00F0) |
#define DND_STATUS_SHIFT 4 |
#define DND_OPERATIONS_MASK ((CARD16) 0x0F00) |
#define DND_OPERATIONS_SHIFT 8 |
#define DND_COMPLETION_MASK ((CARD16) 0xF000) |
#define DND_COMPLETION_SHIFT 12 |
#define DND_GET_OPERATION |
( |
|
flags | ) |
|
Value:
Definition at line 100 of file DndP.h.
#define DND_SET_OPERATION |
( |
|
operation | ) |
|
Value:
Definition at line 104 of file DndP.h.
#define DND_GET_STATUS |
( |
|
flags | ) |
|
Value:
Definition at line 108 of file DndP.h.
#define DND_SET_STATUS |
( |
|
status | ) |
|
Value:
Definition at line 112 of file DndP.h.
#define DND_GET_OPERATIONS |
( |
|
flags | ) |
|
Value:
Definition at line 116 of file DndP.h.
#define DND_SET_OPERATIONS |
( |
|
operation | ) |
|
Value:
Definition at line 120 of file DndP.h.
#define DND_GET_COMPLETION |
( |
|
flags | ) |
|
Value:
Definition at line 124 of file DndP.h.
#define DND_SET_COMPLETION |
( |
|
completion | ) |
|
Value:
Definition at line 128 of file DndP.h.
Value:{\
struct { unsigned t :32;} bit32;\
char n, *tp = (char *) &bit32;\
bit32.t = l;\
n = tp[0]; tp[0] = tp[3]; tp[3] = n;\
n = tp[1]; tp[1] = tp[2]; tp[2] = n;\
l = bit32.t;\
}
Definition at line 133 of file DndP.h.
Value:{\
struct { unsigned t :16; } bit16;\
char n, *tp = (char *) &bit16;\
bit16.t = s;\
n = tp[0]; tp[0] = tp[1]; tp[1] = n;\
s = bit16.t;\
}
Definition at line 142 of file DndP.h.
unsigned char _DndByteOrder |
( |
void |
| ) |
|
Private extern functions.
int _DndTargetsToIndex |
( |
Display * |
display, |
|
|
Atom * |
targets, |
|
|
int |
num_targets |
|
) |
| |
int _DndIndexToTargets |
( |
Display * |
display, |
|
|
int |
index, |
|
|
Atom ** |
targets |
|
) |
| |