[][src]Trait iced::renderer::Debugger

pub trait Debugger {
    type Color: Copy;
    fn explain(&mut self, layout: &Layout, color: Self::Color);
}

A renderer able to graphically explain a Layout.

Associated Types

type Color: Copy

The color type that will be used to configure the explanation.

This is the type that will be asked in Element::explain.

Loading content...

Required methods

fn explain(&mut self, layout: &Layout, color: Self::Color)

Explains the Layout of an Element for debugging purposes.

This will be called when Element::explain has been used. It should explain the given Layout graphically.

A common approach consists in recursively rendering the bounds of the Layout and its children.

Loading content...

Implementors

Loading content...