diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2020-11-17 22:02:35 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2020-11-17 22:02:35 +0000 |
| commit | 842e668b4204f549683025ef70ec24ccbc7e9fa0 (patch) | |
| tree | 80b2893162233b84c669cfde6e868245d2337502 | |
| parent | Add some metadata (diff) | |
| download | sl0ppij-842e668b4204f549683025ef70ec24ccbc7e9fa0.tar.gz sl0ppij-842e668b4204f549683025ef70ec24ccbc7e9fa0.tar.xz sl0ppij-842e668b4204f549683025ef70ec24ccbc7e9fa0.zip | |
Rename plugin -> tile
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,16 +4,16 @@ mod shim; pub use keys::*; pub use shim::*; -pub trait MosaicPlugin { +pub trait MosaicTile { fn init(&mut self); fn draw(&mut self, rows: usize, cols: usize); fn handle_key(&mut self, key: KeyEvent); } #[macro_export] -macro_rules! register_plugin { +macro_rules! register_tile { ($t:ty) => { - use mosaic_plugin::*; + use mosaic_tile::*; use std::cell::RefCell; thread_local! { |
