Implement overlay ordering for Image::float
This commit is contained in:
parent
7f1dcec391
commit
e64c58d032
8 changed files with 416 additions and 143 deletions
|
|
@ -1844,7 +1844,12 @@ where
|
|||
/// ```
|
||||
/// <img src="https://github.com/iced-rs/iced/blob/9712b319bb7a32848001b96bd84977430f14b623/examples/resources/ferris.png?raw=true" width="300">
|
||||
#[cfg(feature = "image")]
|
||||
pub fn image<Handle>(handle: impl Into<Handle>) -> crate::Image<Handle> {
|
||||
pub fn image<'a, Handle, Theme>(
|
||||
handle: impl Into<Handle>,
|
||||
) -> crate::Image<'a, Handle, Theme>
|
||||
where
|
||||
Theme: crate::image::Catalog,
|
||||
{
|
||||
crate::Image::new(handle.into())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue