Skip to main content

DragStateStoreExt

Trait DragStateStoreExt 

Source
pub trait DragStateStoreExt<__Lens, T: 'static> {
    // Required methods
    fn payload(
        self,
    ) -> Store<Option<T>, MappedMutSignal<Option<T>, __Lens, fn(&DragState<T>) -> &Option<T>, fn(&mut DragState<T>) -> &mut Option<T>>>;
    fn source(
        self,
    ) -> Store<Option<ZoneId>, MappedMutSignal<Option<ZoneId>, __Lens, fn(&DragState<T>) -> &Option<ZoneId>, fn(&mut DragState<T>) -> &mut Option<ZoneId>>>;
    fn over(
        self,
    ) -> Store<Option<ZoneId>, MappedMutSignal<Option<ZoneId>, __Lens, fn(&DragState<T>) -> &Option<ZoneId>, fn(&mut DragState<T>) -> &mut Option<ZoneId>>>;
    fn pointer(
        self,
    ) -> Store<Point, MappedMutSignal<Point, __Lens, fn(&DragState<T>) -> &Point, fn(&mut DragState<T>) -> &mut Point>>;
    fn grab(
        self,
    ) -> Store<Point, MappedMutSignal<Point, __Lens, fn(&DragState<T>) -> &Point, fn(&mut DragState<T>) -> &mut Point>>;
    fn effect(
        self,
    ) -> Store<DropEffect, MappedMutSignal<DropEffect, __Lens, fn(&DragState<T>) -> &DropEffect, fn(&mut DragState<T>) -> &mut DropEffect>>;
    fn mode(
        self,
    ) -> Store<DragMode, MappedMutSignal<DragMode, __Lens, fn(&DragState<T>) -> &DragMode, fn(&mut DragState<T>) -> &mut DragMode>>;
    fn pointer_kind(
        self,
    ) -> Store<PointerKind, MappedMutSignal<PointerKind, __Lens, fn(&DragState<T>) -> &PointerKind, fn(&mut DragState<T>) -> &mut PointerKind>>;
    fn source_rect(
        self,
    ) -> Store<Option<Rect>, MappedMutSignal<Option<Rect>, __Lens, fn(&DragState<T>) -> &Option<Rect>, fn(&mut DragState<T>) -> &mut Option<Rect>>>;
    fn refocus(
        self,
    ) -> Store<Option<T>, MappedMutSignal<Option<T>, __Lens, fn(&DragState<T>) -> &Option<T>, fn(&mut DragState<T>) -> &mut Option<T>>>;
    fn settle(
        self,
    ) -> Store<Option<Rect>, MappedMutSignal<Option<Rect>, __Lens, fn(&DragState<T>) -> &Option<Rect>, fn(&mut DragState<T>) -> &mut Option<Rect>>>;
    fn transpose(self) -> DragStateStoreTransposed<__Lens, T>
       where Self: Copy;
}

Required Methods§

Source

fn payload( self, ) -> Store<Option<T>, MappedMutSignal<Option<T>, __Lens, fn(&DragState<T>) -> &Option<T>, fn(&mut DragState<T>) -> &mut Option<T>>>

Source

fn source( self, ) -> Store<Option<ZoneId>, MappedMutSignal<Option<ZoneId>, __Lens, fn(&DragState<T>) -> &Option<ZoneId>, fn(&mut DragState<T>) -> &mut Option<ZoneId>>>

Source

fn over( self, ) -> Store<Option<ZoneId>, MappedMutSignal<Option<ZoneId>, __Lens, fn(&DragState<T>) -> &Option<ZoneId>, fn(&mut DragState<T>) -> &mut Option<ZoneId>>>

Source

fn pointer( self, ) -> Store<Point, MappedMutSignal<Point, __Lens, fn(&DragState<T>) -> &Point, fn(&mut DragState<T>) -> &mut Point>>

Source

fn grab( self, ) -> Store<Point, MappedMutSignal<Point, __Lens, fn(&DragState<T>) -> &Point, fn(&mut DragState<T>) -> &mut Point>>

Source

fn effect( self, ) -> Store<DropEffect, MappedMutSignal<DropEffect, __Lens, fn(&DragState<T>) -> &DropEffect, fn(&mut DragState<T>) -> &mut DropEffect>>

Source

fn mode( self, ) -> Store<DragMode, MappedMutSignal<DragMode, __Lens, fn(&DragState<T>) -> &DragMode, fn(&mut DragState<T>) -> &mut DragMode>>

Source

fn pointer_kind( self, ) -> Store<PointerKind, MappedMutSignal<PointerKind, __Lens, fn(&DragState<T>) -> &PointerKind, fn(&mut DragState<T>) -> &mut PointerKind>>

Source

fn source_rect( self, ) -> Store<Option<Rect>, MappedMutSignal<Option<Rect>, __Lens, fn(&DragState<T>) -> &Option<Rect>, fn(&mut DragState<T>) -> &mut Option<Rect>>>

Source

fn refocus( self, ) -> Store<Option<T>, MappedMutSignal<Option<T>, __Lens, fn(&DragState<T>) -> &Option<T>, fn(&mut DragState<T>) -> &mut Option<T>>>

Source

fn settle( self, ) -> Store<Option<Rect>, MappedMutSignal<Option<Rect>, __Lens, fn(&DragState<T>) -> &Option<Rect>, fn(&mut DragState<T>) -> &mut Option<Rect>>>

Source

fn transpose(self) -> DragStateStoreTransposed<__Lens, T>
where Self: Copy,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<__Lens, T: 'static> DragStateStoreExt<__Lens, T> for Store<DragState<T>, __Lens>

Source§

fn payload( self, ) -> Store<Option<T>, MappedMutSignal<Option<T>, __Lens, fn(&DragState<T>) -> &Option<T>, fn(&mut DragState<T>) -> &mut Option<T>>>

Source§

fn source( self, ) -> Store<Option<ZoneId>, MappedMutSignal<Option<ZoneId>, __Lens, fn(&DragState<T>) -> &Option<ZoneId>, fn(&mut DragState<T>) -> &mut Option<ZoneId>>>

Source§

fn over( self, ) -> Store<Option<ZoneId>, MappedMutSignal<Option<ZoneId>, __Lens, fn(&DragState<T>) -> &Option<ZoneId>, fn(&mut DragState<T>) -> &mut Option<ZoneId>>>

Source§

fn pointer( self, ) -> Store<Point, MappedMutSignal<Point, __Lens, fn(&DragState<T>) -> &Point, fn(&mut DragState<T>) -> &mut Point>>

Source§

fn grab( self, ) -> Store<Point, MappedMutSignal<Point, __Lens, fn(&DragState<T>) -> &Point, fn(&mut DragState<T>) -> &mut Point>>

Source§

fn effect( self, ) -> Store<DropEffect, MappedMutSignal<DropEffect, __Lens, fn(&DragState<T>) -> &DropEffect, fn(&mut DragState<T>) -> &mut DropEffect>>

Source§

fn mode( self, ) -> Store<DragMode, MappedMutSignal<DragMode, __Lens, fn(&DragState<T>) -> &DragMode, fn(&mut DragState<T>) -> &mut DragMode>>

Source§

fn pointer_kind( self, ) -> Store<PointerKind, MappedMutSignal<PointerKind, __Lens, fn(&DragState<T>) -> &PointerKind, fn(&mut DragState<T>) -> &mut PointerKind>>

Source§

fn source_rect( self, ) -> Store<Option<Rect>, MappedMutSignal<Option<Rect>, __Lens, fn(&DragState<T>) -> &Option<Rect>, fn(&mut DragState<T>) -> &mut Option<Rect>>>

Source§

fn refocus( self, ) -> Store<Option<T>, MappedMutSignal<Option<T>, __Lens, fn(&DragState<T>) -> &Option<T>, fn(&mut DragState<T>) -> &mut Option<T>>>

Source§

fn settle( self, ) -> Store<Option<Rect>, MappedMutSignal<Option<Rect>, __Lens, fn(&DragState<T>) -> &Option<Rect>, fn(&mut DragState<T>) -> &mut Option<Rect>>>

Source§

fn transpose(self) -> DragStateStoreTransposed<__Lens, T>
where Self: Copy,

Implementors§