Add canvas feature to iced_wgpu
And prepare `canvas` module
This commit is contained in:
parent
3a00f3398c
commit
8daf798e57
4 changed files with 27 additions and 3 deletions
|
|
@ -19,7 +19,7 @@
|
|||
//! [`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
||||
//! [WebGPU API]: https://gpuweb.github.io/gpuweb/
|
||||
//! [`wgpu_glyph`]: https://github.com/hecrj/wgpu_glyph
|
||||
#![deny(missing_docs)]
|
||||
//#![deny(missing_docs)]
|
||||
#![deny(missing_debug_implementations)]
|
||||
#![deny(unused_results)]
|
||||
#![forbid(unsafe_code)]
|
||||
|
|
|
|||
|
|
@ -32,3 +32,10 @@ pub use scrollable::Scrollable;
|
|||
pub use slider::Slider;
|
||||
#[doc(no_inline)]
|
||||
pub use text_input::TextInput;
|
||||
|
||||
#[cfg(feature = "canvas")]
|
||||
pub mod canvas;
|
||||
|
||||
#[cfg(feature = "canvas")]
|
||||
#[doc(no_inline)]
|
||||
pub use canvas::Canvas;
|
||||
|
|
|
|||
5
wgpu/src/widget/canvas.rs
Normal file
5
wgpu/src/widget/canvas.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
//! Draw freely in 2D.
|
||||
|
||||
/// A 2D drawable region.
|
||||
#[derive(Debug)]
|
||||
pub struct Canvas;
|
||||
Loading…
Add table
Add a link
Reference in a new issue