Trait gtk::prelude::WidgetExtManual
source · pub trait WidgetExtManual: IsA<Widget> + Sealed + 'static {
// Provided 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 intersect(
&self,
area: &Rectangle,
intersection: Option<&mut Rectangle>
) -> bool { ... }
fn connect_map_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_unmap_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn add_tick_callback<P: Fn(&Self, &FrameClock) -> ControlFlow + '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) -> Propagation { ... }
}
Provided 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 intersect( &self, area: &Rectangle, intersection: Option<&mut Rectangle> ) -> bool
fn connect_map_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_unmap_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F ) -> SignalHandlerId
fn add_tick_callback<P: Fn(&Self, &FrameClock) -> ControlFlow + 'static>( &self, callback: P ) -> TickCallbackId
fn add_events(&self, events: EventMask)
fn events(&self) -> EventMask
fn set_events(&self, events: EventMask)
sourceunsafe fn destroy(&self)
unsafe fn destroy(&self)
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.