# Trait gdk::prelude::DragContextExt [−] [src]

    pub trait DragContextExt {
        fn get_actions(&self) -> DragAction;
        fn get_dest_window(&self) -> Window;
        fn get_device(&self) -> Device;
        fn get_drag_window(&self) -> Option<Window>;
        fn get_protocol(&self) -> DragProtocol;
        fn get_selected_action(&self) -> DragAction;
        fn get_source_window(&self) -> Window;
        fn get_suggested_action(&self) -> DragAction;
        fn list_targets(&self) -> Vec<Atom>;
        fn manage_dnd(&self, ipc_window: &Window, actions: DragAction) -> bool;
        fn set_device<P: IsA<Device>>(&self, device: &P);
        fn set_hotspot(&self, hot_x: i32, hot_y: i32);
        fn connect_action_changed<F: Fn(&Self, DragAction) + 'static>(
            &self,
            f: F
        ) -> u64;
        fn connect_cancel<F: Fn(&Self, DragCancelReason) + 'static>(
            &self,
            f: F
        ) -> u64;
        fn connect_dnd_finished<F: Fn(&Self) + 'static>(&self, f: F) -> u64;
        fn connect_drop_performed<F: Fn(&Self, i32) + 'static>(&self, f: F) -> u64;
    }

## Required Methods

### `fn get_actions(&self) -> DragAction`

### `fn get_dest_window(&self) -> Window`

### `fn get_device(&self) -> Device`

### `fn get_drag_window(&self) -> Option<Window>`

### `fn get_protocol(&self) -> DragProtocol`

### `fn get_selected_action(&self) -> DragAction`

### `fn get_source_window(&self) -> Window`

### `fn get_suggested_action(&self) -> DragAction`

### `fn list_targets(&self) -> Vec<Atom>`

### `fn manage_dnd(&self, ipc_window: &Window, actions: DragAction) -> bool`

### `fn set_device<P: IsA<Device>>(&self, device: &P)`

### `fn set_hotspot(&self, hot_x: i32, hot_y: i32)`

### `fn connect_action_changed<F: Fn(&Self, DragAction) + 'static>(
&self,
f: F
) -> u64`

### `fn connect_cancel<F: Fn(&Self, DragCancelReason) + 'static>(&self, f: F) -> u64`

### `fn connect_dnd_finished<F: Fn(&Self) + 'static>(&self, f: F) -> u64`

### `fn connect_drop_performed<F: Fn(&Self, i32) + 'static>(&self, f: F) -> u64`

## Implementors

- `impl<O: IsA<DragContext> + IsA<Object>> DragContextExt for O`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)