Add push_maybe to Column and Row
This commit is contained in:
parent
e57668d677
commit
feab96f323
9 changed files with 144 additions and 95 deletions
|
|
@ -387,6 +387,18 @@ where
|
|||
crate::Canvas::new(program)
|
||||
}
|
||||
|
||||
/// Creates a new [`QRCode`] widget from the given [`Data`].
|
||||
///
|
||||
/// [`Svg`]: crate::QRCode
|
||||
/// [`Data`]: crate::qr_code::Data
|
||||
#[cfg(feature = "qr_code")]
|
||||
pub fn qr_code<Theme>(data: &crate::qr_code::Data) -> crate::QRCode<'_, Theme>
|
||||
where
|
||||
Theme: crate::qr_code::StyleSheet,
|
||||
{
|
||||
crate::QRCode::new(data)
|
||||
}
|
||||
|
||||
/// Creates a new [`Shader`].
|
||||
///
|
||||
/// [`Shader`]: crate::Shader
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue