pub trait WidgetExtManual: 'static {
    // 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 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§

source

fn drag_dest_set( &self, flags: DestDefaults, targets: &[TargetEntry], actions: DragAction )

source

fn drag_source_set( &self, start_button_mask: ModifierType, targets: &[TargetEntry], actions: DragAction )

source

fn intersect( &self, area: &Rectangle, intersection: Option<&mut Rectangle> ) -> bool

source

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

source

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

source

fn add_tick_callback<P: Fn(&Self, &FrameClock) -> Continue + 'static>( &self, callback: P ) -> TickCallbackId

source

fn add_events(&self, events: EventMask)

source

fn events(&self) -> EventMask

source

fn set_events(&self, events: EventMask)

source

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.

source

fn hide_on_delete(&self) -> Inhibit

Implementors§