StateMachineWrapper

Trait StateMachineWrapper 

Source
pub trait StateMachineWrapper: Any {
    // Required methods
    fn process(
        &mut self,
        input: DispatchPair,
        index: u64,
        dpi: RelDim,
        area: PxRect,
        extent: PxRect,
        driver: &Weak<Driver>,
    ) -> InputResult<SmallVec<[DispatchPair; 1]>>;
    fn output_slot(&self, i: usize) -> Result<&Option<Slot>>;
    fn input_mask(&self) -> u64;
    fn changed(&self) -> bool;
    fn set_changed(&mut self, changed: bool);
}

Required Methods§

Source

fn process( &mut self, input: DispatchPair, index: u64, dpi: RelDim, area: PxRect, extent: PxRect, driver: &Weak<Driver>, ) -> InputResult<SmallVec<[DispatchPair; 1]>>

Source

fn output_slot(&self, i: usize) -> Result<&Option<Slot>>

Source

fn input_mask(&self) -> u64

Source

fn changed(&self) -> bool

Source

fn set_changed(&mut self, changed: bool)

Implementors§

Source§

impl<AppData: 'static + PartialEq> StateMachineWrapper for AppDataMachine<AppData>

Source§

impl<State: EventRouter + PartialEq + 'static, const OUTPUT_SIZE: usize> StateMachineWrapper for StateMachine<State, OUTPUT_SIZE>