iced-yoda/graphics/src/widget/container.rs

20 lines
512 B
Rust
Raw Normal View History

2020-05-19 17:15:44 +02:00
//! Decorate content and apply alignment.
2020-05-19 21:00:40 +02:00
use crate::container;
use crate::{Backend, Renderer};
2020-05-19 17:15:44 +02:00
pub use iced_style::container::{Style, StyleSheet};
/// An element decorating some content.
///
/// This is an alias of an `iced_native` container with a default
/// `Renderer`.
pub type Container<'a, Message, Backend> =
iced_native::Container<'a, Message, Renderer<Backend>>;
2020-05-19 21:00:40 +02:00
impl<B> iced_native::container::Renderer for Renderer<B>
where
B: Backend,
{
type Style = Box<dyn container::StyleSheet>;
}