1
0
Fork 0
forked from wry/wry

wayland: implement surface transformations

- buffer scale
- buffer transform
- viewporter
This commit is contained in:
Julian Orth 2022-05-28 18:18:29 +02:00
parent 20f0fba553
commit 95327685c1
16 changed files with 635 additions and 75 deletions

View file

@ -61,6 +61,7 @@ impl RectOverflow {
}
impl Rect {
#[allow(dead_code)]
pub fn new_empty(x: i32, y: i32) -> Self {
Self {
x1: x,
@ -204,4 +205,8 @@ impl Rect {
pub fn position(&self) -> (i32, i32) {
(self.x1, self.y1)
}
pub fn size(&self) -> (i32, i32) {
(self.width(), self.height())
}
}