[][src]Trait coffee::ui::widget::radio::Renderer

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

The renderer of a Radio button.

Your core::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<f32>,
    label_bounds: Rectangle<f32>,
    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

impl Renderer for Renderer[src]

Loading content...