2020-08-13 12:54:34 -05:00
|
|
|
//! Display a horizontal or vertical rule for dividing content.
|
|
|
|
|
|
2021-10-14 16:07:22 +07:00
|
|
|
use crate::{Backend, Renderer};
|
2020-08-13 12:54:34 -05:00
|
|
|
use iced_native::rule;
|
|
|
|
|
|
2020-08-16 10:10:32 -05:00
|
|
|
pub use iced_style::rule::{FillMode, Style, StyleSheet};
|
2020-08-13 12:54:34 -05:00
|
|
|
|
|
|
|
|
/// Display a horizontal or vertical rule for dividing content.
|
|
|
|
|
///
|
|
|
|
|
/// This is an alias of an `iced_native` rule with an `iced_graphics::Renderer`.
|
|
|
|
|
pub type Rule<Backend> = iced_native::Rule<Renderer<Backend>>;
|
|
|
|
|
|
|
|
|
|
impl<B> rule::Renderer for Renderer<B>
|
|
|
|
|
where
|
|
|
|
|
B: Backend,
|
|
|
|
|
{
|
|
|
|
|
type Style = Box<dyn StyleSheet>;
|
|
|
|
|
}
|