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

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

The renderer of an XYPad.

Your renderer will need to implement this trait before being able to use an XYPad 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_x: Normal,
    normal_y: Normal,
    is_dragging: bool,
    style: &Self::Style
) -> Self::Output

Draws an XYPad.

It receives:

  • the bounds of the XYPad
  • the current cursor position
  • the current normal of the x coordinate of the XYPad
  • the current normal of the y coordinate of the XYPad
  • the local state of the XYPad
  • the style of the XYPad
Loading content...

Implementations on Foreign Types

impl Renderer for Renderer[src]

type Style = Box<dyn StyleSheet>

Loading content...

Implementors

Loading content...