Rename Renderer::Primitive to Renderer::Output
This commit is contained in:
parent
650d020fde
commit
8846a239cf
25 changed files with 48 additions and 48 deletions
|
|
@ -21,7 +21,7 @@ impl button::Renderer for Renderer {
|
|||
button: &Button<Message, Self>,
|
||||
layout: Layout<'_>,
|
||||
cursor_position: Point,
|
||||
) -> Self::Primitive {
|
||||
) -> Self::Output {
|
||||
let bounds = layout.bounds();
|
||||
|
||||
Primitive::Group {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ impl checkbox::Renderer for Renderer {
|
|||
_checkbox: &Checkbox<Message>,
|
||||
_layout: Layout<'_>,
|
||||
_cursor_position: Point,
|
||||
) -> Self::Primitive {
|
||||
) -> Self::Output {
|
||||
// TODO
|
||||
Primitive::None
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ impl column::Renderer for Renderer {
|
|||
column: &Column<'_, Message, Self>,
|
||||
layout: Layout<'_>,
|
||||
cursor_position: Point,
|
||||
) -> Self::Primitive {
|
||||
) -> Self::Output {
|
||||
Primitive::Group {
|
||||
primitives: column
|
||||
.children
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ impl image::Renderer<&str> for Renderer {
|
|||
&mut self,
|
||||
_image: &Image<&str>,
|
||||
_layout: Layout<'_>,
|
||||
) -> Self::Primitive {
|
||||
) -> Self::Output {
|
||||
Primitive::None
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ impl radio::Renderer for Renderer {
|
|||
_radio: &Radio<Message>,
|
||||
_layout: Layout<'_>,
|
||||
_cursor_position: Point,
|
||||
) -> Self::Primitive {
|
||||
) -> Self::Output {
|
||||
Primitive::None
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ impl row::Renderer for Renderer {
|
|||
row: &Row<'_, Message, Self>,
|
||||
layout: Layout<'_>,
|
||||
cursor_position: Point,
|
||||
) -> Self::Primitive {
|
||||
) -> Self::Output {
|
||||
Primitive::Group {
|
||||
primitives: row
|
||||
.children
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ impl slider::Renderer for Renderer {
|
|||
_slider: &Slider<Message>,
|
||||
_layout: Layout<'_>,
|
||||
_cursor_position: Point,
|
||||
) -> Self::Primitive {
|
||||
) -> Self::Output {
|
||||
Primitive::None
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ impl text::Renderer for Renderer {
|
|||
})
|
||||
}
|
||||
|
||||
fn draw(&mut self, text: &Text, layout: Layout<'_>) -> Self::Primitive {
|
||||
fn draw(&mut self, text: &Text, layout: Layout<'_>) -> Self::Output {
|
||||
Primitive::Text {
|
||||
content: text.content.clone(),
|
||||
size: f32::from(text.size.unwrap_or(20)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue