iced_graphics 0.3.1

A bunch of backend-agnostic types that can be leveraged to build a renderer for Iced
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Handle events of a canvas.
use iced_native::keyboard;
use iced_native::mouse;

pub use iced_native::event::Status;

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

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