canvas_traits/lib.rs
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5#![crate_name = "canvas_traits"]
6#![crate_type = "rlib"]
7#![deny(unsafe_code)]
8
9use crossbeam_channel::Sender;
10use euclid::default::Size2D;
11
12use crate::canvas::CanvasId;
13
14pub mod canvas;
15#[macro_use]
16pub mod webgl;
17
18pub enum ConstellationCanvasMsg {
19 Create {
20 sender: Sender<Option<CanvasId>>,
21 size: Size2D<u64>,
22 },
23 Exit(Sender<()>),
24}