Rename fill_rectangle to fill_quad in Renderer
This commit is contained in:
parent
343f9b7e2e
commit
023aded277
19 changed files with 320 additions and 245 deletions
|
|
@ -3,7 +3,7 @@ use crate::{Primitive, Vector};
|
|||
use iced_native::layout;
|
||||
use iced_native::renderer;
|
||||
use iced_native::text::{self, Text};
|
||||
use iced_native::{Element, Font, Point, Rectangle, Size};
|
||||
use iced_native::{Background, Element, Font, Point, Rectangle, Size};
|
||||
|
||||
pub use iced_native::renderer::Style;
|
||||
|
||||
|
|
@ -88,10 +88,14 @@ where
|
|||
});
|
||||
}
|
||||
|
||||
fn fill_rectangle(&mut self, quad: renderer::Quad) {
|
||||
fn fill_quad(
|
||||
&mut self,
|
||||
quad: renderer::Quad,
|
||||
background: impl Into<Background>,
|
||||
) {
|
||||
self.primitives.push(Primitive::Quad {
|
||||
bounds: quad.bounds,
|
||||
background: quad.background,
|
||||
background: background.into(),
|
||||
border_radius: quad.border_radius,
|
||||
border_width: quad.border_width,
|
||||
border_color: quad.border_color,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue