[−][src]Trait iced_audio::native::knob::Renderer
The renderer of a Knob
.
Your renderer will need to implement this trait before being
able to use a Knob
in your user interface.
Associated Types
Loading content...Required methods
fn diameter(&self, style_sheet: &Self::Style) -> u16
returns the diameter of the Knob
fn draw(
&mut self,
bounds: Rectangle,
cursor_position: Point,
normal: Normal,
is_dragging: bool,
style: &Self::Style
) -> Self::Output
&mut self,
bounds: Rectangle,
cursor_position: Point,
normal: Normal,
is_dragging: bool,
style: &Self::Style
) -> Self::Output
Implementations on Foreign Types
impl Renderer for Renderer
[src]
type Style = Box<dyn StyleSheet>
fn diameter(&self, style_sheet: &Self::Style) -> u16
[src]
fn draw(
&mut self,
bounds: Rectangle,
cursor_position: Point,
normal: Normal,
is_dragging: bool,
style_sheet: &Self::Style
) -> Self::Output
[src]
&mut self,
bounds: Rectangle,
cursor_position: Point,
normal: Normal,
is_dragging: bool,
style_sheet: &Self::Style
) -> Self::Output