mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-26 11:18:12 +08:00
Rework the ToolState and integrate it into the Editor struct (#48)
* Rework the ToolState and integrate it into the Editor struct * Add asset manager sources to docs outline
This commit is contained in:
+10
-1
@@ -15,6 +15,15 @@ use workspace::Workspace;
|
||||
|
||||
// TODO: serialize with serde to save the current editor state
|
||||
pub struct Editor {
|
||||
tools: ToolState,
|
||||
pub tools: ToolState,
|
||||
workspace: Workspace,
|
||||
}
|
||||
|
||||
impl Editor {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
tools: ToolState::new(),
|
||||
workspace: Workspace::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user