wayland: implement surface transformations
- buffer scale - buffer transform - viewporter
This commit is contained in:
parent
20f0fba553
commit
95327685c1
16 changed files with 635 additions and 75 deletions
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue