Changeset View
Changeset View
Standalone View
Standalone View
extern/xdnd/xdnd.h
| Context not available. | |||||
| int (*widget_delete_selection) (DndClass * dnd, Window window, Window from); | int (*widget_delete_selection) (DndClass * dnd, Window window, Window from); | ||||
| /* returns 1 if widget exists, zero otherwise. If this method is not | /* returns 1 if widget exists, zero otherwise. If this method is not | ||||
| set then the code assumes that no widgets have support for recieving drops. | set then the code assumes that no widgets have support for recieving drops. | ||||
| In this case none of the widget methods need be set. */ | In this case none of the widget methods need be set. */ | ||||
| int (*widget_exists) (DndClass * dnd, Window window); | int (*widget_exists) (DndClass * dnd, Window window); | ||||
| /* must update the widgets border to its default appearance */ | /* must update the widgets border to its default appearance */ | ||||
| void (*widget_apply_leave) (DndClass * dnd, Window widgets_window); | void (*widget_apply_leave) (DndClass * dnd, Window widgets_window); | ||||
| /* must update the widgets border to give the appearance of being able to recieve a drop, | /* must update the widgets border to give the appearance of being able to receive a drop, | ||||
| plus return all data to pointers. As per the protocol, if the widget cannot | plus return all data to pointers. As per the protocol, if the widget cannot | ||||
| perform the action specified by `action' then it should return either XdndActionPrivate | perform the action specified by `action' then it should return either XdndActionPrivate | ||||
| or XdndActionCopy into supported_action (leaving 0 supported_action unchanged is equivalent | or XdndActionCopy into supported_action (leaving 0 supported_action unchanged is equivalent | ||||
| to XdndActionCopy). Returns 1 if ready to ok drop */ | to XdndActionCopy). Returns 1 if ready to ok drop */ | ||||
| int (*widget_apply_position) (DndClass * dnd, Window widgets_window, Window from, | int (*widget_apply_position) (DndClass * dnd, Window widgets_window, Window from, | ||||
| Atom action, int x, int y, Time t, Atom * typelist, | Atom action, int x, int y, Time t, Atom * typelist, | ||||
| int *want_position, Atom * supported_action, Atom * desired_type, | int *want_position, Atom * supported_action, Atom * desired_type, | ||||
| XRectangle * rectangle); | XRectangle * rectangle); | ||||
| /* returns drag data of the specified type. This will be one of `typelist' given to xdnd_drag */ | /* returns drag data of the specified type. This will be one of `typelist' given to xdnd_drag */ | ||||
| void (*widget_get_data) (DndClass * dnd, Window window, unsigned char **data, int *length, Atom type); | void (*widget_get_data) (DndClass * dnd, Window window, unsigned char **data, int *length, Atom type); | ||||
| /* this is called from with the main event loop if an expose event is recieved and is optional */ | /* this is called from with the main event loop if an expose event is received and is optional */ | ||||
| void (*handle_expose_events) (DndClass * dnd, XEvent * xevent); | void (*handle_expose_events) (DndClass * dnd, XEvent * xevent); | ||||
| /* creates a chooser dialog if the action is XdndActionAsk. Returns non-zero on cancel */ | /* creates a chooser dialog if the action is XdndActionAsk. Returns non-zero on cancel */ | ||||
| int (*action_choose_dialog) (DndClass * dnd, char **descriptions, Atom * actions, Atom * result); | int (*action_choose_dialog) (DndClass * dnd, char **descriptions, Atom * actions, Atom * result); | ||||
| #if 0 /* implemented internally */ | #if 0 /* implemented internally */ | ||||
| /* returns a widget that is dnd aware within a parent widget that lies under the point x, y */ | /* returns a widget that is dnd aware within a parent widget that lies under the point x, y */ | ||||
| Window (*widget_get_child_widget) (DndClass * dnd, Window parent, int x, int y); | Window (*widget_get_child_widget) (DndClass * dnd, Window parent, int x, int y); | ||||
| #endif | #endif | ||||
| Context not available. | |||||