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

pub trait Renderer: Renderer + Sized {
    fn draw<Message>(
        &mut self,
        defaults: &Self::Defaults,
        content: &[Element<'_, Message, Self>],
        layout: Layout<'_>,
        cursor_position: Point,
        viewport: &Rectangle
    ) -> Self::Output; }

The renderer of a Column.

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

Required methods

fn draw<Message>(
    &mut self,
    defaults: &Self::Defaults,
    content: &[Element<'_, Message, Self>],
    layout: Layout<'_>,
    cursor_position: Point,
    viewport: &Rectangle
) -> Self::Output
[src]

Draws a Column.

It receives:

  • the children of the Column
  • the Layout of the Column and its children
  • the cursor position
Loading content...

Implementors

impl Renderer for Null[src]

Loading content...