Implement QRCode widget
This commit is contained in:
parent
209056e1cd
commit
3296be845c
11 changed files with 358 additions and 2 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
2
glow/src/widget/qr_code.rs
Normal file
2
glow/src/widget/qr_code.rs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
//! Encode and display information in a QR code.
|
||||
pub use iced_graphics::qr_code::*;
|
||||
Loading…
Add table
Add a link
Reference in a new issue