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

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[src]

The style supported by this renderer.

Loading content...

Required methods

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

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...