Trait gdk4::prelude::DragExt

source ·
pub trait DragExt: 'static {
Show 18 methods // Required methods fn drop_done(&self, success: bool); fn actions(&self) -> DragAction; fn content(&self) -> ContentProvider; fn device(&self) -> Device; fn display(&self) -> Display; fn drag_surface(&self) -> Option<Surface>; fn formats(&self) -> ContentFormats; fn selected_action(&self) -> DragAction; fn surface(&self) -> Surface; fn set_hotspot(&self, hot_x: i32, hot_y: i32); fn set_actions(&self, actions: DragAction); fn set_selected_action(&self, selected_action: DragAction); fn connect_cancel<F: Fn(&Self, DragCancelReason) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_dnd_finished<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_drop_performed<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_actions_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_display_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_selected_action_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId;
}

Required Methods§

source

fn drop_done(&self, success: bool)

source

fn actions(&self) -> DragAction

source

fn content(&self) -> ContentProvider

source

fn device(&self) -> Device

source

fn display(&self) -> Display

source

fn drag_surface(&self) -> Option<Surface>

source

fn formats(&self) -> ContentFormats

source

fn selected_action(&self) -> DragAction

source

fn surface(&self) -> Surface

source

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

source

fn set_actions(&self, actions: DragAction)

source

fn set_selected_action(&self, selected_action: DragAction)

source

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

source

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

source

fn connect_drop_performed<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_actions_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_display_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_selected_action_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId

Implementors§

source§

impl<O: IsA<Drag>> DragExt for O