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

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

The renderer of a VSlider.

Your renderer will need to implement this trait before being able to use a VSlider 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,
    tick_marks: Option<&TickMarkGroup>,
    style: &Self::Style
) -> Self::Output

Draws a VSlider.

It receives:

  • the bounds of the VSlider
  • the current cursor position
  • the current normal of the VSlider
  • the local state of the VSlider
  • the style of the VSlider
Loading content...

Implementations on Foreign Types

impl Renderer for Renderer[src]

type Style = Box<dyn StyleSheet>

Loading content...

Implementors

Loading content...