[−][src]Trait iced_native::widget::pane_grid::Renderer
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, Content<'_, Message, Self>)],
dragging: Option<(Pane, Point)>,
resizing: Option<Axis>,
layout: Layout<'_>,
cursor_position: Point
) -> Self::Output
&mut self,
defaults: &Self::Defaults,
content: &[(Pane, Content<'_, Message, Self>)],
dragging: Option<(Pane, Point)>,
resizing: Option<Axis>,
layout: Layout<'_>,
cursor_position: Point
) -> Self::Output
Draws a PaneGrid
.
It receives:
fn draw_pane<Message>(
&mut self,
defaults: &Self::Defaults,
bounds: Rectangle,
style: &Self::Style,
title_bar: Option<(&TitleBar<'_, Message, Self>, Layout<'_>)>,
body: (&Element<'_, Message, Self>, Layout<'_>),
cursor_position: Point
) -> Self::Output
&mut self,
defaults: &Self::Defaults,
bounds: Rectangle,
style: &Self::Style,
title_bar: Option<(&TitleBar<'_, Message, Self>, Layout<'_>)>,
body: (&Element<'_, Message, Self>, Layout<'_>),
cursor_position: Point
) -> Self::Output
Draws a Pane
.
It receives:
fn draw_title_bar<Message>(
&mut self,
defaults: &Self::Defaults,
bounds: Rectangle,
style: &Self::Style,
title: &str,
title_size: u16,
title_font: Self::Font,
title_bounds: Rectangle,
controls: Option<(&Element<'_, Message, Self>, Layout<'_>)>,
cursor_position: Point
) -> Self::Output
&mut self,
defaults: &Self::Defaults,
bounds: Rectangle,
style: &Self::Style,
title: &str,
title_size: u16,
title_font: Self::Font,
title_bounds: Rectangle,
controls: Option<(&Element<'_, Message, Self>, Layout<'_>)>,
cursor_position: Point
) -> Self::Output
Implementors
impl Renderer for Null
[src]
fn draw<Message>(
&mut self,
_defaults: &Self::Defaults,
_content: &[(Pane, Content<'_, Message, Self>)],
_dragging: Option<(Pane, Point)>,
_resizing: Option<Axis>,
_layout: Layout<'_>,
_cursor_position: Point
)
[src]
&mut self,
_defaults: &Self::Defaults,
_content: &[(Pane, Content<'_, Message, Self>)],
_dragging: Option<(Pane, Point)>,
_resizing: Option<Axis>,
_layout: Layout<'_>,
_cursor_position: Point
)
fn draw_pane<Message>(
&mut self,
_defaults: &Self::Defaults,
_bounds: Rectangle,
_style: &Self::Style,
_title_bar: Option<(&TitleBar<'_, Message, Self>, Layout<'_>)>,
_body: (&Element<'_, Message, Self>, Layout<'_>),
_cursor_position: Point
)
[src]
&mut self,
_defaults: &Self::Defaults,
_bounds: Rectangle,
_style: &Self::Style,
_title_bar: Option<(&TitleBar<'_, Message, Self>, Layout<'_>)>,
_body: (&Element<'_, Message, Self>, Layout<'_>),
_cursor_position: Point
)
fn draw_title_bar<Message>(
&mut self,
_defaults: &Self::Defaults,
_bounds: Rectangle,
_style: &Self::Style,
_title: &str,
_title_size: u16,
_title_font: Self::Font,
_title_bounds: Rectangle,
_controls: Option<(&Element<'_, Message, Self>, Layout<'_>)>,
_cursor_position: Point
)
[src]
&mut self,
_defaults: &Self::Defaults,
_bounds: Rectangle,
_style: &Self::Style,
_title: &str,
_title_size: u16,
_title_font: Self::Font,
_title_bounds: Rectangle,
_controls: Option<(&Element<'_, Message, Self>, Layout<'_>)>,
_cursor_position: Point
)