[]Struct gdk::DragContext

pub struct DragContext(_, _);

Methods

impl DragContext[src]

pub fn get_actions(&self) -> DragAction[src]

pub fn get_dest_window(&self) -> Window[src]

pub fn get_device(&self) -> Device[src]

pub fn get_drag_window(&self) -> Option<Window>[src]

pub fn get_protocol(&self) -> DragProtocol[src]

pub fn get_selected_action(&self) -> DragAction[src]

pub fn get_source_window(&self) -> Window[src]

pub fn get_suggested_action(&self) -> DragAction[src]

pub fn list_targets(&self) -> Vec<Atom>[src]

pub fn manage_dnd<P: IsA<Window>>(
    &self,
    ipc_window: &P,
    actions: DragAction
) -> bool
[src]

pub fn set_device(&self, device: &Device)[src]

pub fn set_hotspot(&self, hot_x: i32, hot_y: i32)[src]

pub fn connect_action_changed<F: Fn(&DragContext, DragAction) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_cancel<F: Fn(&DragContext, DragCancelReason) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_dnd_finished<F: Fn(&DragContext) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_drop_performed<F: Fn(&DragContext, i32) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

impl DragContext[src]

pub fn drag_get_selection(&self) -> Atom[src]

pub fn drag_abort(&self, time_: u32)[src]

pub fn drop_reply(&self, accepted: bool, time_: u32)[src]

pub fn drop(&self, time_: u32)[src]

pub fn drag_find_window_for_screen(
    &self,
    drag_window: &Window,
    screen: &Screen,
    x_root: i32,
    y_root: i32
) -> (Option<Window>, DragProtocol)
[src]

pub fn drag_motion(
    &self,
    dest_window: &Window,
    protocol: DragProtocol,
    x_root: i32,
    y_root: i32,
    suggested_action: DragAction,
    possible_actions: DragAction,
    time_: u32
) -> bool
[src]

pub fn drop_finish(&self, success: bool, time_: u32)[src]

pub fn drag_status(&self, action: DragAction, time_: u32)[src]

pub fn drag_drop_succeeded(&self) -> bool[src]

pub fn drag_begin(window: &Window, targets: &[&Atom]) -> Option<DragContext>[src]

pub fn drag_begin_for_device<P: IsA<Device>>(
    window: &Window,
    device: &P,
    targets: &[&Atom]
) -> Option<DragContext>
[src]

pub fn drag_begin_from_point<P: IsA<Device>>(
    window: &Window,
    device: &P,
    targets: &[&Atom],
    x_root: i32,
    y_root: i32
) -> Option<DragContext>
[src]

pub fn drag_drop_done(&self, success: bool)[src]

Trait Implementations

impl Clone for DragContext

impl Eq for DragContext

impl Ord for DragContext

impl<T: ObjectType> PartialEq<T> for DragContext

impl<T: ObjectType> PartialOrd<T> for DragContext

impl Display for DragContext[src]

impl Debug for DragContext

impl Hash for DragContext

impl StaticType for DragContext

Auto Trait Implementations

impl !Send for DragContext

impl !Sync for DragContext

impl Unpin for DragContext

impl UnwindSafe for DragContext

impl RefUnwindSafe for DragContext

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]