Trait WidgetExtManual

Source
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 override_font(&self, font: &FontDescription);
    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 get_events(&self) -> EventMask;
    fn set_events(&self, events: EventMask);
}

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 override_font(&self, font: &FontDescription)

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 get_events(&self) -> EventMask

Source

fn set_events(&self, events: EventMask)

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§