[][src]Trait iced_native::widget::radio::Renderer

pub trait Renderer: Renderer {
    type Style: Default;
    fn default_size(&self) -> u32;
fn draw(
        &mut self,
        bounds: Rectangle,
        is_selected: bool,
        is_mouse_over: bool,
        label: Self::Output,
        style: &Self::Style
    ) -> Self::Output; }

The renderer of a Radio button.

Your renderer will need to implement this trait before being able to use a Radio button in your user interface.

Associated Types

type Style: Default

The style supported by this renderer.

Loading content...

Required methods

fn default_size(&self) -> u32

Returns the default size of a Radio button.

fn draw(
    &mut self,
    bounds: Rectangle,
    is_selected: bool,
    is_mouse_over: bool,
    label: Self::Output,
    style: &Self::Style
) -> Self::Output

Draws a Radio button.

It receives:

  • the bounds of the Radio
  • whether the Radio is selected or not
  • whether the mouse is over the Radio or not
  • the drawn label of the Radio
Loading content...

Implementors

impl Renderer for Null[src]

type Style = ()

Loading content...