Trait gtk::prelude::WidgetExtManual [−][src]
pub trait WidgetExtManual: 'static {
fn drag_dest_set(
&self,
flags: DestDefaults,
targets: &[TargetEntry],
actions: DragAction
);
fn drag_source_set(
&self,
start_button_mask: ModifierType,
targets: &[TargetEntry],
actions: DragAction
);
fn intersect(
&self,
area: &Rectangle,
intersection: Option<&mut Rectangle>
) -> bool;
fn connect_map_event<F: Fn(&Self, &Event) -> Inhibit + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_unmap_event<F: Fn(&Self, &Event) -> Inhibit + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn add_tick_callback<P: Fn(&Self, &FrameClock) -> Continue + 'static>(
&self,
callback: P
) -> TickCallbackId;
fn add_events(&self, events: EventMask);
fn events(&self) -> EventMask;
fn set_events(&self, events: EventMask);
unsafe fn destroy(&self);
fn hide_on_delete(&self) -> Inhibit;
}
Required methods
fn drag_dest_set(
&self,
flags: DestDefaults,
targets: &[TargetEntry],
actions: DragAction
)
fn drag_source_set(
&self,
start_button_mask: ModifierType,
targets: &[TargetEntry],
actions: DragAction
)
fn connect_map_event<F: Fn(&Self, &Event) -> Inhibit + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_unmap_event<F: Fn(&Self, &Event) -> Inhibit + 'static>(
&self,
f: F
) -> SignalHandlerId
fn add_tick_callback<P: Fn(&Self, &FrameClock) -> Continue + 'static>(
&self,
callback: P
) -> TickCallbackId
fn add_events(&self, events: EventMask)
fn set_events(&self, events: EventMask)
Calls gtk_widget_destroy()
on this widget.
Safety
This will not necessarily entirely remove the widget from existence but you must NOT query the widget’s state subsequently. Do not call this yourself unless you really mean to.