rectangle: derive Default
This commit is contained in:
parent
aa65f3608d
commit
52d86d3abf
|
@ -1,5 +1,5 @@
|
||||||
/// A rectangle defined by its top-left corner and dimensions
|
/// A rectangle defined by its top-left corner and dimensions
|
||||||
#[derive(Copy, Clone, Debug)]
|
#[derive(Copy, Clone, Debug, Default)]
|
||||||
pub struct Rectangle {
|
pub struct Rectangle {
|
||||||
/// horizontal position of the top-left corner of the rectangle, in surface coordinates
|
/// horizontal position of the top-left corner of the rectangle, in surface coordinates
|
||||||
pub x: i32,
|
pub x: i32,
|
||||||
|
|
Loading…
Reference in New Issue