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

pub trait Renderer: Renderer + Sized {
    fn draw<Message>(
        &mut self,
        defaults: &Self::Defaults,
        content: &[(Pane, Element<Message, Self>)],
        dragging: Option<Pane>,
        resizing: Option<Axis>,
        layout: Layout,
        cursor_position: Point
    ) -> Self::Output; }

The renderer of a PaneGrid.

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

Required methods

fn draw<Message>(
    &mut self,
    defaults: &Self::Defaults,
    content: &[(Pane, Element<Message, Self>)],
    dragging: Option<Pane>,
    resizing: Option<Axis>,
    layout: Layout,
    cursor_position: Point
) -> Self::Output

Draws a PaneGrid.

It receives:

  • the elements of the PaneGrid
  • the Pane that is currently being dragged
  • the Axis that is currently being resized
  • the Layout of the PaneGrid and its elements
  • the cursor position
Loading content...

Implementors

Loading content...