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

pub trait Renderer: Renderer {
    type Style: Default;
    fn draw<Message>(
        &mut self,
        defaults: &Self::Defaults,
        bounds: Rectangle,
        cursor_position: Point,
        style: &Self::Style,
        content: &Element<Message, Self>,
        content_layout: Layout
    ) -> Self::Output; }

The renderer of a Container.

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

Associated Types

type Style: Default

The style supported by this renderer.

Loading content...

Required methods

fn draw<Message>(
    &mut self,
    defaults: &Self::Defaults,
    bounds: Rectangle,
    cursor_position: Point,
    style: &Self::Style,
    content: &Element<Message, Self>,
    content_layout: Layout
) -> Self::Output

Draws a Container.

Loading content...

Implementors

Loading content...