diff options
author | natrixaeria <janng@gmx.de> | 2019-06-02 14:58:22 +0200 |
---|---|---|
committer | natrixaeria <janng@gmx.de> | 2019-06-02 14:58:22 +0200 |
commit | 8bc245b8ca099a4c929562677d83aa11122dffd0 (patch) | |
tree | 6bdac4b53b7b9d3ec625f235b0fa79f68a9fabe6 /WebInterface/wasm/webhogg/src/app.rs | |
parent | ee573fd1a02d290ec2aa9201d923805b6d998b14 (diff) |
Draw on canvas
Diffstat (limited to 'WebInterface/wasm/webhogg/src/app.rs')
-rw-r--r-- | WebInterface/wasm/webhogg/src/app.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/WebInterface/wasm/webhogg/src/app.rs b/WebInterface/wasm/webhogg/src/app.rs deleted file mode 100644 index 7931418..0000000 --- a/WebInterface/wasm/webhogg/src/app.rs +++ /dev/null @@ -1,22 +0,0 @@ -use crate::webhogg_exception::WebhoggException; -use crate::page::Page; -use crate::canvas::Canvas; - -pub(crate) struct WebhoggApplication { - page: Page, - canvas: Canvas, -} - -impl WebhoggApplication { - pub fn new() -> Result<Self, WebhoggException> { - let page = Page::obtain()?; - let canvas = Canvas::from_existing("canvas", &page)?; - Ok(Self { - page, canvas, - }) - } - - pub fn run(self) -> Result<(), WebhoggException> { - Ok(()) - } -} |