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

pub trait Renderer {
    fn draw(
        &mut self,
        cursor_position: Point,
        bounds: Rectangle,
        state: &State,
        label: &str,
        class: Class
    ) -> MouseCursor; }

The renderer of a Button.

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

Required methods

fn draw(
    &mut self,
    cursor_position: Point,
    bounds: Rectangle,
    state: &State,
    label: &str,
    class: Class
) -> MouseCursor

Draws a Button.

It receives:

Loading content...

Implementors

Loading content...