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

pub trait Renderer: Renderer {
    type Style: Default;

    const DEFAULT_SIZE: u16;
    const DEFAULT_SPACING: u16;

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

The renderer of a Checkbox.

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

Associated Types

type Style: Default[src]

The style supported by this renderer.

Loading content...

Associated Constants

const DEFAULT_SIZE: u16[src]

The default size of a Checkbox.

const DEFAULT_SPACING: u16[src]

The default spacing of a Checkbox.

Loading content...

Required methods

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

Draws a Checkbox.

It receives:

Loading content...

Implementors

impl Renderer for Null[src]

type Style = ()

Loading content...