Implement Widget::draw for Rule
This commit is contained in:
parent
d127dbd08e
commit
f625797392
5 changed files with 66 additions and 57 deletions
|
|
@ -1,18 +1,3 @@
|
|||
//! Display a horizontal or vertical rule for dividing content.
|
||||
|
||||
use crate::{Backend, Renderer};
|
||||
use iced_native::rule;
|
||||
|
||||
pub use iced_style::rule::{FillMode, Style, StyleSheet};
|
||||
|
||||
/// 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>;
|
||||
}
|
||||
pub use iced_native::rule::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue