Implement QRCode widget

This commit is contained in:
Héctor Ramón Jiménez 2020-11-20 10:13:58 +01:00
parent 209056e1cd
commit 3296be845c
11 changed files with 358 additions and 2 deletions

View file

@ -9,6 +9,7 @@ repository = "https://github.com/hecrj/iced"
[features]
canvas = ["iced_graphics/canvas"]
qr_code = ["iced_graphics/qr_code"]
default_system_font = ["iced_graphics/font-source"]
# Not supported yet!
image = []

View file

@ -52,6 +52,14 @@ pub mod canvas;
#[doc(no_inline)]
pub use canvas::Canvas;
#[cfg(feature = "qr_code")]
#[cfg_attr(docsrs, doc(cfg(feature = "qr_code")))]
pub mod qr_code;
#[cfg(feature = "qr_code")]
#[doc(no_inline)]
pub use qr_code::QRCode;
pub use iced_native::{Image, Space};
/// A container that distributes its contents vertically.

View file

@ -0,0 +1,2 @@
//! Encode and display information in a QR code.
pub use iced_graphics::qr_code::*;