ux-primitives 0.2.2

Graphics Primitives for Angular Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// The Pauseable should be implemented by objects intended to be temporarily disabled 
/// from the broad phase update traversal.
///
pub trait Pauseable {
    /// Determines if the object is updating or not.
    fn is_active(&self) -> bool;

    /// Set active state
    fn set_active(&self, val: bool);

    /// Sets active to false.
    fn pause(&self);

    /// Sets active to true.
    fn resume(&self);
}