Trait iced_audio::native::v_slider::Renderer [−][src]
pub trait Renderer: Renderer { type Style: Default; fn draw(
&mut self,
bounds: Rectangle,
cursor_position: Point,
normal: Normal,
is_dragging: bool,
mod_range_1: Option<&ModulationRange>,
mod_range_2: Option<&ModulationRange>,
tick_marks: Option<&Group>,
text_marks: Option<&Group>,
style: &Self::Style,
tick_marks_cache: &PrimitiveCache,
text_marks_cache: &PrimitiveCache
) -> 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
Loading content...Required methods
fn draw(
&mut self,
bounds: Rectangle,
cursor_position: Point,
normal: Normal,
is_dragging: bool,
mod_range_1: Option<&ModulationRange>,
mod_range_2: Option<&ModulationRange>,
tick_marks: Option<&Group>,
text_marks: Option<&Group>,
style: &Self::Style,
tick_marks_cache: &PrimitiveCache,
text_marks_cache: &PrimitiveCache
) -> Self::Output
[src]
&mut self,
bounds: Rectangle,
cursor_position: Point,
normal: Normal,
is_dragging: bool,
mod_range_1: Option<&ModulationRange>,
mod_range_2: Option<&ModulationRange>,
tick_marks: Option<&Group>,
text_marks: Option<&Group>,
style: &Self::Style,
tick_marks_cache: &PrimitiveCache,
text_marks_cache: &PrimitiveCache
) -> 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,
mod_range_1: Option<&ModulationRange>,
mod_range_2: Option<&ModulationRange>,
tick_marks: Option<&Group>,
text_marks: Option<&Group>,
style_sheet: &Self::Style,
tick_marks_cache: &PrimitiveCache,
text_marks_cache: &PrimitiveCache
) -> Self::Output
[src]
&mut self,
bounds: Rectangle,
cursor_position: Point,
normal: Normal,
is_dragging: bool,
mod_range_1: Option<&ModulationRange>,
mod_range_2: Option<&ModulationRange>,
tick_marks: Option<&Group>,
text_marks: Option<&Group>,
style_sheet: &Self::Style,
tick_marks_cache: &PrimitiveCache,
text_marks_cache: &PrimitiveCache
) -> Self::Output