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

pub trait Renderer {
    fn draw(
        &mut self,
        cursor_position: Point,
        bounds: Rectangle,
        label_bounds: Rectangle,
        is_selected: bool
    ) -> MouseCursor; }

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.

Required methods

fn draw(
    &mut self,
    cursor_position: Point,
    bounds: Rectangle,
    label_bounds: Rectangle,
    is_selected: bool
) -> MouseCursor

Draws a Radio button.

It receives:

  • the current cursor position
  • the bounds of the Radio
  • the bounds of the label of the Radio
  • whether the Radio is selected or not
Loading content...

Implementors

Loading content...