Add Active Tool Router (#58)

* Add Active Tool Router

* Remove commented out import
This commit is contained in:
ProTheory8
2021-04-01 21:10:28 +05:00
committed by Keavon Chambers
parent 6050038047
commit 4992bdee0e
18 changed files with 278 additions and 30 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
mod color;
mod dispatcher;
mod error;
#[macro_use]
mod macros;
pub mod tools;
pub mod workspace;
@@ -22,7 +24,7 @@ use tools::ToolState;
use workspace::Workspace;
pub struct EditorState {
tools: ToolState,
tool_state: ToolState,
workspace: Workspace,
document: Document,
}
@@ -37,7 +39,7 @@ impl Editor {
pub fn new(callback: Callback) -> Self {
Self {
state: EditorState {
tools: ToolState::new(),
tool_state: ToolState::new(),
workspace: Workspace::new(),
document: Document::default(),
},