[][src]Trait iced_audio::native::ramp::Renderer

pub trait Renderer: Renderer {
    type Style: Default;
    fn draw(
        &mut self,
        bounds: Rectangle,
        cursor_position: Point,
        normal: Normal,
        is_dragging: bool,
        style: &Self::Style,
        direction: RampDirection
    ) -> Self::Output; }

The renderer of a Ramp.

Your renderer will need to implement this trait before being able to use a Ramp in your user interface.

Associated Types

type Style: Default

The style supported by this renderer.

Loading content...

Required methods

fn draw(
    &mut self,
    bounds: Rectangle,
    cursor_position: Point,
    normal: Normal,
    is_dragging: bool,
    style: &Self::Style,
    direction: RampDirection
) -> Self::Output

Draws a Ramp.

It receives:

  • the bounds of the Ramp
  • the current cursor position
  • the current normal of the Ramp
  • whether the ramp is currently being dragged
  • the style of the Ramp
  • the direction of the ramp line of the Ramp
Loading content...

Implementations on Foreign Types

impl Renderer for Renderer[src]

type Style = Box<dyn StyleSheet>

Loading content...

Implementors

Loading content...