[go: up one dir, main page]

DragExt

Trait DragExt 

Source
pub trait DragExt: IsA<Drag> + 'static {
Show 18 methods // Provided 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 { ... }
}

Provided 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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