Skip to main content

TimerEvents

Trait TimerEvents 

Source
pub trait TimerEvents {
    // Provided methods
    fn on_start(&mut self) -> EventProcessStatus { ... }
    fn on_resume(&mut self, _ticks: u64) -> EventProcessStatus { ... }
    fn on_pause(&mut self, _ticks: u64) -> EventProcessStatus { ... }
    fn on_update(&mut self, _ticks: u64) -> EventProcessStatus { ... }
}

Provided Methods§

Source

fn on_start(&mut self) -> EventProcessStatus

Source

fn on_resume(&mut self, _ticks: u64) -> EventProcessStatus

Source

fn on_pause(&mut self, _ticks: u64) -> EventProcessStatus

Source

fn on_update(&mut self, _ticks: u64) -> EventProcessStatus

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl TimerEvents for Accordion

Source§

impl TimerEvents for Button

Source§

impl TimerEvents for Canvas

Source§

impl TimerEvents for CharPicker

Source§

impl TimerEvents for CheckBox

Source§

impl TimerEvents for ColorPicker

Source§

impl TimerEvents for ComboBox

Source§

impl TimerEvents for DatePicker

Source§

impl TimerEvents for Desktop

Source§

impl TimerEvents for HLine

Source§

impl TimerEvents for HSplitter

Source§

impl TimerEvents for ImageViewer

Source§

impl TimerEvents for KeySelector

Source§

impl TimerEvents for Label

Source§

impl TimerEvents for ListBox

Source§

impl TimerEvents for Markdown

Source§

impl TimerEvents for Panel

Source§

impl TimerEvents for Password

Source§

impl TimerEvents for PathFinder

Source§

impl TimerEvents for ProgressBar

Source§

impl TimerEvents for RadioBox

Source§

impl TimerEvents for RichTextField

Source§

impl TimerEvents for Tab

Source§

impl TimerEvents for TextArea

Source§

impl TimerEvents for TextField

Source§

impl TimerEvents for ThreeStateBox

Source§

impl TimerEvents for TimePicker

Source§

impl TimerEvents for ToggleButton

Source§

impl TimerEvents for VLine

Source§

impl TimerEvents for VSplitter

Source§

impl TimerEvents for Window

Source§

impl<T> TimerEvents for DropDownList<T>
where T: DropDownListType + 'static,

Source§

impl<T> TimerEvents for GraphView<T>
where T: GraphNode + 'static,

Source§

impl<T> TimerEvents for ListView<T>
where T: ListItem + 'static,

Source§

impl<T> TimerEvents for ModalWindow<T>

Source§

impl<T> TimerEvents for NumericSelector<T>
where T: Number + 'static,

Source§

impl<T> TimerEvents for Selector<T>
where T: EnumSelector + Copy + Eq + 'static,

Source§

impl<T> TimerEvents for TreeView<T>
where T: ListItem + 'static,