1 2 3 4 5 6 7 8
use crate::carea::CArea; pub trait CButton { fn clicked(&self) {} fn released(&self) {} fn held(&self) {} fn hitbox(&self) -> &CArea; }