|
Eneboo - Documentación para desarrolladores
|
#include "qplatformdefs.h"#include "qapplication.h"#include "qwidget.h"#include "qt_x11_p.h"#include <stdlib.h>Clases | |
| struct | DndData |
| struct | _DndSrcProp |
| struct | _DndReceiverProp |
| struct | _DndTop |
| struct | _DndPot |
| struct | _DndMessage |
| struct | DndTargets |
| struct | DndTargetsTableEntryRec |
| struct | DndTargetsTableRec |
'defines' | |
| #define | DndVersion 1 |
| #define | DndRevision 0 |
| #define | DndIncludeVersion (DndVersion * 10 + DndRevision) |
| #define | DND_DRAG_NONE 0 |
| #define | DND_DRAG_DROP_ONLY 1 |
| #define | DND_DRAG_DYNAMIC 5 |
| #define | DND_TOP_LEVEL_ENTER 0 |
| #define | DND_TOP_LEVEL_LEAVE 1 |
| #define | DND_DRAG_MOTION 2 |
| #define | DND_DROP_SITE_ENTER 3 |
| #define | DND_DROP_SITE_LEAVE 4 |
| #define | DND_DROP_START 5 |
| #define | DND_OPERATION_CHANGED 8 |
| #define | DND_NOOP 0L |
| #define | DND_MOVE (1L << 0) |
| #define | DND_COPY (1L << 1) |
| #define | DND_LINK (1L << 2) |
| #define | DND_NO_DROP_SITE 1 |
| #define | DND_INVALID_DROP_SITE 2 |
| #define | DND_VALID_DROP_SITE 3 |
| #define | DND_DROP 0 |
| #define | DND_DROP_HELP 1 |
| #define | DND_DROP_CANCEL 2 |
| #define | BYTE unsigned char |
| #define | CARD32 unsigned int |
| #define | CARD16 unsigned short |
| #define | INT16 signed short |
| #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_GET_EVENT_TYPE(message_type) ((char) (((message_type) & DND_EVENT_TYPE_MASK) >> DND_EVENT_TYPE_SHIFT)) |
| #define | DND_SET_EVENT_TYPE(event_type) (((BYTE)(event_type) << DND_EVENT_TYPE_SHIFT) & DND_EVENT_TYPE_MASK) |
| #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) |
| #define | DND_SET_OPERATION(operation) |
| #define | DND_GET_STATUS(flags) |
| #define | DND_SET_STATUS(status) |
| #define | DND_GET_OPERATIONS(flags) |
| #define | DND_SET_OPERATIONS(operation) |
| #define | DND_GET_COMPLETION(flags) |
| #define | DND_SET_COMPLETION(completion) |
| #define | SWAP4BYTES(l) |
| #define | SWAP2BYTES(s) |
| #define | DND_DRAG_DROP_ONLY_EQUIV 3 |
| #define | DND_DRAG_DYNAMIC_EQUIV1 2 |
| #define | DND_DRAG_DYNAMIC_EQUIV2 4 |
'typedefs' | |
| typedef struct _DndSrcProp | DndSrcProp |
| typedef struct _DndReceiverProp | DndReceiverProp |
| typedef struct _DndTop | DndTop |
| typedef struct _DndPot | DndPot |
| typedef struct _DndMessage | DndMessage |
| typedef struct DndTargetsTableEntryRec * | DndTargetsTableEntry |
| typedef struct DndTargetsTableRec * | DndTargetsTable |
Funciones | |
| bool | qt_xclb_wait_for_event (Display *dpy, Window win, int type, XEvent *event, int timeout) |
| bool | qt_xclb_read_property (Display *dpy, Window win, Atom property, bool deleteProperty, QByteArray *buffer, int *size, Atom *type, int *format, bool nullterm) |
| Atom * | qt_xdnd_str_to_atom (const char *mimeType) |
| const char * | qt_xdnd_atom_to_str (Atom) |
| void | qt_x11_intern_atom (const char *, Atom *) |
| void | qt_x11_motifdnd_init () |
| const char * | qt_motifdnd_format (int n) |
| QByteArray | qt_motifdnd_obtain_data (const char *mimeType) |
| void | qt_motifdnd_enable (QWidget *widget, bool) |
| void | qt_motifdnd_handle_msg (QWidget *, const XEvent *xe, bool) |
Variables | |
| static Atom | atom_receiver_info |
| static Atom | atom_src_property_type |
| static Atom | atom_target_list |
| static Atom | Dnd_transfer_failure |
| bool | qt_motifdnd_active |
| #define BYTE unsigned char |
| #define CARD16 unsigned short |
| #define CARD32 unsigned int |
| #define DND_CLEAR_EVENT_TYPE ((BYTE)0x7F) |
| #define DND_COMPLETION_MASK ((CARD16) 0xF000) |
| #define DND_COMPLETION_SHIFT 12 |
| #define DND_COPY (1L << 1) |
| #define DND_DRAG_DROP_ONLY 1 |
| #define DND_DRAG_DROP_ONLY_EQUIV 3 |
| #define DND_DRAG_DYNAMIC 5 |
| #define DND_DRAG_DYNAMIC_EQUIV1 2 |
| #define DND_DRAG_DYNAMIC_EQUIV2 4 |
| #define DND_DRAG_MOTION 2 |
| #define DND_DRAG_NONE 0 |
| #define DND_DROP 0 |
| #define DND_DROP_CANCEL 2 |
| #define DND_DROP_HELP 1 |
| #define DND_DROP_SITE_ENTER 3 |
| #define DND_DROP_SITE_LEAVE 4 |
| #define DND_DROP_START 5 |
| #define DND_EVENT_TYPE_MASK ((BYTE)0x80) |
| #define DND_EVENT_TYPE_SHIFT 7 |
| #define DND_GET_COMPLETION | ( | flags | ) |
((unsigned char) \ (((flags) & DND_COMPLETION_MASK) >> DND_COMPLETION_SHIFT))
| #define DND_GET_EVENT_TYPE | ( | message_type | ) | ((char) (((message_type) & DND_EVENT_TYPE_MASK) >> DND_EVENT_TYPE_SHIFT)) |
| #define DND_GET_OPERATION | ( | flags | ) |
((unsigned char) \ (((flags) & DND_OPERATION_MASK) >> DND_OPERATION_SHIFT))
| #define DND_GET_OPERATIONS | ( | flags | ) |
((unsigned char) \ (((flags) & DND_OPERATIONS_MASK) >> DND_OPERATIONS_SHIFT))
| #define DND_GET_STATUS | ( | flags | ) |
((unsigned char) \ (((flags) & DND_STATUS_MASK) >> DND_STATUS_SHIFT))
| #define DND_INVALID_DROP_SITE 2 |
| #define DND_LINK (1L << 2) |
| #define DND_MOVE (1L << 0) |
| #define DND_NO_DROP_SITE 1 |
| #define DND_NOOP 0L |
| #define DND_OPERATION_CHANGED 8 |
| #define DND_OPERATION_MASK ((CARD16) 0x000F) |
| #define DND_OPERATION_SHIFT 0 |
| #define DND_OPERATIONS_MASK ((CARD16) 0x0F00) |
| #define DND_OPERATIONS_SHIFT 8 |
| #define DND_PROTOCOL_VERSION 0 |
| #define DND_SET_COMPLETION | ( | completion | ) |
(((CARD16)(completion) << DND_COMPLETION_SHIFT)\ & DND_COMPLETION_MASK)
| #define DND_SET_EVENT_TYPE | ( | event_type | ) | (((BYTE)(event_type) << DND_EVENT_TYPE_SHIFT) & DND_EVENT_TYPE_MASK) |
| #define DND_SET_OPERATION | ( | operation | ) |
(((CARD16)(operation) << DND_OPERATION_SHIFT)\ & DND_OPERATION_MASK)
| #define DND_SET_OPERATIONS | ( | operation | ) |
(((CARD16)(operation) << DND_OPERATIONS_SHIFT)\ & DND_OPERATIONS_MASK)
| #define DND_SET_STATUS | ( | status | ) |
(((CARD16)(status) << DND_STATUS_SHIFT)\ & DND_STATUS_MASK)
| #define DND_STATUS_MASK ((CARD16) 0x00F0) |
| #define DND_STATUS_SHIFT 4 |
| #define DND_TOP_LEVEL_ENTER 0 |
| #define DND_TOP_LEVEL_LEAVE 1 |
| #define DND_VALID_DROP_SITE 3 |
| #define DndIncludeVersion (DndVersion * 10 + DndRevision) |
| #define DndRevision 0 |
| #define DndVersion 1 |
| #define INT16 signed short |
| #define SWAP2BYTES | ( | s | ) |
| #define SWAP4BYTES | ( | l | ) |
{\
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;\
}
| typedef struct _DndMessage DndMessage |
| typedef struct _DndReceiverProp DndReceiverProp |
| typedef struct _DndSrcProp DndSrcProp |
| typedef struct DndTargetsTableRec * DndTargetsTable |
| typedef struct DndTargetsTableEntryRec * DndTargetsTableEntry |
| const char* qt_motifdnd_format | ( | int | n | ) |
| QByteArray qt_motifdnd_obtain_data | ( | const char * | mimeType | ) |
| void qt_x11_intern_atom | ( | const char * | , |
| Atom * | |||
| ) |
| void qt_x11_motifdnd_init | ( | ) |
| bool qt_xclb_read_property | ( | Display * | dpy, |
| Window | win, | ||
| Atom | property, | ||
| bool | deleteProperty, | ||
| QByteArray * | buffer, | ||
| int * | size, | ||
| Atom * | type, | ||
| int * | format, | ||
| bool | nullterm | ||
| ) |
| const char* qt_xdnd_atom_to_str | ( | Atom | ) |
| Atom* qt_xdnd_str_to_atom | ( | const char * | mimeType | ) |
| Atom atom_receiver_info |
| Atom atom_target_list |
| Atom Dnd_transfer_failure |
1.7.4