kaffee 0.2.0

Small 2D framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! This module contains event-related types.

use crate::gfx::RenderContext;

/// This type allows interactions with the event loop.
pub trait EventHandler {
    fn init(&mut self, r: &mut RenderContext);

    fn update(&mut self, dt: f32);

    fn redraw(&mut self, r: &mut RenderContext);
}