pub trait DragContextExtManual: 'static {
// Required methods
fn drag_finish(&self, success: bool, del: bool, time_: u32);
fn drag_cancel(&self);
fn drag_get_source_widget(&self) -> Option<Widget>;
fn drag_set_icon_default(&self);
fn drag_set_icon_gicon<P: IsA<Icon>>(
&self,
icon: &P,
hot_x: i32,
hot_y: i32,
);
fn drag_set_icon_name(&self, icon_name: &str, hot_x: i32, hot_y: i32);
fn drag_set_icon_pixbuf(&self, pixbuf: &Pixbuf, hot_x: i32, hot_y: i32);
fn drag_set_icon_stock(&self, stock_id: &str, hot_x: i32, hot_y: i32);
fn drag_set_icon_surface(&self, surface: &Surface);
fn drag_set_icon_widget<P: IsA<Widget>>(
&self,
widget: &P,
hot_x: i32,
hot_y: i32,
);
}
Required Methods§
fn drag_finish(&self, success: bool, del: bool, time_: u32)
fn drag_cancel(&self)
fn drag_get_source_widget(&self) -> Option<Widget>
fn drag_set_icon_default(&self)
fn drag_set_icon_gicon<P: IsA<Icon>>(&self, icon: &P, hot_x: i32, hot_y: i32)
fn drag_set_icon_name(&self, icon_name: &str, hot_x: i32, hot_y: i32)
fn drag_set_icon_pixbuf(&self, pixbuf: &Pixbuf, hot_x: i32, hot_y: i32)
fn drag_set_icon_stock(&self, stock_id: &str, hot_x: i32, hot_y: i32)
fn drag_set_icon_surface(&self, surface: &Surface)
fn drag_set_icon_widget<P: IsA<Widget>>( &self, widget: &P, hot_x: i32, hot_y: i32, )
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.