autocommit 2022-04-02 19:38:13 CEST
This commit is contained in:
parent
6ad6d83b7e
commit
6de9fb8303
18 changed files with 112 additions and 51 deletions
|
|
@ -178,4 +178,8 @@ impl Rect {
|
|||
pub fn height(&self) -> i32 {
|
||||
self.y2 - self.y1
|
||||
}
|
||||
|
||||
pub fn position(&self) -> (i32, i32) {
|
||||
(self.x1, self.y1)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue