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
Loading content...Required methods
fn draw(
&mut self,
bounds: Rectangle,
cursor_position: Point,
is_dragging: bool,
style: &Self::Style
) -> Self::Output
[src]
&mut self,
bounds: Rectangle,
cursor_position: Point,
is_dragging: bool,
style: &Self::Style
) -> Self::Output
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