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

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

The renderer of an ModRangeInput.

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

Associated Types

type Style: Default[src]

The style supported by this renderer.

Loading content...

Required methods

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

Draws an ModRangeInput.

It receives:

  • the bounds of the ModRangeInput
  • the current cursor position
  • whether the ModRangeInput is currently being dragged
  • the style of the ModRangeInput
Loading content...

Implementations on Foreign Types

impl<B: Backend> Renderer for Renderer<B>[src]

type Style = Box<dyn StyleSheet>

fn draw(
    &mut self,
    bounds: Rectangle,
    cursor_position: Point,
    is_dragging: bool,
    style_sheet: &Self::Style
) -> Self::Output
[src]

Loading content...

Implementors

Loading content...