[][src]Trait iced_native::widget::rule::Renderer

pub trait Renderer: Renderer {
    type Style: Default;
    fn draw(
        &mut self,
        bounds: Rectangle,
        style: &Self::Style,
        is_horizontal: bool
    ) -> Self::Output; }

The renderer of a Rule.

Associated Types

type Style: Default

The style supported by this renderer.

Loading content...

Required methods

fn draw(
    &mut self,
    bounds: Rectangle,
    style: &Self::Style,
    is_horizontal: bool
) -> Self::Output

Draws a Rule.

It receives:

  • the bounds of the Rule
  • the style of the Rule
  • whether the Rule is horizontal (true) or vertical (false)
Loading content...

Implementors

Loading content...