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

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

The renderer of a Button.

Your core::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<f32>,
    state: &State,
    label: &str,
    class: Class
) -> MouseCursor

Draws a Button.

It receives:

Loading content...

Implementors

impl Renderer for Renderer[src]

Loading content...