surface: process offset request without a buffer change
This commit is contained in:
parent
adf6d2ae2b
commit
9cddeb964d
9 changed files with 98 additions and 11 deletions
|
|
@ -36,6 +36,15 @@ impl TestSurface {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn offset(&self, dx: i32, dy: i32) -> Result<(), TestError> {
|
||||
self.tran.send(Offset {
|
||||
self_id: self.id,
|
||||
x: dx,
|
||||
y: dy,
|
||||
})?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn commit(&self) -> Result<(), TestError> {
|
||||
self.tran.send(Commit { self_id: self.id })?;
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue