summaryrefslogblamecommitdiffstats
path: root/graphics/src/widget/canvas/event.rs
blob: ede2fd7342acf5cf8b798846553329d18c04ddd2 (plain) (tree)
1
2
3
4
5
6
7
8
9
                              
                          
                       
 

                                   


                                 

                                        
                      
                        


                              
 
//! Handle events of a canvas.
use iced_native::keyboard;
use iced_native::mouse;

pub use iced_native::event::Status;

/// A [`Canvas`] event.
///
/// [`Canvas`]: struct.Event.html
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum Event {
    /// A mouse event.
    Mouse(mouse::Event),

    /// A keyboard event.
    Keyboard(keyboard::Event),
}