Trait iced_audio::native::ramp::Renderer [−][src]
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
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
[src]
&mut self,
bounds: Rectangle,
cursor_position: Point,
normal: Normal,
is_dragging: bool,
style: &Self::Style,
direction: RampDirection
) -> Self::Output
Implementations on Foreign Types
impl<B: Backend> Renderer for Renderer<B>
[src]
impl<B: Backend> Renderer for Renderer<B>
[src]type Style = Box<dyn StyleSheet>
fn draw(
&mut self,
bounds: Rectangle,
cursor_position: Point,
normal: Normal,
is_dragging: bool,
style_sheet: &Self::Style,
direction: RampDirection
) -> Self::Output
[src]
&mut self,
bounds: Rectangle,
cursor_position: Point,
normal: Normal,
is_dragging: bool,
style_sheet: &Self::Style,
direction: RampDirection
) -> Self::Output