pub trait Drawable: Sized {
fn affordance(&mut self) -> Affordance;
fn get_font(&self) -> Font;
fn bounds(&self) -> Rect<i32, ZelSpace>;
fn raw_view(&self, zp: Zel) -> ZelData;
fn raw_touch(
&mut self,
zp: Zel,
format: bool,
modify: impl FnOnce(&mut ZelData)
);
fn draw(&mut self) -> Brush<'_, Self> { ... }
fn view(&self, xy: impl ToZel) -> ZelData { ... }
fn view_i(&self, xy: (i32, i32)) -> ZelData { ... }
fn touch(
&mut self,
xy: impl ToZel,
format: bool,
modify: impl FnOnce(&mut ZelData)
) { ... }
fn touch_i(
&mut self,
xy: (i32, i32),
format: bool,
modify: impl FnOnce(&mut ZelData)
) { ... }
fn at(&mut self, xy: impl ToZel) -> At<'_, Self> { ... }
fn at_i(&mut self, xy: (i32, i32)) -> At<'_, Self> { ... }
}Required Methods
source