Write missing documentation in iced_native
This commit is contained in:
parent
d5f4067def
commit
aca9d414d3
3 changed files with 10 additions and 1 deletions
|
|
@ -61,11 +61,19 @@ pub trait Renderer: Sized {
|
|||
fn fill_quad(&mut self, quad: Quad, background: impl Into<Background>);
|
||||
}
|
||||
|
||||
/// A polygon with four sides.
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
pub struct Quad {
|
||||
/// The bounds of the [`Quad`].
|
||||
pub bounds: Rectangle,
|
||||
|
||||
/// The border radius of the [`Quad`].
|
||||
pub border_radius: f32,
|
||||
|
||||
/// The border width of the [`Quad`].
|
||||
pub border_width: f32,
|
||||
|
||||
/// The border color of the [`Quad`].
|
||||
pub border_color: Color,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue